Publish your scene's transform hierarchy
Add a TfBroadcasterComponent to publish a GameObject hierarchy as ROS transform messages.
TfBroadcasterComponent publishes the transform hierarchy of a robot or other articulated object as a ROS /tf topic message (TFMessageMsg) on every FixedUpdate. The publishing rate is therefore determined by Time.fixedDeltaTime, the physics step rate of your project.
Prerequisites
Before you begin, make sure a connector (BaseConnectionComponent) is reachable through ConnectorInjector. Refer to Get started.
Publish a transform hierarchy
To publish a transform hierarchy:
- Select the root GameObject of your robot in the scene.
- Add the
TfBroadcasterComponentcomponent.
You don't need to configure anything further. TfBroadcasterComponent configures itself when it starts:
- If it finds an
ArticulationBodyanywhere in the hierarchy, it builds anArticulationBody-basedTransformTree. - Otherwise, it builds a
Transform-basedTransformTree.