Class PathDefaultVisualizer
Default visualizer for nav_msgs/Path messages. Draws the path as a connected line strip through all pose positions.
Inheritance
Inherited Members
Namespace: Unity.SimulationPro.Foundation.Visualizations
Assembly: Unity.SimulationPro.Foundation.Visualizations.dll
Syntax
public class PathDefaultVisualizer : DrawingVisualizer<PathMsg>, IVisualFactory, IPriority
Methods
CreateGUI(PathMsg, MessageMetadata)
Creates a GUI callback that renders an Inspector panel for the message data.
Declaration
public override Action CreateGUI(PathMsg message, MessageMetadata meta)
Parameters
| Type | Name | Description |
|---|---|---|
| PathMsg | message | The message data to visualize. |
| MessageMetadata | meta | Metadata about the received message (topic, timestamp, frame). |
Returns
| Type | Description |
|---|---|
| Action | An action that draws the GUI. |
Overrides
Draw(Drawing3d, PathMsg, MessageMetadata)
Draws a 3D visualization of the message data.
Declaration
public override void Draw(Drawing3d drawing, PathMsg message, MessageMetadata meta)
Parameters
| Type | Name | Description |
|---|---|---|
| Drawing3d | drawing | The 3D drawing context to render into. |
| PathMsg | message | The message data to visualize. |
| MessageMetadata | meta | Metadata about the received message (topic, timestamp, frame). |
Overrides
Draw<C>(PathMsg, Drawing3d, Color, float, Vector3)
Draws the path as a line strip through each pose's position, applying an optional world-space offset.
Declaration
public static void Draw<C>(PathMsg message, Drawing3d drawing, Color color, float thickness = 0.1, Vector3 offset = default) where C : ICoordinateSpace, new()
Parameters
| Type | Name | Description |
|---|---|---|
| PathMsg | message | The message data to visualize. |
| Drawing3d | drawing | The Drawing3d to draw into. |
| Color | color | RGBA color. |
| float | thickness | The line thickness in world units. |
| Vector3 | offset | A world-space offset added to every point position. |
Type Parameters
| Name | Description |
|---|---|
| C | The coordinate space of the pose data. |