ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

My topic is correct. It's a standard sensor_msgs/JointState message type, so it does have a field position that's a float64 array.

Output of rostopic info is: `Type: sensor_msgs/JointState

Publishers: * /realtime_loop (http://p1307010:33103/) `

I tried the echo of ...position/data[1] and also get an error, but a different one: Traceback (most recent call last): ...snip... File "/opt/ros/groovy/lib/python2.7/dist-packages/genpy/message.py", line 532, in _get_message_or_service_class raise ValueError("message type is missing package name: %s"%str(message_type)) ValueError: message type is missing package name: float64[]

My topic is correct. It's a standard sensor_msgs/JointState message type, so it does have a field position that's a float64 array.

Output of rostopic info is: `Type: is:

Type: sensor_msgs/JointState

Publishers: * /realtime_loop (http://p1307010:33103/) `/realtime_loop (http://p1307010:33103/)

I tried the echo of ...position/data[1] and also get an error, but a different one: one:

Traceback (most recent call last): ...snip... ...snip...
File "/opt/ros/groovy/lib/python2.7/dist-packages/genpy/message.py", "/opt/ros/groovy/lib/python2.7/dist-packages/genpy/message.py", line 532, in in _get_message_or_service_class raise ValueError("message type is missing package name: %s"%str(message_type)) %s"%str(message_type)) ValueError: message type is missing package name: float64[]