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