joint_dispatcher
Public Member Functions | List of all members
joint_dispatcher::Output Class Reference

#include <Output.hpp>

Public Member Functions

 Output (std::string const &name="")
 
std::string getName () const
 
void updateJoint (size_t jointIdx, base::Time const &time, base::JointState const &sample)
 
base::samples::Joints read ()
 
std::vector< std::string > getJointNames () const
 
std::vector< size_t > mapJointNamesToIndex (std::vector< std::string > const &names) const
 
size_t size () const
 
void resize (std::vector< std::string > const &jointNames)
 
void resize (size_t size)
 
void reset ()
 
bool isNew () const
 
bool isFullyUpdated () const
 

Detailed Description

Configuration of an output on Dispatcher

Constructor & Destructor Documentation

Output::Output ( std::string const &  name = "")

Member Function Documentation

vector< string > Output::getJointNames ( ) const

The list of joint names

std::string Output::getName ( ) const
bool Output::isFullyUpdated ( ) const

Returns true if all joints of the current sample have been updated since the last call to read()

bool Output::isNew ( ) const

Returns true if the current sample is new, i.e. if it has been updated since the last call to read()

vector< size_t > Output::mapJointNamesToIndex ( std::vector< std::string > const &  names) const

Returns the list of indexes that correspond to the requested names

Exceptions
base::samples::Joints::InvalidNameif one of the names does not exist
base::samples::Joints Output::read ( )

Read the current joint state, resetting all the 'new' flags

void Output::reset ( )

Resets the internal tracking state to pristine, without changing configuration

void joint_dispatcher::Output::resize ( std::vector< std::string > const &  jointNames)

Resize while setting the list of joint names at the same time

void Output::resize ( size_t  size)

Declares the number of joints this output will generate

size_t Output::size ( ) const

The count of joints

void Output::updateJoint ( size_t  jointIdx,
base::Time const &  time,
base::JointState const &  sample 
)

Updates a joint on this output


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