Class AccelWithCovarianceDefaultVisualizer
Default visualizer for geometry_msgs/AccelWithCovariance messages. Draws a linear-acceleration arrow and an angular-velocity ring at a configurable origin.
Inheritance
Inherited Members
Namespace: Global Namespace
Assembly: Unity.SimulationPro.Foundation.Visualizations.dll
Syntax
public class AccelWithCovarianceDefaultVisualizer : DrawingVisualizer<AccelWithCovarianceMsg>, IVisualFactory, IPriority
Fields
m_LengthScale
Scale factor applied to vector magnitudes for visualization.
Declaration
public float m_LengthScale
Field Value
| Type | Description |
|---|---|
| float |
m_Origin
Optional GameObject whose world position serves as the drawing origin; if null, the world origin is used.
Declaration
public GameObject m_Origin
Field Value
| Type | Description |
|---|---|
| GameObject |
m_SphereRadius
Radius in world units for spheres and rings drawn at the origin.
Declaration
public float m_SphereRadius
Field Value
| Type | Description |
|---|---|
| float |
m_Thickness
Line thickness in world units for drawing vectors and arcs.
Declaration
public float m_Thickness
Field Value
| Type | Description |
|---|---|
| float |
Methods
CreateGUI(AccelWithCovarianceMsg, MessageMetadata)
Creates a GUI callback that renders an Inspector panel for the message data.
Declaration
public override Action CreateGUI(AccelWithCovarianceMsg message, MessageMetadata meta)
Parameters
| Type | Name | Description |
|---|---|---|
| AccelWithCovarianceMsg | 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, AccelWithCovarianceMsg, MessageMetadata)
Draws a 3D visualization of the message data.
Declaration
public override void Draw(Drawing3d drawing, AccelWithCovarianceMsg message, MessageMetadata meta)
Parameters
| Type | Name | Description |
|---|---|---|
| Drawing3d | drawing | The 3D drawing context to render into. |
| AccelWithCovarianceMsg | message | The message data to visualize. |
| MessageMetadata | meta | Metadata about the received message (topic, timestamp, frame). |
Overrides
Draw<C>(AccelWithCovarianceMsg, Drawing3d, Color, GameObject, float, float, float)
Draws the acceleration component of a AccelWithCovarianceMsg at the specified origin.
Declaration
public static void Draw<C>(AccelWithCovarianceMsg message, Drawing3d drawing, Color color, GameObject origin, float lengthScale = 1, float sphereRadius = 1, float thickness = 0.01) where C : ICoordinateSpace, new()
Parameters
| Type | Name | Description |
|---|---|---|
| AccelWithCovarianceMsg | message | The acceleration-with-covariance message to visualize. |
| Drawing3d | drawing | The Drawing3d to draw into. |
| Color | color | RGBA color. |
| GameObject | origin | Optional GameObject providing the world-space drawing origin; if |
| float | lengthScale | Multiplier applied to the linear acceleration vector length. |
| float | sphereRadius | Radius of the angular-velocity ring in world units. |
| float | thickness | Line thickness in world units. |
Type Parameters
| Name | Description |
|---|---|
| C | The coordinate space of the message data. |