Class TFSystemVisualizer
MonoBehaviour and IHudTab that visualizes the ROS transform tree by drawing coordinate axes, parent-child link lines, and frame-name labels for each TFStream, and exposes per-frame visibility toggles in the "Transforms" HUD tab.
Implements
Inherited Members
Namespace: Unity.SimulationPro.Foundation.Visualizations
Assembly: Unity.SimulationPro.Foundation.Visualizations.dll
Syntax
public class TFSystemVisualizer : MonoBehaviour, IHudTab
Fields
axesScale
The axesScale.
Declaration
public float axesScale
Field Value
| Type | Description |
|---|---|
| float |
color
Color used for the visualization elements.
Declaration
public Color color
Field Value
| Type | Description |
|---|---|
| Color |
lineThickness
The lineThickness.
Declaration
public float lineThickness
Field Value
| Type | Description |
|---|---|
| float |
Properties
ShowTFAxesDefault
Gets or sets whether coordinate axes are shown by default for newly discovered transform frames.
Declaration
public bool ShowTFAxesDefault { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ShowTFLinksDefault
Gets or sets whether parent-child link lines are shown by default for newly discovered transform frames.
Declaration
public bool ShowTFLinksDefault { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ShowTFNamesDefault
Gets or sets whether frame-name labels are shown by default for newly discovered transform frames.
Declaration
public bool ShowTFNamesDefault { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
OnChanged(TFStream)
Called when a TFStream is updated; refreshes or creates the corresponding Drawing3d and redraws axes, links, and labels according to the per-stream visibility settings.
Declaration
public void OnChanged(TFStream stream)
Parameters
| Type | Name | Description |
|---|---|---|
| TFStream | stream | The transform stream that changed. |
OnDestroy()
Unregisters this component from the HUD when destroyed.
Declaration
public void OnDestroy()
Start()
Finds the ITransformSystem, subscribes to transform change events, and registers this component as the "Transforms" HUD tab.
Declaration
public void Start()