MoveJointPlatformTrajectory Class Reference

#include <RobotSkillTemplates/statecharts/MotionAndPlatformControlGroup/MoveJointPlatformTrajectory.h>

+ Inheritance diagram for MoveJointPlatformTrajectory:

Public Types

using DataFieldIdentifierBaseLists = std::pair< DataFieldIdentifierBaseList, DataFieldIdentifierBaseList >
 
using TimedVariantBaseLists = std::pair< TimedVariantBaseList, TimedVariantBaseList >
 

Public Member Functions

void cacheValues ()
 
void cacheVelocities ()
 
void ctrlInterpol ()
 
void ctrlNative ()
 
bool doingLastConfig () const
 
bool doneAllConfigs () const
 
float getConfigChangeTolerance (std::size_t i) const
 
DataFieldIdentifierBaseLists getDataFieldIdentifiers (const std::string &channelName)
 
float getMaxAcc (std::size_t joint) const
 
float getMaxVel (std::size_t joint) const
 
float getTargetTolerance (std::size_t i) const
 
float getValue (std::size_t i) const
 
float getVelocity (std::size_t i) const
 
 MoveJointPlatformTrajectory (const XMLStateConstructorParams &stateData)
 
void onBreak () override
 
void onEnter () override
 
void onExit () override
 
void run () override
 
void setControlMode (ControlMode mode)
 
void setMaxVelocity (NameValueMap &vels)
 
void setValues (NameValueMap &values)
 
void setVelocity (NameValueMap &vels)
 
bool validJointNames () const
 
void waitForDone (bool stopAtCurrentPos)
 

Static Public Member Functions

static XMLStateFactoryBasePtr CreateInstance (XMLStateConstructorParams stateData)
 
static float getFromList (const TimedVariantBaseLists &lists, std::size_t i)
 
static int sign (double val)
 

Public Attributes

TimedVariantBaseLists cachedValues
 
TimedVariantBaseLists cachedVelocities
 
MotionAndPlatformControlGroupStatechartContext * context
 
Trajectory::ordered_view::const_iterator currentCfgIt
 
DataFieldIdentifierBaseLists datafieldsValues
 
DataFieldIdentifierBaseLists datafieldsVelocities
 
std::vector< floatjointMaxSpeeds
 
std::vector< std::string > jointNames
 
float jointTargetTolerance
 
Trajectory::ordered_view::const_iterator lastCfgIt
 
std::vector< floatmaxAccs
 
const std::chrono::milliseconds period
 
const float secondsPerPeriod = static_cast<float>(period.count()) / 1000.f
 
TrajectoryPtr t
 
ConditionIdentifier targetReachedCondition
 
ActionEventIdentifier timeoutEvent
 
float translationTargetTolerance
 

Static Public Attributes

static SubClassRegistry Registry
 

Detailed Description

Definition at line 37 of file MoveJointPlatformTrajectory.h.

Member Typedef Documentation

◆ DataFieldIdentifierBaseLists

◆ TimedVariantBaseLists

using TimedVariantBaseLists = std::pair<TimedVariantBaseList, TimedVariantBaseList>

Definition at line 42 of file MoveJointPlatformTrajectory.h.

Constructor & Destructor Documentation

◆ MoveJointPlatformTrajectory()

Definition at line 44 of file MoveJointPlatformTrajectory.h.

+ Here is the caller graph for this function:

Member Function Documentation

◆ cacheValues()

void cacheValues ( )
inline

Definition at line 100 of file MoveJointPlatformTrajectory.h.

+ Here is the caller graph for this function:

◆ cacheVelocities()

void cacheVelocities ( )
inline

Definition at line 105 of file MoveJointPlatformTrajectory.h.

+ Here is the caller graph for this function:

◆ CreateInstance()

XMLStateFactoryBasePtr CreateInstance ( XMLStateConstructorParams  stateData)
static

Definition at line 157 of file MoveJointPlatformTrajectory.cpp.

+ Here is the call graph for this function:

◆ ctrlInterpol()

void ctrlInterpol ( )

Definition at line 164 of file MoveJointPlatformTrajectory.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ctrlNative()

void ctrlNative ( )

Definition at line 424 of file MoveJointPlatformTrajectory.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ doingLastConfig()

bool doingLastConfig ( ) const
inline

Definition at line 91 of file MoveJointPlatformTrajectory.h.

+ Here is the caller graph for this function:

◆ doneAllConfigs()

bool doneAllConfigs ( ) const
inline

Definition at line 95 of file MoveJointPlatformTrajectory.h.

+ Here is the caller graph for this function:

◆ getConfigChangeTolerance()

float getConfigChangeTolerance ( std::size_t  i) const
inline

Definition at line 205 of file MoveJointPlatformTrajectory.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDataFieldIdentifiers()

DataFieldIdentifierBaseLists getDataFieldIdentifiers ( const std::string &  channelName)
inline

Definition at line 60 of file MoveJointPlatformTrajectory.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getFromList()

static float getFromList ( const TimedVariantBaseLists lists,
std::size_t  i 
)
inlinestatic

Definition at line 111 of file MoveJointPlatformTrajectory.h.

+ Here is the caller graph for this function:

