Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROS Feature: plot transformations /tf between any couple of frames #943

Open
torydebra opened this issue Mar 1, 2024 · 2 comments
Open

Comments

@torydebra
Copy link

Hi Davide,

It would be really nice to have the possibility to plot the /tf among any couple frames.
Indeed, in the tf topic the transformations are published from the father to the son link , and some computations would be necessary to have the transformations between any couple other frames.

Do you see the possiblity to have such a feature? Or a workaround to plot this?

Thanks!

@facontidavide
Copy link
Owner

not impossible, but it is not on the roadmap. Maybe 2-3 days of work (that I can not do, right now)

If any company wants to sponsor this feature, let me know.

@lucasw
Copy link
Contributor

lucasw commented Mar 9, 2024

The work-around I've used for this (and a lot of other things) is a utility node I made called old_tf_to_new_tf in the tf_demo package where you can look up the relationship between any two frames and publish that relationship as a new single transform on /tf (be sure to name the child differently to avoid multiple parents). There's a python and C++ version that are mostly the same, the C++ version is faster but if you want to make modifications start with the python.

Here's an example of few getting launched:

https://github.com/lucasw/tf_demo/blob/old_tf_to_new_tf/launch/old_tf_to_new_tf.launch

It's just ros1 but a ros2 version wouldn't be too hard to make.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants