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

RQT python plugin crashes randomly, but often

asked 2014-11-03 14:27:50 -0500

I'm using ROS Hydro on Ubuntu precise.

I started with the robot steering RQT plugin ( http://wiki.ros.org/rqt/Plugins ) which is a python plugin and I tweaked it to show about 20 or so of my robot Topic values in real time. Most of the robot Topic values are being published at 5 or 10 Hz. This new plugin likes to crash quite often, but there's no one thing that I can do to make it crash.

Do python RQT plugins have trouble displaying a lot of 5 to 10 Hz data? Should I throttle the data specifically for my user interface? Or am I barking up the wrong tree?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-11-03 14:41:04 -0500

ahendrix gravatar image

RQT plugins such as rqt_plot regularly handle high data rates (100Hz+) without issue.

If your plugin (or any program, really) crashes randomly at different places, you probably have some combination of memory corruption and threading bugs. Keeping in mind that the drawing code and ROS callbacks are often serviced from different threads, I would go through your code and make sure that you have locking or thread-safe data structures in the appropriate places.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-11-03 14:27:50 -0500

Seen: 252 times

Last updated: Nov 03 '14