@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ROS2PrimitiveMessageDefinition extends Object implements Serializable, Cloneable, StructuredPojo
Represents a ROS 2 compliant primitive type message of the complex data structure.
Constructor and Description |
---|
ROS2PrimitiveMessageDefinition() |
Modifier and Type | Method and Description |
---|---|
ROS2PrimitiveMessageDefinition |
clone() |
boolean |
equals(Object obj) |
Double |
getOffset()
The offset used to calculate the signal value.
|
String |
getPrimitiveType()
The primitive type (integer, floating point, boolean, etc.) for the ROS 2 primitive message definition.
|
Double |
getScaling()
A multiplier used to decode the message.
|
Long |
getUpperBound()
An optional attribute specifying the upper bound for
STRING and WSTRING . |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setOffset(Double offset)
The offset used to calculate the signal value.
|
void |
setPrimitiveType(String primitiveType)
The primitive type (integer, floating point, boolean, etc.) for the ROS 2 primitive message definition.
|
void |
setScaling(Double scaling)
A multiplier used to decode the message.
|
void |
setUpperBound(Long upperBound)
An optional attribute specifying the upper bound for
STRING and WSTRING . |
String |
toString()
Returns a string representation of this object.
|
ROS2PrimitiveMessageDefinition |
withOffset(Double offset)
The offset used to calculate the signal value.
|
ROS2PrimitiveMessageDefinition |
withPrimitiveType(ROS2PrimitiveType primitiveType)
The primitive type (integer, floating point, boolean, etc.) for the ROS 2 primitive message definition.
|
ROS2PrimitiveMessageDefinition |
withPrimitiveType(String primitiveType)
The primitive type (integer, floating point, boolean, etc.) for the ROS 2 primitive message definition.
|
ROS2PrimitiveMessageDefinition |
withScaling(Double scaling)
A multiplier used to decode the message.
|
ROS2PrimitiveMessageDefinition |
withUpperBound(Long upperBound)
An optional attribute specifying the upper bound for
STRING and WSTRING . |
public void setPrimitiveType(String primitiveType)
The primitive type (integer, floating point, boolean, etc.) for the ROS 2 primitive message definition.
primitiveType
- The primitive type (integer, floating point, boolean, etc.) for the ROS 2 primitive message definition.ROS2PrimitiveType
public String getPrimitiveType()
The primitive type (integer, floating point, boolean, etc.) for the ROS 2 primitive message definition.
ROS2PrimitiveType
public ROS2PrimitiveMessageDefinition withPrimitiveType(String primitiveType)
The primitive type (integer, floating point, boolean, etc.) for the ROS 2 primitive message definition.
primitiveType
- The primitive type (integer, floating point, boolean, etc.) for the ROS 2 primitive message definition.ROS2PrimitiveType
public ROS2PrimitiveMessageDefinition withPrimitiveType(ROS2PrimitiveType primitiveType)
The primitive type (integer, floating point, boolean, etc.) for the ROS 2 primitive message definition.
primitiveType
- The primitive type (integer, floating point, boolean, etc.) for the ROS 2 primitive message definition.ROS2PrimitiveType
public void setOffset(Double offset)
The offset used to calculate the signal value. Combined with scaling, the calculation is
value = raw_value * scaling + offset
.
offset
- The offset used to calculate the signal value. Combined with scaling, the calculation is
value = raw_value * scaling + offset
.public Double getOffset()
The offset used to calculate the signal value. Combined with scaling, the calculation is
value = raw_value * scaling + offset
.
value = raw_value * scaling + offset
.public ROS2PrimitiveMessageDefinition withOffset(Double offset)
The offset used to calculate the signal value. Combined with scaling, the calculation is
value = raw_value * scaling + offset
.
offset
- The offset used to calculate the signal value. Combined with scaling, the calculation is
value = raw_value * scaling + offset
.public void setScaling(Double scaling)
A multiplier used to decode the message.
scaling
- A multiplier used to decode the message.public Double getScaling()
A multiplier used to decode the message.
public ROS2PrimitiveMessageDefinition withScaling(Double scaling)
A multiplier used to decode the message.
scaling
- A multiplier used to decode the message.public void setUpperBound(Long upperBound)
An optional attribute specifying the upper bound for STRING
and WSTRING
.
upperBound
- An optional attribute specifying the upper bound for STRING
and WSTRING
.public Long getUpperBound()
An optional attribute specifying the upper bound for STRING
and WSTRING
.
STRING
and WSTRING
.public ROS2PrimitiveMessageDefinition withUpperBound(Long upperBound)
An optional attribute specifying the upper bound for STRING
and WSTRING
.
upperBound
- An optional attribute specifying the upper bound for STRING
and WSTRING
.public String toString()
toString
in class Object
Object.toString()
public ROS2PrimitiveMessageDefinition clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.