Ask Your Question

jessievd's profile - activity

2021-11-17 21:21:18 -0600 received badge  Notable Question (source)
2021-09-29 01:09:24 -0600 received badge  Enthusiast
2021-09-28 02:46:35 -0600 commented question rqt_plot does not display topic

Did it now!

2021-09-28 02:46:35 -0600 received badge  Commentator
2021-09-28 02:46:10 -0600 marked best answer rqt_plot does not display topic

When running my simulation on ros noetic, rqt_plot cannot display any topics anymore because of the following error:

Traceback (most recent call last):   File "/opt/ros/noetic/lib/python3/dist-packages/rqt_plot/plot_widget.py", line 230, in on_subscribe_topic_button_clicked
    self.add_topic(str(self.topic_edit.text())) File "/opt/ros/noetic/lib/python3/dist-packages/rqt_plot/plot_widget.py", line 290, in add_topic
    self._rosdata[topic_name] = ROSData(topic_name, self._start_time)  File "/opt/ros/noetic/lib/python3/dist-packages/rqt_plot/rosplot.py", line 108, in __init__
    self.field_evals = generate_field_evals(fields)   File "/opt/ros/noetic/lib/python3/dist-packages/rqt_plot/rosplot.py", line 207, in generate_field_evals
    raise RosPlotException("cannot parse field reference [%s]: %s" % (fields, str(e))) rqt_plot.rosplot.RosPlotException: cannot parse field reference [['external_torques[0]']]: module 'string' has no attribute 'atoi' 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'

So it is mostly about the last line concerning rosplot.py. I have found the cause of this problem on this forum: https://github.com/ros-visualization/rqt_plot/pull/57 Which seems to be a bug in rqt_plot.

And a solution on this forum: https://answers.ros.org/question/362951/rqt_plot-noetic-does-not-display-arrays-fields/ Which is to replace string.atoi with int(). However, I cannot edit the file rosplot.py since it is read only and also, I read everywhere that you shouldn't just edit files in ros rqt. How can I fix this bug then? Or is there a way to edit this file safely?


Solution: updating from rqt_plot 0.4.12 to 0.4.13.

2021-09-28 02:46:10 -0600 received badge  Scholar (source)
2021-09-28 02:45:37 -0600 received badge  Supporter (source)
2021-09-28 01:43:16 -0600 asked a question Changing launch parameters during Gazebo simulation

Changing launch parameters during Gazebo simulation Hi! I am not sure if this is possible, but I have a simulated force

2021-09-28 01:38:47 -0600 edited question rqt_plot does not display topic

rqt_plot does not display topic When running my simulation on ros noetic, rqt_plot cannot display any topics anymore bec

2021-09-22 15:38:04 -0600 received badge  Popular Question (source)
2021-09-22 02:51:11 -0600 commented question rqt_plot does not display topic

ros-noetic-rqt-plot/focal,now 0.4.12-1focal.20201017.004142 amd64 [installed] This is what I get. How do I get it to 0.

2021-09-22 02:48:33 -0600 commented question rqt_plot does not display topic

ros-noetic-rqt-plot/focal,now 0.4.12-1focal.20201017.004142 amd64 [installed] This is what I get. How do I get it to 0.4

2021-09-22 01:15:15 -0600 commented question rqt_plot does not display topic

@Mike Scheutzow When I use apt list rqt_plot -a it says; Listing... Error! E: input:0-8: error: Expected pattern rq

2021-09-21 06:38:16 -0600 commented question rqt_plot does not display topic

changed it

2021-09-21 06:38:00 -0600 edited question Unable to install ros-noetic-effort-controllers "E: Internal Error, ordering was unable to handle the media swap"

Unable to install ros-noetic-effort-controllers "E: Internal Error, ordering was unable to handle the media swap" Hi! Wh

2021-09-21 05:17:03 -0600 commented question rqt_plot does not display topic

That is what I did right, I don't understand?

2021-09-21 03:47:59 -0600 commented question rqt_plot does not display topic

yes, done!

2021-09-21 03:09:03 -0600 marked best answer Unable to install ros-noetic-effort-controllers "E: Internal Error, ordering was unable to handle the media swap"

Hi! When trying to install the package effort_controllers in controller-manager (I am on ros noetic) via "sudo apt-get install ros-noetic-effort-controllers" I get the error:

E: Internal Error, ordering was unable to handle the media swap

