ros / geometry

Packages for common geometric calculations including the ROS transform library, "tf". Also includes ROS bindings for "bullet" physics engine and "kdl" kinematics/dynamics package.
173 stars 275 forks source link

Does tf::MessageFilter exist for rospy? #166

Open jwhendy opened 6 years ago

jwhendy commented 6 years ago

Greetings,

I'm learning ROS with a colleague who's more experienced and as a way to learn quickly, I'm translating some of his code into python. This is also a way to see if there are any deficiencies of python overall for ROS development (he's advocating I learn C++, and I'd hope to stick with a language I already know).

I came across his use of tf::MessageFilter and wondered what the official stance is on using it via rospy. I saw this on the C++ api page:

The tf::MessageFilter is the recommended method for receiving almost any sensor data from ROS.

I also found this question from 2012 suggesting it might not exist for python. It's 6yrs later, so I thought I might just ask at the source.

The quote from the C++ api implies it's pretty important. If it doesn't exist for rospy, is there a desire to have it implemented? Or is the official recommendation to use something like the answer at that question (i.e. roll one's own python implementation)? I would be happy to try contributing, either to code porting or putting a DIY example somewhere on the wiki for reference for other python users.

tfoote commented 6 years ago

A contribution of a python implementation would be appreciated. In general synchronizing in python is easier and it's ususally used in less pipelineing and latency critical areas so it's been in less demand.

The best place for an implementation to be contributed would be in tf2_ros

Elio-in-summer commented 1 year ago

A contribution of a python implementation would be appreciated. In general synchronizing in python is easier and it's ususally used in less pipelineing and latency critical areas so it's been in less demand.

The best place for an implementation to be contributed would be in tf2_ros

Hi, I'm also wondering the same question, so how can I do synchronizing in python bwteen tf msg and subscriber msg, is there any Doc or tutorial? Thank you