Class TFSystemComponent
A MonoBehaviour wrapper that creates and exposes a TFSystem connected to the nearest IConnector in the scene.
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 TFSystemComponent : MonoBehaviour, IPropertySerialization
Remarks
Add this component to a GameObject to make a TFSystem discoverable by TFSystemInjector. Properties are binary-serializable via IPropertySerialization.
Fields
m_TFTopic
The ROS topic name to subscribe for TF messages.
Declaration
[SerializeField]
public string m_TFTopic
Field Value
| Type | Description |
|---|---|
| string |
Properties
TFSystem
Gets the ITransformSystem managed by this component, initializing it on first access if necessary.
Declaration
public ITransformSystem TFSystem { get; }
Property Value
| Type | Description |
|---|---|
| ITransformSystem |
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. |