ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Why there is no timestamp field in sensor_msgs ?

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

gdebrecz gravatar image

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

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

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

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

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


Thanks a lot.... !

gdebrecz gravatar image gdebrecz  ( 2019-11-22 10:28:36 -0500 )edit

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

gvdhoorn gravatar image gvdhoorn  ( 2019-11-22 10:29:34 -0500 )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



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

Seen: 658 times

Last updated: Nov 22 '19