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

Is there any danger to using the same tf2_ros buffer across different message queues?

asked 2019-06-20 17:06:39 -0600

seanarm gravatar image

That's the short of it. I have a ROS node with 4 different message queues that service callbacks for 4 separate classes. I'm wondering if I can safely provide the same tf2_ros::Buffer reference to all four of those classes, for use with transforming sensor_msgs and geometry_msgs messages between coordinate frames.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-06-21 07:05:32 -0600

tfoote gravatar image

Yes, you can do that. The API is thread safe.

edit flag offensive delete link more

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-06-20 17:06:39 -0600

Seen: 110 times

Last updated: Jun 21 '19