Robotics StackExchange | Archived questions

rqt_plot not showing data while using rosbags

Hello everyone,

I have a question regarding rqtplot. The problem is that rqtplot is not showing the data which is published by a node, but I can see the published data when I run rostopic echo <topic_name>

I think I am doing something wrong with the sim_time, but I am not sure what is wrong. Here is what I am doing:

  1. $roscore
  2. $rosparam set use_sim_time true
  3. $rosbag play --clock <filename>.bag
  4. $rosrun <package> <executable>
  5. Start rqt_plot

Am I missing a step or something?

Thank you very much in advance!

Best regards

Asked by SK on 2020-07-08 07:46:31 UTC

Comments

Hi @SK,

For what I understand from the set of commands you posted is that you are trying to plot a topic produced by the Node launched at step 4.; not a topic from a Rosbag. If I am mistaken please correct me. However, if that is the case, setting sim_time parameter a true and trying to plot a value produced with a Node in actual time maybe be the reason why you cannot see the the info plotted.

Asked by Weasfas on 2020-07-08 08:37:53 UTC

Answers

Okay I just fixed it.. Problem was that the node was publishing the geometry_msgs/PoseStamped with an wrong Time stamp.

Asked by SK on 2020-07-08 08:37:32 UTC

Comments