Ask Your Question
0

sensor_msgs/JointState Message ERROR

asked 2019-08-20 02:27:27 -0600

HI, I use sensor_msgs/JointState in python to subscribes information about what the current joint values are. But I got this error in terminal

[ERROR] [1566284941.404363788, 1746.419000000]: Client [/joint_positions_node_3931_1566284941324] wants topic /myfirstrobot/joint2_position_controller/state to have datatype/md5sum [sensor_msgs/JointState/3066dcd76a6cfaef579bd0f34173e9fd], but our version has [control_msgs/JointControllerState/987ad85e4756f3aef7f1e5e7fe0595d1]. Dropping connection.
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-08-20 02:47:00 -0600

gvdhoorn gravatar image

The topic you're subscribing to (ie: /myfirstrobot/joint2_position_controller/state) is not a topic that carries sensor_msgs/JointState messages, but control_msgs/JointControllerState.

Those are two different messages and you cannot subscribe to a topic with control_msgs/JointControllerState messages with a subscriber that expects sensor_msgs/JointState.

HI, I use sensor_msgs/JointState in python to subscribes information about what the current joint values are

The state topic does not have messages that "current joint values", but the internal state of a ros_control joint controller.

The typical topic for joint states would be joint_states, and is typically published by drivers, not by controllers.

edit flag offensive delete link more

Comments

THANKS for reply!!

Yes, I got joint_states in rostopic list .So I wondering is there any function could get value in python ?

/clock /gazebo/link_states /gazebo/model_states /gazebo/parameter_descriptions /gazebo/parameter_updates /gazebo/set_link_state /gazebo/set_model_state /gazebo_gui/parameter_descriptions /gazebo_gui/parameter_updates /joint_states /myfirstrobot/cmd_vel /myfirstrobot/joint1_position_controller/command /myfirstrobot/joint1_position_controller/pid/parameter_descriptions /myfirstrobot/joint1_position_controller/pid/parameter_updates /myfirstrobot/joint1_position_controller/state /myfirstrobot/joint2_position_controller/command /myfirstrobot/joint2_position_controller/pid/parameter_descriptions /myfirstrobot/joint2_position_controller/pid/parameter_updates /myfirstrobot/joint2_position_controller/state /myfirstrobot/joint_states /myfirstrobot/odom /rosout /rosout_agg /scan /tf /tf_static

garychang gravatar imagegarychang ( 2019-08-21 04:47:18 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2019-08-20 02:25:54 -0600

Seen: 30 times

Last updated: Aug 20