public class PoseWithCovariance extends Message
| Modifier and Type | Field and Description |
|---|---|
static int |
COVARIANCE_COLUMNS
The number of columns in the covariance matrix.
|
static int |
COVARIANCE_ROWS
The number of rows in the covariance matrix.
|
static int |
COVARIANCE_SIZE
The size of the covariance matrix.
|
static String |
FIELD_COVARIANCE
The name of the covariance field for the message.
|
static String |
FIELD_POSE
The name of the pose field for the message.
|
static String |
TYPE
The message type.
|
EMPTY_MESSAGEEMPTY_JSON| Constructor and Description |
|---|
PoseWithCovariance()
Create a new PoseWithCovariance with all 0 values.
|
PoseWithCovariance(Pose pose)
Create a new PoseWithCovariance with the given pose.
|
PoseWithCovariance(Pose pose,
double[] covariance)
Create a new PoseWithCovariance with the given pose and covariance
matrix.
|
| Modifier and Type | Method and Description |
|---|---|
PoseWithCovariance |
clone()
Create a clone of this PoseWithCovariance.
|
static PoseWithCovariance |
fromJsonObject(javax.json.JsonObject jsonObject)
Create a new PoseWithCovariance based on the given JSON object.
|
static PoseWithCovariance |
fromJsonString(String jsonString)
Create a new PoseWithCovariance based on the given JSON string.
|
static PoseWithCovariance |
fromMessage(Message m)
Create a new PoseWithCovariance based on the given Message.
|
double[] |
getCovariance()
Get the covariance matrix of this pose as an array.
|
double[][] |
getCovarianceMatrix()
Get the covariance matrix of this pose as a 2d-array.
|
Pose |
getPose()
Get the pose value of this pose.
|
getMessageType, setMessageTypeequals, hashCode, toJsonObject, toStringpublic static final String FIELD_POSE
public static final String FIELD_COVARIANCE
public static final String TYPE
public static final int COVARIANCE_ROWS
public static final int COVARIANCE_COLUMNS
public static final int COVARIANCE_SIZE
public PoseWithCovariance()
public PoseWithCovariance(Pose pose)
pose - The pose value of the pose.public PoseWithCovariance(Pose pose, double[] covariance)
pose - The pose value of the pose.covariance - The covariance matrix as an array.public Pose getPose()
public double[] getCovariance()
public double[][] getCovarianceMatrix()
public PoseWithCovariance clone()
public static PoseWithCovariance fromJsonString(String jsonString)
jsonString - The JSON string to parse.public static PoseWithCovariance fromMessage(Message m)
m - The Message to parse.public static PoseWithCovariance fromJsonObject(javax.json.JsonObject jsonObject)
jsonObject - The JSON object to parse.Copyright © 2014. All rights reserved.