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

How can I run rqt_plot with topics from launchfile?

asked 2016-05-08 05:41:49 -0500

antonio gravatar image

updated 2016-05-08 05:42:41 -0500

I have the following launchfile.


<group ns='Axel'>
<node pkg='quad_control' name='coverage_planner' type=''/>
<node pkg='quad_control' name='planar_integrator' type=''/>
<node pkg='rqt_plot' name='rqt_plot' type='rqt_plot' args='/Axel/pose/x:y:theta'/>
<param name='others_names' type='str' value='Bo Calle David'/>


I expected that rqt_plot would be running with the topics that I specified in the args field. But no, it runs with whatever topic it was running when it was launched the previous time. How can I make rqt_plot run from launchfile with the topics of my choice?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2021-11-28 07:28:35 -0500

rickstaa gravatar image

updated 2021-11-28 07:48:31 -0500

I will place this here for future reference. The syntax used in the original question is incorrect. I did not check the codebase in 2016/2018 but in 2021, the syntax for specifying topics is as follows:

 rosrun rqt_plot rqt_plot /<ROBOT_NS>/joint_states/effort[0] /<ROBOT2_NS>/joint_states/effort[0]

This can be seen by looking at the code of the rqt_plot/ plugin. As a result, the correct syntax for doing this form a launch file:

<node pkg="rqt_plot" type="rqt_plot" output="screen" name="rqt_plot" args="/<ROBOT_NS>/joint_states/effort[0] /<ROBOT2_NS>/joint_states/effort[0]"/>
edit flag offensive delete link more

answered 2018-04-03 00:56:33 -0500

Taylor Cooper gravatar image

I don't have a direct answer to your question and I suspect you've already found an answer in the last 2 years but for the sake of anyone else looking at this it is possible to save an rqt perspective with the topics from your launch file. Ironically this same functionality may be what is causing rqt_plot to remember previous sessions.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-05-08 05:41:49 -0500

Seen: 2,220 times

Last updated: Nov 28 '21