YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
yarp::dev::impl::jointData Class Reference

#include <yarp/dev/impl/jointData.h>

+ Inheritance diagram for yarp::dev::impl::jointData:

Public Types

typedef yarp::os::idl::Unwrapped< jointDataunwrapped
 

Public Member Functions

 jointData ()=default
 
 jointData (const yarp::sig::VectorOf< double > &jointPosition, const bool jointPosition_isValid, const yarp::sig::VectorOf< double > &jointVelocity, const bool jointVelocity_isValid, const yarp::sig::VectorOf< double > &jointAcceleration, const bool jointAcceleration_isValid, const yarp::sig::VectorOf< double > &motorPosition, const bool motorPosition_isValid, const yarp::sig::VectorOf< double > &motorVelocity, const bool motorVelocity_isValid, const yarp::sig::VectorOf< double > &motorAcceleration, const bool motorAcceleration_isValid, const yarp::sig::VectorOf< double > &torque, const bool torque_isValid, const yarp::sig::VectorOf< double > &pwmDutycycle, const bool pwmDutycycle_isValid, const yarp::sig::VectorOf< double > &current, const bool current_isValid, const yarp::sig::VectorOf< int > &controlMode, const bool controlMode_isValid, const yarp::sig::VectorOf< int > &interactionMode, const bool interactionMode_isValid)
 
bool read (yarp::os::idl::WireReader &reader) override
 
bool read (yarp::os::ConnectionReader &connection) override
 Read this object from a network connection.
 
bool write (const yarp::os::idl::WireWriter &writer) const override
 
bool write (yarp::os::ConnectionWriter &connection) const override
 Write this object to a network connection.
 
std::string toString () const
 
- Public Member Functions inherited from yarp::os::idl::WirePortable
virtual bool readBare (yarp::os::ConnectionReader &reader)
 
virtual bool writeBare (yarp::os::ConnectionWriter &writer) const
 
virtual bool readBottle (yarp::os::ConnectionReader &reader)
 
virtual bool writeBottle (yarp::os::ConnectionWriter &writer) const
 
- Public Member Functions inherited from yarp::os::Portable
virtual Type getType () const
 
- Public Member Functions inherited from yarp::os::PortReader
virtual ~PortReader ()
 Destructor.
 
virtual Type getReadType () const
 
- Public Member Functions inherited from yarp::os::PortWriter
virtual ~PortWriter ()
 Destructor.
 
virtual void onCompletion () const
 This is called when the port has finished all writing operations.
 
virtual void onCommencement () const
 This is called when the port is about to begin writing operations.
 
virtual yarp::os::Type getWriteType () const
 

Public Attributes

yarp::sig::VectorOf< double > jointPosition {}
 
bool jointPosition_isValid {false}
 
yarp::sig::VectorOf< double > jointVelocity {}
 
bool jointVelocity_isValid {false}
 
yarp::sig::VectorOf< double > jointAcceleration {}
 
bool jointAcceleration_isValid {false}
 
yarp::sig::VectorOf< double > motorPosition {}
 
bool motorPosition_isValid {false}
 
yarp::sig::VectorOf< double > motorVelocity {}
 
bool motorVelocity_isValid {false}
 
yarp::sig::VectorOf< double > motorAcceleration {}
 
bool motorAcceleration_isValid {false}
 
yarp::sig::VectorOf< double > torque {}
 
bool torque_isValid {false}
 
yarp::sig::VectorOf< double > pwmDutycycle {}
 
bool pwmDutycycle_isValid {false}
 
yarp::sig::VectorOf< double > current {}
 
bool current_isValid {false}
 
yarp::sig::VectorOf< int > controlMode {}
 
bool controlMode_isValid {false}
 
yarp::sig::VectorOf< int > interactionMode {}
 
bool interactionMode_isValid {false}
 

Additional Inherited Members

- Static Public Member Functions inherited from yarp::os::Portable
static bool copyPortable (const PortWriter &writer, PortReader &reader)
 Copy one portable to another, via writing and reading.
 

Detailed Description

Definition at line 22 of file jointData.h.

Member Typedef Documentation

◆ unwrapped

Constructor & Destructor Documentation

◆ jointData() [1/2]

yarp::dev::impl::jointData::jointData ( )
default

◆ jointData() [2/2]

yarp::dev::impl::jointData::jointData ( const yarp::sig::VectorOf< double > &  jointPosition,
const bool  jointPosition_isValid,
const yarp::sig::VectorOf< double > &  jointVelocity,
const bool  jointVelocity_isValid,
const yarp::sig::VectorOf< double > &  jointAcceleration,
const bool  jointAcceleration_isValid,
const yarp::sig::VectorOf< double > &  motorPosition,
const bool  motorPosition_isValid,
const yarp::sig::VectorOf< double > &  motorVelocity,
const bool  motorVelocity_isValid,
const yarp::sig::VectorOf< double > &  motorAcceleration,
const bool  motorAcceleration_isValid,
const yarp::sig::VectorOf< double > &  torque,
const bool  torque_isValid,
const yarp::sig::VectorOf< double > &  pwmDutycycle,
const bool  pwmDutycycle_isValid,
const yarp::sig::VectorOf< double > &  current,
const bool  current_isValid,
const yarp::sig::VectorOf< int > &  controlMode,
const bool  controlMode_isValid,
const yarp::sig::VectorOf< int > &  interactionMode,
const bool  interactionMode_isValid 
)

