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