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

rqt_plot noetic does not display arrays fields

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

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

Greetings

edit retag flag offensive close merge delete

Comments

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 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-07-07 04:28:42 -0600

Denis gravatar image

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

P.S. Only for him

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-10-06 14:03:02 -0600

Seen: 396 times

Last updated: Oct 06 '20