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

Timestamp from CAN Network

asked 2021-03-11 04:09:41 -0600

mros gravatar image

Hi all, I am using ROS Noetic with 4 sensors and they send data via CAN network.I want to get the timestamp of the data.

So I did it with tow manners.

The first one, I creat the time stamp with the ros::Time::now().

The second method, I get the Timestamp from the header of the CAN Data Frame. But in both methods I find the same time.

So my question, the timestamp in the header of the CAN Data Frame is created in my host platform? not in the CAN network? Thank you.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-03-23 21:59:27 -0600

danambrosio gravatar image

The socketcan_bridge package contains a node (socketcan_bridge_node) for reading CAN messages from a device and publishing them to a ROS message and vice-versa. This node stamps the CAN ROS message when it is processed on the node side, see here.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2021-03-11 04:09:41 -0600

Seen: 159 times

Last updated: Mar 23 '21