dilipkumar25 / see3cam

ROS driver for the e-consystems See3CAM_Stereo (Tara) camera
https://www.e-consystems.com/3D-USB-stereo-camera.asp
21 stars 20 forks source link

Empty time for IMU message #12

Open Changliu52 opened 7 years ago

Changliu52 commented 7 years ago

Looks like the timestamp of the /stereo/get_IMU topic is empty:

header: seq: 12912 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.0760527560816 y: -0.130419781587 z: 0.0557414752105 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.743569603796 y: -0.635892628695 z: 9.51446103084 linear_acceleration_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]

SunggooJung commented 6 years ago

Just add ros::time::now(); to header.stamp.

e.g. IMUValue.header.stamp = ros::Time::now();