Public Member Functions | Private Types | Private Attributes | List of all members
pilz_industrial_motion_testutils::Sequence Class Reference

Data class storing all information regarding a Sequence command. More...

#include <sequence.h>

Public Member Functions

void add (const CmdVariant &cmd, const double blend_radius=0.)
 Adds a command to the end of the sequence. More...
 
template<class T >
bool cmdIsOfType (const size_t index_cmd) const
 
void erase (const size_t start, const size_t end)
 Deletes all commands from index 'start' to index 'end'. More...
 
double getBlendRadius (const size_t index_cmd) const
 
template<class T >
T & getCmd (const size_t index_cmd)
 
template<class T >
const T & getCmd (const size_t index_cmd) const
 
MotionCmdgetCmd (const size_t index_cmd)
 Returns the specific command as base class reference. This function allows the user to operate on the sequence without having knowledge of the underlying specific command type. More...
 
void setAllBlendRadiiToZero ()
 
void setBlendRadius (const size_t index_cmd, const double blend_radius)
 
size_t size () const
 Returns the number of commands. More...
 
pilz_msgs::MotionSequenceRequest toRequest () const
 

Private Types

using TCmdRadiiPair = std::pair< CmdVariant, double >
 

Private Attributes

std::vector< TCmdRadiiPaircmds_
 

Detailed Description

Data class storing all information regarding a Sequence command.

Definition at line 36 of file sequence.h.

Member Typedef Documentation

Definition at line 82 of file sequence.h.

Member Function Documentation

void pilz_industrial_motion_testutils::Sequence::add ( const CmdVariant cmd,
const double  blend_radius = 0. 
)
inline

Adds a command to the end of the sequence.

Parameters
cmdThe command which has to be added.

Definition at line 86 of file sequence.h.

template<class T >
bool pilz_industrial_motion_testutils::Sequence::cmdIsOfType ( const size_t  index_cmd) const
inline
Returns
TRUE if the specified command is of the specified type, otherwise FALSE.

Definition at line 124 of file sequence.h.

void pilz_industrial_motion_testutils::Sequence::erase ( const size_t  start,
const size_t  end 
)

Deletes all commands from index 'start' to index 'end'.

Definition at line 78 of file sequence.cpp.

double pilz_industrial_motion_testutils::Sequence::getBlendRadius ( const size_t  index_cmd) const
inline

Definition at line 108 of file sequence.h.

template<class T >
T & pilz_industrial_motion_testutils::Sequence::getCmd ( const size_t  index_cmd)
inline

Definition at line 97 of file sequence.h.

template<class T >
const T & pilz_industrial_motion_testutils::Sequence::getCmd ( const size_t  index_cmd) const
inline

Definition at line 103 of file sequence.h.

MotionCmd & pilz_industrial_motion_testutils::Sequence::getCmd ( const size_t  index_cmd)

Returns the specific command as base class reference. This function allows the user to operate on the sequence without having knowledge of the underlying specific command type.

Definition at line 98 of file sequence.cpp.

void pilz_industrial_motion_testutils::Sequence::setAllBlendRadiiToZero ( )
inline

Definition at line 118 of file sequence.h.

void pilz_industrial_motion_testutils::Sequence::setBlendRadius ( const size_t  index_cmd,
const double  blend_radius 
)
inline

Definition at line 113 of file sequence.h.

size_t pilz_industrial_motion_testutils::Sequence::size ( ) const
inline

Returns the number of commands.

Definition at line 91 of file sequence.h.

pilz_msgs::MotionSequenceRequest pilz_industrial_motion_testutils::Sequence::toRequest ( ) const

Definition at line 51 of file sequence.cpp.

Member Data Documentation

std::vector<TCmdRadiiPair > pilz_industrial_motion_testutils::Sequence::cmds_
private

Definition at line 83 of file sequence.h.


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


pilz_industrial_motion_testutils
Author(s):
autogenerated on Mon Apr 6 2020 03:17:28