rqt_plot noetic does not display arrays fields

asked 2020-10-06 14:03:02 -0500

ivan_calle gravatar image

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/...


edit retag flag offensive close merge delete


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.

billtheplatypus gravatar image billtheplatypus  ( 2020-11-30 15:10:17 -0500 )edit