Public Member Functions | Private Attributes | List of all members
fsrobo_r_driver::simple_message::posture::Posture Class Reference

Class encapsulated posture data. FSRobo-R specific interface to posture on the controller. More...

#include <posture.h>

Inheritance diagram for fsrobo_r_driver::simple_message::posture::Posture:
Inheritance graph
[legend]

Public Member Functions

unsigned int byteLength ()
 
void copyFrom (Posture &src)
 Copies the passed in value. More...
 
industrial::shared_types::shared_int getPosture ()
 Returns the posture. More...
 
void init ()
 Initializes a empty posture command. More...
 
void init (industrial::shared_types::shared_int posture)
 Initializes a complete posture command. More...
 
bool load (industrial::byte_array::ByteArray *buffer)
 
bool operator== (Posture &rhs)
 == operator implementation More...
 
 Posture (void)
 Default constructor. More...
 
void setPosture (industrial::shared_types::shared_int posture)
 Set posture. More...
 
bool unload (industrial::byte_array::ByteArray *buffer)
 
 ~Posture (void)
 Destructor. More...
 

Private Attributes

industrial::shared_types::shared_int posture_
 Posture. More...
 

Detailed Description

Class encapsulated posture data. FSRobo-R specific interface to posture on the controller.

The byte representation of a posture command is as follows (in order lowest index to highest). The standard sizes are given, but can change based on type sizes:

member: type size posture (industrial::shared_types::shared_int) 4 bytes

THIS CLASS IS NOT THREAD-SAFE

Definition at line 58 of file posture.h.

Constructor & Destructor Documentation

fsrobo_r_driver::simple_message::posture::Posture::Posture ( void  )

Default constructor.

This method creates empty data.

Definition at line 43 of file posture.cpp.

fsrobo_r_driver::simple_message::posture::Posture::~Posture ( void  )

Destructor.

Definition at line 48 of file posture.cpp.

Member Function Documentation

unsigned int fsrobo_r_driver::simple_message::posture::Posture::byteLength ( )
inlinevirtual

Implements industrial::simple_serialize::SimpleSerialize.

Definition at line 124 of file posture.h.

void fsrobo_r_driver::simple_message::posture::Posture::copyFrom ( Posture src)

Copies the passed in value.

Parameters
src(value to copy)

Definition at line 62 of file posture.cpp.

industrial::shared_types::shared_int fsrobo_r_driver::simple_message::posture::Posture::getPosture ( )
inline

Returns the posture.

Returns
posture

Definition at line 102 of file posture.h.

void fsrobo_r_driver::simple_message::posture::Posture::init ( )

Initializes a empty posture command.

Definition at line 52 of file posture.cpp.

void fsrobo_r_driver::simple_message::posture::Posture::init ( industrial::shared_types::shared_int  posture)

Initializes a complete posture command.

Definition at line 57 of file posture.cpp.

bool fsrobo_r_driver::simple_message::posture::Posture::load ( industrial::byte_array::ByteArray buffer)
virtual

Implements industrial::simple_serialize::SimpleSerialize.

Definition at line 74 of file posture.cpp.

bool fsrobo_r_driver::simple_message::posture::Posture::operator== ( Posture rhs)

== operator implementation

Returns
true if equal

Definition at line 67 of file posture.cpp.

void fsrobo_r_driver::simple_message::posture::Posture::setPosture ( industrial::shared_types::shared_int  posture)
inline

Set posture.

Parameters
posture

Definition at line 92 of file posture.h.

bool fsrobo_r_driver::simple_message::posture::Posture::unload ( industrial::byte_array::ByteArray buffer)
virtual

Implements industrial::simple_serialize::SimpleSerialize.

Definition at line 88 of file posture.cpp.

Member Data Documentation

industrial::shared_types::shared_int fsrobo_r_driver::simple_message::posture::Posture::posture_
private

Posture.

Definition at line 133 of file posture.h.


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


fsrobo_r_driver
Author(s): F-ROSROBO
autogenerated on Sun Feb 9 2020 03:58:29