◆ getMaxAcc()

float getMaxAcc ( std::size_t  joint) const
inline

Definition at line 195 of file MoveJointPlatformTrajectory.h.

+ Here is the caller graph for this function:

◆ getMaxVel()

float getMaxVel ( std::size_t  joint) const
inline

Definition at line 191 of file MoveJointPlatformTrajectory.h.

+ Here is the caller graph for this function:

◆ getTargetTolerance()

float getTargetTolerance ( std::size_t  i) const
inline

Definition at line 200 of file MoveJointPlatformTrajectory.h.

+ Here is the caller graph for this function:

◆ getValue()

float getValue ( std::size_t  i) const

Definition at line 490 of file MoveJointPlatformTrajectory.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getVelocity()

float getVelocity ( std::size_t  i) const

Definition at line 495 of file MoveJointPlatformTrajectory.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onBreak()

void onBreak ( )
override

Definition at line 110 of file MoveJointPlatformTrajectory.cpp.

+ Here is the call graph for this function:

◆ onEnter()

void onEnter ( )
override

Definition at line 42 of file MoveJointPlatformTrajectory.cpp.

+ Here is the call graph for this function:

◆ onExit()

void onExit ( )
override

Definition at line 105 of file MoveJointPlatformTrajectory.cpp.

+ Here is the call graph for this function:

◆ run()

void run ( )
override

Definition at line 78 of file MoveJointPlatformTrajectory.cpp.

+ Here is the call graph for this function:

◆ setControlMode()

void setControlMode ( ControlMode  mode)
inline

Definition at line 174 of file MoveJointPlatformTrajectory.h.

+ Here is the caller graph for this function:

◆ setMaxVelocity()

void setMaxVelocity ( NameValueMap &  vels)
inline

Definition at line 157 of file MoveJointPlatformTrajectory.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setValues()

void setValues ( NameValueMap &  values)
inline

Definition at line 140 of file MoveJointPlatformTrajectory.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setVelocity()

void setVelocity ( NameValueMap &  vels)
inline

Definition at line 122 of file MoveJointPlatformTrajectory.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sign()

int sign ( double  val)
static

Definition at line 500 of file MoveJointPlatformTrajectory.cpp.

+ Here is the caller graph for this function:

◆ validJointNames()

bool validJointNames ( ) const
inline

Definition at line 183 of file MoveJointPlatformTrajectory.h.

+ Here is the caller graph for this function:

◆ waitForDone()

void waitForDone ( bool  stopAtCurrentPos)

Definition at line 116 of file MoveJointPlatformTrajectory.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ cachedValues

TimedVariantBaseLists cachedValues

Definition at line 228 of file MoveJointPlatformTrajectory.h.

◆ cachedVelocities

TimedVariantBaseLists cachedVelocities

Definition at line 231 of file MoveJointPlatformTrajectory.h.

◆ context

MotionAndPlatformControlGroupStatechartContext* context

Definition at line 225 of file MoveJointPlatformTrajectory.h.

◆ currentCfgIt

Trajectory::ordered_view::const_iterator currentCfgIt

Definition at line 241 of file MoveJointPlatformTrajectory.h.

◆ datafieldsValues

DataFieldIdentifierBaseLists datafieldsValues

Definition at line 227 of file MoveJointPlatformTrajectory.h.

◆ datafieldsVelocities

DataFieldIdentifierBaseLists datafieldsVelocities

Definition at line 230 of file MoveJointPlatformTrajectory.h.

◆ jointMaxSpeeds

std::vector<float> jointMaxSpeeds

Definition at line 224 of file MoveJointPlatformTrajectory.h.

◆ jointNames

std::vector<std::string> jointNames

Definition at line 222 of file MoveJointPlatformTrajectory.h.

◆ jointTargetTolerance

float jointTargetTolerance

Definition at line 238 of file MoveJointPlatformTrajectory.h.

◆ lastCfgIt

Trajectory::ordered_view::const_iterator lastCfgIt

Definition at line 240 of file MoveJointPlatformTrajectory.h.

◆ maxAccs

std::vector<float> maxAccs

Definition at line 223 of file MoveJointPlatformTrajectory.h.

◆ period

const std::chrono::milliseconds period
Initial value:
{
10
}

Definition at line 234 of file MoveJointPlatformTrajectory.h.

◆ Registry

MoveJointPlatformTrajectory::SubClassRegistry Registry
static

Definition at line 58 of file MoveJointPlatformTrajectory.h.

◆ secondsPerPeriod

const float secondsPerPeriod = static_cast<float>(period.count()) / 1000.f

Definition at line 237 of file MoveJointPlatformTrajectory.h.

◆ t

Definition at line 221 of file MoveJointPlatformTrajectory.h.

◆ targetReachedCondition

ConditionIdentifier targetReachedCondition

Definition at line 243 of file MoveJointPlatformTrajectory.h.

◆ timeoutEvent

ActionEventIdentifier timeoutEvent

Definition at line 244 of file MoveJointPlatformTrajectory.h.

◆ translationTargetTolerance

float translationTargetTolerance

Definition at line 239 of file MoveJointPlatformTrajectory.h.


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