You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ INFO] [1665817526.729889272]: Initializing successful
Loaded '/lichuan/canopen_motor/joint_state_controller'
Loaded '/lichuan/canopen_motor/base_link1_joint_position_controller'
Started ['/lichuan/canopen_motor/joint_state_controller'] successfully
[ERROR] [1665817531.866585648]: Could not switch to mode 1, reason: Mode switch timed out.
[ERROR] [1665817531.866793471]: base_link1_jointcould not enter mode 1
[ERROR] [1665817531.866974888]: Could not switch one joint for /lichuan/canopen_motor/base_link1_joint_position_controller, will stop all related joints and the controller.
[ERROR] [1665817531.873886624]: Could not switch one joint for /lichuan/canopen_motor/base_link1_joint_position_controller, will stop all related joints and the controller.
Started ['/lichuan/canopen_motor/base_link1_joint_position_controller'] successfully
[lichuan/controller_spawner-3] process has finished cleanly
raspberry4B +ubuntu server 20.04 +USBCAN
motor driver support:PP PV HM
3.1my yaml1
bus:
device: can0 # socketcan network
# loopback: false # socket should loop back messages
# driver_plugin: can::SocketCANInterface
master_allocator: canopen::SimpleMaster::Allocator
sync:
interval_ms: 10 # 10 ms is recommended for non real-time systems, set to 0 to disable sync
# update_ms: <interval_ms> #update interval of control loop, must be set explecitly if sync is disabled
overflow: 0 # overflow sync counter at value or do not set it (0, default)
heartbeat: # simple heartbeat producer, optional!
rate: 20 # heartbeat rate
msg: "77f#05" # message to send, cansend format: heartbeat of node 127 with status 5=Started
3.2my yaml2
joint_names: [base_link1_joint]
joint_state_controller:
type: joint_state_controller/JointStateController
publish_rate: 50
# Settings of the controller and assossiated drive modes
# drive mode : see http://wiki.ros.org/canopen_402
# position controllers
# example using Profiled Position (1) drive mode
joint_group_position_controller:
type: position_controllers/JointGroupPositionController
joints:
- base_link1_joint
required_drive_mode: 1
base_link1_joint_position_controller:
type: position_controllers/JointPositionController
joint: base_link1_joint
required_drive_mode: 1
3.3my yaml3
# struct syntax
nodes:
node1:
id: 1
name: base_link1_joint
eds_pkg: lichuan_ros_canopen # optionals package name for relative path
eds_file: "config/LCok10141839.eds" #hc.eds"# path to EDS/DCF file
#encoder_resolution: 4000
#vel_to_device: "vel" # rad/s -> mdeg/s
#vel_from_device: "obj606C" # actual velocity [mdeg/s] -> rad/s
defaults: # optional, all defaults can be overwritten per node
# eds_pkg: my_config_package # optional package name for relative path
# eds_file: "my_config.dcf" # path to EDS/DCF file
dcf_overlay: # "ObjectID": "ParameterValue" (both as strings)
# Homing mode settings
"6098": "0" # Homing method (set to 0 for "No homing operation required") #lbadd
# # "6065": "2000" # Following error window
# # "30B1": "1000" # Home offset move distance
# # "607F": "1300" # Max profile velocity
# # "6085": "10000" # Quick stop deceleration
# "6099sub1": "100" # Speed for switch search #ok
# "6099sub2": "10" # Speed for zero search #ok
# "609A": "1000" # Homing acceleration #ok
# # "30B0": "0" # Home position
# # "30B2": "1500" # Current threshold for homing mode
# # "1016sub1" : "0x7F0064" # heartbeat timeout of 100 ms for master at 127
# # "1017": "100" # heartbeat producer
"6040": "0" #init SM
#"200E": "5" #set init speed rad/min
"6083": "100" #set + speed
"6084": "100" #set - speed
"6098": "0"
# canopen_chain_node settings ..
motor_allocator: canopen::Motor402::Allocator # select allocator for motor layer
# motor_layer: settings passed to motor layer (plugin-specific)
switching_state: 15 # (Operation_Enable), state for mode switching. Drive mode of operation from canopen_402 wiki
# pos_to_device: "rint(rad2deg(pos)*1000)" # rad -> mdeg
# pos_from_device: "deg2rad(obj6064)/1000" # actual position [mdeg] -> rad
pos_to_device: "pos" # inc
pos_from_device: "obj6064" # inc
vel_to_device: "vel" # rpm
vel_from_device: "obj606C" # rpm
eff_to_device: "rint(eff)" # just round to integer
eff_from_device: "0" # unset
1,My error info:
2,note:
https://github.com/Roboprotos/maxon_epos4_ros1/tree/master/maxon_epos4_ros_canopen
when i use maxon ros canopen link code change to my motor,it happen so error.
3,my info:
raspberry4B +ubuntu server 20.04 +USBCAN
motor driver support:PP PV HM
3.1my yaml1
3.2my yaml2
3.3my yaml3
3.4 my launch
3.5my urdf xacro
3.5 my EDS file
here :
Motor_EDSfile.zip
4, my candump
The text was updated successfully, but these errors were encountered: