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

Can a frame be both parent_id and child_id?

asked 2019-06-27 11:46:28 -0500

sajal gravatar image

I'm using odom as parent_id for base_link and child_frame_id for map tf in the respective launch files. Will it cause any issues in my tf tree?

edit retag flag offensive close merge delete



As long as your overall TF tree doesn't have any loops or multiple roots then this shouldn't be a problem at all.

PeteBlackerThe3rd gravatar image PeteBlackerThe3rd  ( 2019-06-27 11:51:05 -0500 )edit

I would go even further: how would we ever create tree structures (or any linked structures) if frames can't be both parent and child?

gvdhoorn gravatar image gvdhoorn  ( 2019-06-27 12:20:37 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2019-06-27 21:05:32 -0500

No, it won't cause any issues, that is exactly how hierarchy trees work.

Me myself am a father because I have children, but at the same time I am a child because I have a father.

Same for the example you describe.

edit flag offensive delete link more

Question Tools



Asked: 2019-06-27 11:46:28 -0500

Seen: 322 times

Last updated: Jun 27 '19