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