public class Wrench extends Message
| Modifier and Type | Field and Description |
|---|---|
static String |
FIELD_FORCE
The name of the force field for the message.
|
static String |
FIELD_TORQUE
The name of the torque field for the message.
|
static String |
TYPE
The message type.
|
EMPTY_MESSAGEEMPTY_JSON| Constructor and Description |
|---|
Wrench()
Create a new Wrench with all 0s.
|
Wrench(Vector3 force,
Vector3 torque)
Create a new Wrench with the given force and torque values.
|
| Modifier and Type | Method and Description |
|---|---|
Wrench |
clone()
Create a clone of this Wrench.
|
static Wrench |
fromJsonObject(javax.json.JsonObject jsonObject)
Create a new Wrench based on the given JSON object.
|
static Wrench |
fromJsonString(String jsonString)
Create a new Wrench based on the given JSON string.
|
static Wrench |
fromMessage(Message m)
Create a new Wrench based on the given Message.
|
Vector3 |
getForce()
Get the force value of this wrench.
|
Vector3 |
getTorque()
Get the torque value of this wrench.
|
getMessageType, setMessageTypeequals, hashCode, toJsonObject, toStringpublic static final String FIELD_FORCE
public static final String FIELD_TORQUE
public static final String TYPE
public Vector3 getForce()
public Vector3 getTorque()
public static Wrench fromJsonString(String jsonString)
jsonString - The JSON string to parse.public static Wrench fromMessage(Message m)
m - The Message to parse.public static Wrench fromJsonObject(javax.json.JsonObject jsonObject)
jsonObject - The JSON object to parse.Copyright © 2014. All rights reserved.