Class TransformStampedMsg
ROS geometry_msgs/TransformStamped message.
Implements
Inherited Members
Namespace: Unity.SimulationPro.Foundation.GeometryMessages
Assembly: Unity.SimulationPro.Foundation.dll
Syntax
[Serializable]
public class TransformStampedMsg : IMessage
Constructors
TransformStampedMsg()
Initializes a new instance with default values.
Declaration
public TransformStampedMsg()
TransformStampedMsg(HeaderMsg, string, TransformMsg)
Initializes a new instance with default values.
Declaration
public TransformStampedMsg(HeaderMsg header, string child_frame_id, TransformMsg transform)
Parameters
| Type | Name | Description |
|---|---|---|
| HeaderMsg | header | ROS message header containing timestamp and coordinate frame identifier. |
| string | child_frame_id | TF frame identifier of the child frame in a transform relationship. |
| TransformMsg | transform | The geometric transform. |
Fields
child_frame_id
The frame id of the child frame to which this transform points.
Declaration
public string child_frame_id
Field Value
| Type | Description |
|---|---|
| string |
header
This expresses a transform from coordinate frame header.frame_id to the coordinate frame child_frame_id at the time of header.stamp This message is mostly used by the tf2 package. See its documentation for more information. The child_frame_id is necessary in addition to the frame_id in the Header to communicate the full reference for the transform in a self contained message. The frame id in the header is used as the reference frame of this transform.
Declaration
public HeaderMsg header
Field Value
| Type | Description |
|---|---|
| HeaderMsg |
k_MessageTypeId
Identifier for this message type.
Declaration
public static readonly MessageTypeId k_MessageTypeId
Field Value
| Type | Description |
|---|---|
| MessageTypeId |
k_MessageTypeName
The ROS message type name string used for serialization and topic matching.
Declaration
public const string k_MessageTypeName = "geometry_msgs/TransformStamped"
Field Value
| Type | Description |
|---|---|
| string |
transform
Translation and rotation in 3-dimensions of child_frame_id from header.frame_id.
Declaration
public TransformMsg transform
Field Value
| Type | Description |
|---|---|
| TransformMsg |
Properties
MessageTypeId
Gets the unique runtime identifier for this message type.
Declaration
public MessageTypeId MessageTypeId { get; }
Property Value
| Type | Description |
|---|---|
| MessageTypeId |
MessageTypeName
Gets the ROS message type name for this message.
Declaration
public string MessageTypeName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
Deserialize(IMessageDeserializer)
Deserializes a TransformStampedMsg from the given deserializer.
Declaration
public static TransformStampedMsg Deserialize(IMessageDeserializer deserializer)
Parameters
| Type | Name | Description |
|---|---|---|
| IMessageDeserializer | deserializer | The deserializer. |
Returns
| Type | Description |
|---|---|
| TransformStampedMsg | A new TransformStampedMsg instance. |
Register()
Registers this message type with the MessageTypeRegistry.
Declaration
[InitializeOnLoadMethod]
public static void Register()
ToString()
Returns a human-readable string representation of this message.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string representation of this instance. |
Overrides
WriteTo(IMessageSerializer)
Serializes this message to the given serializer.
Declaration
public void WriteTo(IMessageSerializer serializer)
Parameters
| Type | Name | Description |
|---|---|---|
| IMessageSerializer | serializer | The serializer. |