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