public class PoseArray extends Message
| Modifier and Type | Field and Description |
|---|---|
static String |
FIELD_HEADER
The name of the header field for the message.
|
static String |
FIELD_POSES
The name of the poses field for the message.
|
static String |
TYPE
The message type.
|
EMPTY_MESSAGEEMPTY_JSON| Constructor and Description |
|---|
PoseArray()
Create a new PoseArray with no poses.
|
PoseArray(Header header,
Pose[] poses)
Create a new PoseArray with the given set of poses and header.
|
| Modifier and Type | Method and Description |
|---|---|
PoseArray |
clone()
Create a clone of this PoseArray.
|
static PoseArray |
fromJsonObject(javax.json.JsonObject jsonObject)
Create a new PoseArray based on the given JSON object.
|
static PoseArray |
fromJsonString(String jsonString)
Create a new PoseArray based on the given JSON string.
|
static PoseArray |
fromMessage(Message m)
Create a new PoseArray based on the given Message.
|
Pose |
get(int index)
Get the pose in the pose array at the given index.
|
Header |
getHeader()
Get the header value of this pose array.
|
Pose[] |
getPoses()
Get the poses of this pose array.
|
int |
size()
Get the number of poses in this pose array.
|
getMessageType, setMessageTypeequals, hashCode, toJsonObject, toStringpublic static final String FIELD_HEADER
public static final String FIELD_POSES
public static final String TYPE
public int size()
public Pose get(int index)
index - The index to get the pose of.public Pose[] getPoses()
public Header getHeader()
public static PoseArray fromJsonString(String jsonString)
jsonString - The JSON string to parse.public static PoseArray fromMessage(Message m)
m - The Message to parse.public static PoseArray fromJsonObject(javax.json.JsonObject jsonObject)
jsonObject - The JSON object to parse.Copyright © 2014. All rights reserved.