rqt_plot noetic does not display arrays fields
Hi there
I'm working with ros noetic and have noticed that "rqt_plot" cannot display topics such as "/joint_states/position[0], etc". The error message looks like:
...
Traceback (most recent call last):
File "/opt/ros/noetic/lib/python3/dist-packages/rqt_plot/rosplot.py", line 201, in generate_field_evals slot_num = string.atoi(rest[:rest.find(']')])
AttributeError: module 'string' has no attribute 'atoi'
....
To correct this you have to go the folder: "/opt/ros/noetic/lib/python3/dist-packages/rqt_plot/" and edit the file "rosplot.py" changing "string.atoi(str)" to "int(str)" (line 200)
Fortunately this is corrected in https://github.com/ros-visualization/...
Greetings
This fix worked for me, thanks! I think that it would work well to put your solution as an answer; that is the preferred way to answer your own question.