Class TfBroadcasterComponent
Publishes the transform hierarchy of a robot or articulated object as ROS /tf messages every fixed update.
Implements
Inherited Members
Object.GetEntityId()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.SimulationPro.Foundation
Assembly: Unity.SimulationPro.Foundation.dll
Syntax
public class TfBroadcasterComponent : MonoBehaviour, IPropertySerialization
Remarks
Attach this component to the root GameObject of an articulated object. In Start()
it detects whether an ArticulationBody is present in the hierarchy and builds the
appropriate TransformTree. Each FixedUpdate the current transform state is timestamped
using Now and published to the /tf topic via the nearest
IConnector.
Methods
DeserializeProperties(BinaryReader)
Reads and restores the component's serializable properties from the specified reader.
Declaration
public void DeserializeProperties(BinaryReader reader)
Parameters
| Type | Name | Description |
|---|---|---|
| BinaryReader | reader | The binary reader to read property data from. |
SerializeProperties(BinaryWriter)
Writes the component's serializable properties to the specified writer.
Declaration
public void SerializeProperties(BinaryWriter writer)
Parameters
| Type | Name | Description |
|---|---|---|
| BinaryWriter | writer | The binary writer to write property data to. |