OpenJAUS SAE SDK  6.0.0
Public Types | Public Member Functions | Private Attributes | List of all members
openjaus::manipulator_v1_0::JointVelocityVariant Class Reference

#include <JointVelocityVariant.h>

Inherits openjaus::model::fields::Variant.

Public Types

enum  TypeEnum { JOINTVELOCITYOPTION0 = 1, JOINTVELOCITYOPTION1 = 2 }
 

Public Member Functions

 JointVelocityVariant ()
 
 ~JointVelocityVariant ()
 
JointVelocityVariant::TypeEnum getType (void)
 
void setType (JointVelocityVariant::TypeEnum type)
 
void copy (JointVelocityVariant &source)
 
virtual uint64 to (system::BufferWriter &dst) const
 Serializes the contents of this object into the Buffer connected to the provided BufferWriter. More...
 
virtual uint64 from (system::BufferReader &src)
 Deserializes the contents the Buffer connected to the provided BufferReader into this object. More...
 
virtual uint64 length (void) const
 Gets the serialized length of this object. More...
 
std::string toXml (unsigned char ojIndentLevel=0) const
 
double getJointVelocityOption0_rps (void)
 
bool setJointVelocityOption0_rps (double value)
 
double getJointVelocityOption1_mps (void)
 
bool setJointVelocityOption1_mps (double value)
 
std::string typeToString (void)
 
- Public Member Functions inherited from openjaus::model::fields::Variant
 Variant ()
 
virtual ~Variant ()
 
virtual std::string toString () const
 
- Public Member Functions inherited from openjaus::model::fields::ComplexField
virtual ~ComplexField ()
 
- Public Member Functions inherited from openjaus::model::fields::Field
 Field ()
 
virtual ~Field ()
 
std::string getName () const
 Accessor to get the value of name. More...
 
bool setName (std::string name)
 Accessor to set value of name. More...
 
- Public Member Functions inherited from openjaus::system::Transportable
 Transportable ()
 
virtual ~Transportable ()
 

Private Attributes

TypeEnum type
 
JointVelocityOption0ScaledInteger jointVelocityOption0_rps
 
JointVelocityOption1ScaledInteger jointVelocityOption1_mps
 

Additional Inherited Members

- Protected Attributes inherited from openjaus::model::fields::Field
std::string name
 

Member Enumeration Documentation

◆ TypeEnum

Enumerator
JOINTVELOCITYOPTION0 
JOINTVELOCITYOPTION1 

Constructor & Destructor Documentation

◆ JointVelocityVariant()

openjaus::manipulator_v1_0::JointVelocityVariant::JointVelocityVariant ( )

◆ ~JointVelocityVariant()

openjaus::manipulator_v1_0::JointVelocityVariant::~JointVelocityVariant ( )

Member Function Documentation

◆ copy()

void openjaus::manipulator_v1_0::JointVelocityVariant::copy ( JointVelocityVariant source)

◆ from()

uint64 openjaus::manipulator_v1_0::JointVelocityVariant::from ( system::BufferReader src)
virtual

Deserializes the contents the Buffer connected to the provided BufferReader into this object. The BufferReader position will be advanced inside this method such that calling from() again will attempt to read the next Transportable object from the Buffer.

Parameters
src

Reimplemented from openjaus::model::fields::Variant.

◆ getJointVelocityOption0_rps()

double openjaus::manipulator_v1_0::JointVelocityVariant::getJointVelocityOption0_rps ( void  )

◆ getJointVelocityOption1_mps()

double openjaus::manipulator_v1_0::JointVelocityVariant::getJointVelocityOption1_mps ( void  )

◆ getType()

JointVelocityVariant::TypeEnum openjaus::manipulator_v1_0::JointVelocityVariant::getType ( void  )

◆ length()

uint64 openjaus::manipulator_v1_0::JointVelocityVariant::length ( void  ) const
virtual

Reimplemented from openjaus::model::fields::Variant.

◆ setJointVelocityOption0_rps()

bool openjaus::manipulator_v1_0::JointVelocityVariant::setJointVelocityOption0_rps ( double  value)

◆ setJointVelocityOption1_mps()

bool openjaus::manipulator_v1_0::JointVelocityVariant::setJointVelocityOption1_mps ( double  value)

◆ setType()

void openjaus::manipulator_v1_0::JointVelocityVariant::setType ( JointVelocityVariant::TypeEnum  type)

◆ to()

uint64 openjaus::manipulator_v1_0::JointVelocityVariant::to ( system::BufferWriter dst) const
virtual

Serializes the contents of this object into the Buffer connected to the provided BufferWriter. The BufferWriter position will be advanced inside this method such that calling to() again will write the Transportable object into the Buffer a second time.

Parameters
dst

Reimplemented from openjaus::model::fields::Variant.

◆ toXml()

std::string openjaus::manipulator_v1_0::JointVelocityVariant::toXml ( unsigned char  ojIndentLevel = 0) const

◆ typeToString()

std::string openjaus::manipulator_v1_0::JointVelocityVariant::typeToString ( void  )

Member Data Documentation

◆ jointVelocityOption0_rps

JointVelocityOption0ScaledInteger openjaus::manipulator_v1_0::JointVelocityVariant::jointVelocityOption0_rps
private

◆ jointVelocityOption1_mps

JointVelocityOption1ScaledInteger openjaus::manipulator_v1_0::JointVelocityVariant::jointVelocityOption1_mps
private

◆ type

TypeEnum openjaus::manipulator_v1_0::JointVelocityVariant::type
private

The documentation for this class was generated from the following files: