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