Ask Your Question
0

Why there is no timestamp field in sensor_msgs ?

asked 2019-11-22 09:15:41 -0600

gdebrecz gravatar image

updated 2019-11-22 10:03:22 -0600

Hi !

I've been looking into ROS2 sensor_msgs definitions for example sensor_msgs::msg::Imu and I see that there is no field for timestamp !

What is the reason for that ? In practice any measurement information must / could be associated with a timestamp for obvious reasons.

Even if IMUs typically don't provide built-int timestamps, the driver node who reads the IMU and publishes the IMU messages could attach a timestamp to the information.

It would make so many thing so much thing easier.... thanks, g

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2019-11-22 09:47:09 -0600

updated 2019-11-22 10:28:51 -0600

gvdhoorn gravatar image

In sensor_msgs::msg::Imu there is std_msgs/Header header.

Inside std_msgs/Header there is include builtin_interfaces/Time stamp which is time stamp.

The definition about Imu you can see there.

And the definition about Header you can see there.

edit flag offensive delete link more

Comments

Thanks a lot.... !

gdebrecz gravatar imagegdebrecz ( 2019-11-22 10:28:36 -0600 )edit

@gdebrecz: please mark the question as answered by ticking the checkmark (✓) to the left of the answer.

gvdhoorn gravatar imagegvdhoorn ( 2019-11-22 10:29:34 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2019-11-22 09:15:41 -0600

Seen: 27 times

Last updated: Nov 22