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