rqt_plot not plotting imu_message [closed]

asked 2019-05-28 06:26:46 -0500

pravin1 gravatar image

Hi everyone,

I am trying to plot imu_data via rqt plot. But rqt_plot does not plot any imu_data. But it is plotting random_number that I am publishing. I can see the data coming from the imu. Also can be verified by rostopic hz below:

rostopic hz /imu_data 
subscribed to [/imu_data]
average rate: 34.861
    min: 0.028s max: 0.029s std dev: 0.00047s window: 33
average rate: 34.806
    min: 0.028s max: 0.033s std dev: 0.00070s window: 68
^Caverage rate: 34.814
    min: 0.028s max: 0.033s std dev: 0.00066s window: 88

The command that I am using to plot the acceleration data is

rqt_plot /imu_data/linear_acceleration/x

Can anyone suggest what i am doing wrong?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by pravin1
close date 2019-06-11 08:28:27.137239

Comments

Can you please add the output of:

rostopic echo /imu_data

And also the output of:

rostopic list | grep imu
romay gravatar image romay  ( 2019-06-10 03:10:56 -0500 )edit
1

A time stamp in your imu topic may not be filled. rqt_plot can't plot without time stamp.

harumo11 gravatar image harumo11  ( 2019-06-10 07:57:32 -0500 )edit

Output of rostopic echo -n1 /imu_data

header: 
  seq: 1605
  stamp: 
    secs: 0
    nsecs:         0
  frame_id: ''
orientation: 
  x: 0.0
  y: 0.0
  z: 0.0
  w: 0.0
orientation_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
angular_velocity: 
  x: 0.0404812842607
  y: 0.0809625685215
  z: 0.061787225306
angular_velocity_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
linear_acceleration: 
  x: -0.129291504622
  y: -0.07901147753
  z: 9.71122932434
linear_acceleration_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
pravin1 gravatar image pravin1  ( 2019-06-11 08:15:09 -0500 )edit

And rostopic list | grep imu

/imu_data
pravin1 gravatar image pravin1  ( 2019-06-11 08:16:26 -0500 )edit

My Imu does not give me orientation data, so that x,y,z,w are zero.

pravin1 gravatar image pravin1  ( 2019-06-11 08:17:29 -0500 )edit

I added the time stamp, now it is working. Thank you.

pravin1 gravatar image pravin1  ( 2019-06-11 08:26:18 -0500 )edit