public class TransformStamped extends Message
| Modifier and Type | Field and Description |
|---|---|
static String |
FIELD_CHILD_FRAME_ID
The name of the child frame ID field for the message.
|
static String |
FIELD_HEADER
The name of the header field for the message.
|
static String |
FIELD_TRANSFORM
The name of the transform field for the message.
|
static String |
TYPE
The message type.
|
EMPTY_MESSAGEEMPTY_JSON| Constructor and Description |
|---|
TransformStamped()
Create a new TransformStamped with all 0s.
|
TransformStamped(Header header,
String childFrameID,
Transform transform)
Create a new TransformStamped with the given values.
|
| Modifier and Type | Method and Description |
|---|---|
TransformStamped |
clone()
Create a clone of this TransformStamped.
|
static TransformStamped |
fromJsonObject(javax.json.JsonObject jsonObject)
Create a new TransformStamped based on the given JSON object.
|
static TransformStamped |
fromJsonString(String jsonString)
Create a new TransformStamped based on the given JSON string.
|
static TransformStamped |
fromMessage(Message m)
Create a new TransformStamped based on the given Message.
|
String |
getChildFrameID()
Get the child frame ID value of this transform.
|
Header |
getHeader()
Get the header value of this transform.
|
Transform |
getTransform()
Get the transform value of this transform.
|
getMessageType, setMessageTypeequals, hashCode, toJsonObject, toStringpublic static final String FIELD_HEADER
public static final String FIELD_CHILD_FRAME_ID
public static final String FIELD_TRANSFORM
public static final String TYPE
public TransformStamped()
public TransformStamped(Header header, String childFrameID, Transform transform)
header - The header value of the transform.childFrameID - The child frame ID value of the transform.transform - The transform value of the transform.public Header getHeader()
public String getChildFrameID()
public Transform getTransform()
public TransformStamped clone()
public static TransformStamped fromJsonString(String jsonString)
jsonString - The JSON string to parse.public static TransformStamped fromMessage(Message m)
m - The Message to parse.public static TransformStamped fromJsonObject(javax.json.JsonObject jsonObject)
jsonObject - The JSON object to parse.Copyright © 2014. All rights reserved.