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

"intersect" several transformations

asked 2012-05-28 01:03:41 -0500

PedroS. gravatar image

Hi all,

I have a node that will lookafter two transformations. My problem is that both have different frequencies and I with the information os these two I have to publish a new one. So I want to know what is the best way to publish the new one, what timestamp should I define to the new one for example.

Thanks for your help

Pedro

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-05-28 15:14:14 -0500

weiin gravatar image

If you are willing to dig into code, the robot_pose_ekf code shows how to combine different data streams.

A rough idea: Look at all time stamps from all incoming data eg. time_A, time_B, time_C. Pick those that are not too old (ie within your timeout range from current_time). Finally, use the min of the valid timestamps vs current_time eg. if time_C is outside the timeout range, your output timestamp will be min(current_time, time_A, time_B)

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-05-28 01:03:41 -0500

Seen: 250 times

Last updated: May 28 '12