rostopic echo of a field of an array in ROS Indigo
Hi, I have an issue trying to display a field of an array in a message in ROS Indigo with the command rostopic echo. I'm trying to display the position of an object detected with the Ork package, using this command :
rostopic echo /recognized_object_array/objects[0]/pose/pose/pose/position
But I got this traceback :
Traceback (most recent call last):
File "/opt/ros/indigo/bin/rostopic", line 35, in <module>
rostopic.rostopicmain()
File "/opt/ros/indigo/lib/python2.7/dist-packages/rostopic/__init__.py", line 1765, in rostopicmain
_rostopic_cmd_echo(argv)
File "/opt/ros/indigo/lib/python2.7/dist-packages/rostopic/__init__.py", line 1136, in _rostopic_cmd_echo
_rostopic_echo(topic, callback_echo, bag_file=options.bag)
File "/opt/ros/indigo/lib/python2.7/dist-packages/rostopic/__init__.py", line 788, in _rostopic_echo
index = submsg_class.__slots__.index(field)
AttributeError: 'NoneType' object has no attribute '__slots__'
But it works if I only do :
rostopic echo /recognized_object_array/objects[0]
This is just an example, I have the same issue with other custom messages using arrays. Is there a specific syntax to display the field of an element of an array ?