The same happens when trying to install other packages from controller-manager, such as force-torque-sensor-controller, although joint-state-controller does get installed. After searching around, I found the following solutions:

(1) Tried sudo apt-get dist-upgrade and apt-get update

(2) Working around the problem by installing apt-fast,which acts as a wrapper for apt-get and seems to make the download process more resilient. https://github.com/ilikenwf/apt-fast. However, this does also not work since when I try sudo apt-fast install ros-noetic-effort-controllers I get the error message:

[ERROR] CUID#7 - Download aborted. URI=http://packages.ros.org/ros/ubunt... Exception: [AbstractCommand.cc:351] errorCode=3 URI=http://packages.ros.org/ros/ubunt... -> [HttpSkipResponseCommand.cc:218] errorCode=3 Resource not found

Any other suggestions? Or idea how to fix the apt-fast error? Or cause of the problem? (I feel like it has something to do with a dodgy server)

EDIT: the output of sudo apt-get check, as mentioned by Mike in the comments, is the following:

Package lists are being read... Done

Tree of requirements is being built

Status information is being read... Done


SOLUTION The final problem turned out o be that I had done two different ROS setups: one standard, following the ros noetic install page, and one via my company using another installation method. Thus it created two different sources.list.d, while I should actually have one. I removed the standard one and also removed its PPA.

2021-09-21 03:00:55 -0600 commented question Unable to install ros-noetic-effort-controllers "E: Internal Error, ordering was unable to handle the media swap"

The final problem turned out o be that I had done two different ROS setups: one standard, following the ros noetic insta

2021-09-21 02:19:33 -0600 commented question rqt_plot does not display topic

sorry yes!

2021-09-21 02:05:57 -0600 received badge  Popular Question (source)
2021-09-21 01:59:27 -0600 asked a question rqt_plot not visualizing topic

rqt_plot not visualizing topic When running my simulation on ros noetic, rqt_plot cannot display any topics anymore beca

2021-09-21 01:57:55 -0600 asked a question rqt_plot does not display topic

rqt_plot does not display topic When running my simulation on ros noetic, rqt_plot cannot display any topics anymore bec

2021-09-07 08:35:55 -0600 received badge  Notable Question (source)
2021-09-07 03:49:02 -0600 commented question Unable to install ros-noetic-effort-controllers "E: Internal Error, ordering was unable to handle the media swap"

http://wiki.ros.org/noetic/Installation/Ubuntu

2021-09-07 03:09:32 -0600 commented question Unable to install ros-noetic-effort-controllers "E: Internal Error, ordering was unable to handle the media swap"

I am sorry for not providing enough information, I do not have that much knowledge on my PC/Ubuntu so I find it hard to

2021-09-07 02:29:31 -0600 commented question Unable to install ros-noetic-effort-controllers "E: Internal Error, ordering was unable to handle the media swap"

Hi Mike! I have Ubuntu focal release 20.04. I edited the question with the output of sudo apt-get check

2021-09-07 02:28:22 -0600 edited question Unable to install ros-noetic-effort-controllers "E: Internal Error, ordering was unable to handle the media swap"

Unable to install ros-noetic-effort-controllers "E: Internal Error, ordering was unable to handle the media swap" Hi! Wh

2021-09-06 08:21:50 -0600 edited question Unable to install ros-noetic-effort-controllers "E: Internal Error, ordering was unable to handle the media swap"

Unable to install ros-noetic-effort-controllers "E: Internal Error, ordering was unable to handle the media swap" Hi! Wh

2021-09-06 08:21:50 -0600 received badge  Editor (source)
2021-09-06 02:28:13 -0600 edited question Unable to install ros-noetic-effort-controllers "E: Internal Error, ordering was unable to handle the media swap"

Unable to install ros-noetic-effort-controllers "E: Internal Error, ordering was unable to handle the media swap" Hi! Wh

2021-09-06 01:52:02 -0600 asked a question Unable to install ros-noetic-effort-controllers "E: Internal Error, ordering was unable to handle the media swap"

Unable to install ros-noetic-effort-controllers "E: Internal Error, ordering was unable to handle the media swap" Hi! Wh

2021-09-06 01:49:10 -0600 received badge  Popular Question (source)
2021-09-03 10:41:08 -0600 asked a question Unable to install ros-noetic-effort-controllers "E: Internal Error, ordering was unable to handle the media swap"

Unable to install ros-noetic-effort-controllers "E: Internal Error, ordering was unable to handle the media swap" Hi! Wh