Definition at line 16 of file jointData.cpp.

Member Function Documentation

◆ read() [1/2]

bool yarp::dev::impl::jointData::read ( yarp::os::ConnectionReader reader)
overridevirtual

Read this object from a network connection.

Override this for your particular class.

Parameters
readeran interface to the network connection for reading
Returns
true iff the object is successfully read

Implements yarp::os::Portable.

Definition at line 140 of file jointData.cpp.

◆ read() [2/2]

bool yarp::dev::impl::jointData::read ( yarp::os::idl::WireReader reader)
overridevirtual

Reimplemented from yarp::os::idl::WirePortable.

Definition at line 65 of file jointData.cpp.

◆ toString()

std::string yarp::dev::impl::jointData::toString ( ) const

Definition at line 241 of file jointData.cpp.

◆ write() [1/2]

bool yarp::dev::impl::jointData::write ( const yarp::os::idl::WireWriter writer) const
overridevirtual

Reimplemented from yarp::os::idl::WirePortable.

Definition at line 153 of file jointData.cpp.

◆ write() [2/2]

bool yarp::dev::impl::jointData::write ( yarp::os::ConnectionWriter writer) const
overridevirtual

Write this object to a network connection.

Override this for your particular class. Be aware that depending on the nature of the connections a port has, and what protocol they use, and how efficient the YARP implementation is, this method may be called once, twice, or many times, as the result of a single call to Port::write

Parameters
writeran interface to the network connection for writing
Returns
true iff the object is successfully written

Implements yarp::os::Portable.

Definition at line 228 of file jointData.cpp.

Member Data Documentation

◆ controlMode

yarp::sig::VectorOf<int> yarp::dev::impl::jointData::controlMode {}

Definition at line 45 of file jointData.h.

◆ controlMode_isValid

bool yarp::dev::impl::jointData::controlMode_isValid {false}

Definition at line 46 of file jointData.h.

◆ current

yarp::sig::VectorOf<double> yarp::dev::impl::jointData::current {}

Definition at line 43 of file jointData.h.

◆ current_isValid

bool yarp::dev::impl::jointData::current_isValid {false}

Definition at line 44 of file jointData.h.

◆ interactionMode

yarp::sig::VectorOf<int> yarp::dev::impl::jointData::interactionMode {}

Definition at line 47 of file jointData.h.

◆ interactionMode_isValid

bool yarp::dev::impl::jointData::interactionMode_isValid {false}

Definition at line 48 of file jointData.h.

◆ jointAcceleration

yarp::sig::VectorOf<double> yarp::dev::impl::jointData::jointAcceleration {}

Definition at line 31 of file jointData.h.

◆ jointAcceleration_isValid

bool yarp::dev::impl::jointData::jointAcceleration_isValid {false}

Definition at line 32 of file jointData.h.

◆ jointPosition

yarp::sig::VectorOf<double> yarp::dev::impl::jointData::jointPosition {}

Definition at line 27 of file jointData.h.

◆ jointPosition_isValid

bool yarp::dev::impl::jointData::jointPosition_isValid {false}

Definition at line 28 of file jointData.h.

◆ jointVelocity

yarp::sig::VectorOf<double> yarp::dev::impl::jointData::jointVelocity {}

Definition at line 29 of file jointData.h.

◆ jointVelocity_isValid

bool yarp::dev::impl::jointData::jointVelocity_isValid {false}

Definition at line 30 of file jointData.h.

◆ motorAcceleration

yarp::sig::VectorOf<double> yarp::dev::impl::jointData::motorAcceleration {}

Definition at line 37 of file jointData.h.

◆ motorAcceleration_isValid

bool yarp::dev::impl::jointData::motorAcceleration_isValid {false}

Definition at line 38 of file jointData.h.

◆ motorPosition

yarp::sig::VectorOf<double> yarp::dev::impl::jointData::motorPosition {}

Definition at line 33 of file jointData.h.

◆ motorPosition_isValid

bool yarp::dev::impl::jointData::motorPosition_isValid {false}

Definition at line 34 of file jointData.h.

◆ motorVelocity

yarp::sig::VectorOf<double> yarp::dev::impl::jointData::motorVelocity {}

Definition at line 35 of file jointData.h.

◆ motorVelocity_isValid

bool yarp::dev::impl::jointData::motorVelocity_isValid {false}

Definition at line 36 of file jointData.h.

◆ pwmDutycycle

yarp::sig::VectorOf<double> yarp::dev::impl::jointData::pwmDutycycle {}

Definition at line 41 of file jointData.h.

◆ pwmDutycycle_isValid

bool yarp::dev::impl::jointData::pwmDutycycle_isValid {false}

Definition at line 42 of file jointData.h.

◆ torque

yarp::sig::VectorOf<double> yarp::dev::impl::jointData::torque {}

Definition at line 39 of file jointData.h.

◆ torque_isValid

bool yarp::dev::impl::jointData::torque_isValid {false}

Definition at line 40 of file jointData.h.


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