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