ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Why ros2 std_msgs/Header removes `seq`?

asked 2023-08-07 10:07:17 -0600

felixf4xu gravatar image

Hi,

I'm upgrading a ros1 package to ros2 and found that std_msgs/Header msg has changed.

in ros1: https://github.com/ros/std_msgs/blob/...

# sequence ID: consecutively increasing ID 
uint32 seq

while in ros2: https://github.com/ros2/common_interf...

seq is removed. Why?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-08-07 18:31:59 -0600

Bernd Pfrommer gravatar image

According to this document: "The field has been deprecated for a long time and was not set consistently in ROS 1." In many cases the subscribers would ignore the sequence number, so it made sense to remove it to reduce overhead. Note that this header is shared across a large variety of messages, so removal does have an impact.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2023-08-07 10:07:17 -0600

Seen: 657 times

Last updated: Aug 07 '23