A step queue in the preview window. More...
#include <sot-pattern-generator/step-queue.h>
Public Member Functions | |
virtual const std::string & | getClassName (void) const |
StepQueue (const std::string &name) | |
Builds a queue containing a starting step and three steps in the preview. More... | |
void | startSequence () |
Resets the queue to the initial condition (see the constructor, StepQueue::StepQueue). More... | |
void | pushStep (double x, double y, double theta) |
Adds a step at the end of the preview window. More... | |
void | changeFirstStep (double x, double y, double dtheta) |
Changes the first step. More... | |
const FootPrint & | getFirstStepChange () const |
bool | isFirstStepChanged () const |
Returns true if the first step has been changed since the last call to pushStep. More... | |
virtual void | display (std::ostream &os) const |
virtual void | commandLine (const std::string &cmdLine, std::istringstream &cmdArgs, std::ostream &os) |
const FootPrint & | getStep (unsigned int index) const |
Access to the step queue. More... | |
const FootPrint & | getFirstStep () const |
const FootPrint & | getLastStep () const |
unsigned int | size () const |
Access to the step queue properties (constants). More... | |
const FootPrint & | getStartFootPrint () const |
double | getZeroStepPosition () const |
![]() | |
Entity (const std::string &name) | |
virtual | ~Entity () |
const std::string & | getName () const |
virtual std::string | getDocString () const |
bool | hasSignal (const std::string &signame) const |
SignalBase< int > & | getSignal (const std::string &signalName) |
const SignalBase< int > & | getSignal (const std::string &signalName) const |
std::ostream & | displaySignalList (std::ostream &os) const |
virtual std::ostream & | writeGraph (std::ostream &os) const |
virtual std::ostream & | writeCompletionList (std::ostream &os) const |
virtual SignalBase< int > * | test () |
virtual void | test2 (SignalBase< int > *) |
const std::string & | getCommandList () const |
CommandMap_t | getNewStyleCommandMap () |
command::Command * | getNewStyleCommand (const std::string &cmdName) |
SignalMap | getSignalMap () const |
Static Public Attributes | |
static const std::string | CLASS_NAME |
Additional Inherited Members | |
![]() | |
typedef std::map< std::string, SignalBase< int > * > | SignalMap |
typedef std::map< const std::string, command::Command * > | CommandMap_t |
![]() | |
void | addCommand (const std::string &name, command::Command *command) |
void | entityRegistration () |
void | entityDeregistration () |
void | signalRegistration (const SignalArray< int > &signals) |
void | signalDeregistration (const std::string &name) |
![]() | |
std::string | name |
SignalMap | signalMap |
CommandMap_t | commandMap |
A step queue in the preview window.
A series of step in the preview window. The first step can be modified. \invariant{The queue always contains 4 steps.} \note{This entity class can not be instantiated in a shell since it does not
register any factory. This behavior is intended.}
dynamicgraph::sot::StepQueue::StepQueue | ( | const std::string & | name | ) |
Builds a queue containing a starting step and three steps in the preview.
The steps correspond to on-place stepping: (0, +/- y, 0), where y == StepQueue::ZERO_STEP_POSITION
void dynamicgraph::sot::StepQueue::changeFirstStep | ( | double | x, |
double | y, | ||
double | dtheta | ||
) |
Changes the first step.
|
virtual |
Reimplemented from dynamicgraph::Entity.
|
virtual |
Reimplemented from dynamicgraph::Entity.
|
inlinevirtual |
Implements dynamicgraph::Entity.
const FootPrint& dynamicgraph::sot::StepQueue::getFirstStep | ( | ) | const |
const FootPrint& dynamicgraph::sot::StepQueue::getFirstStepChange | ( | ) | const |
const FootPrint& dynamicgraph::sot::StepQueue::getLastStep | ( | ) | const |
const FootPrint& dynamicgraph::sot::StepQueue::getStartFootPrint | ( | ) | const |
const FootPrint& dynamicgraph::sot::StepQueue::getStep | ( | unsigned int | index | ) | const |
Access to the step queue.
double dynamicgraph::sot::StepQueue::getZeroStepPosition | ( | ) | const |
bool dynamicgraph::sot::StepQueue::isFirstStepChanged | ( | ) | const |
Returns true if the first step has been changed since the last call to pushStep.
void dynamicgraph::sot::StepQueue::pushStep | ( | double | x, |
double | y, | ||
double | theta | ||
) |
Adds a step at the end of the preview window.
The step at the beginning of the preview window is removed. The firstStepChanged flag is reset to false.
unsigned int dynamicgraph::sot::StepQueue::size | ( | ) | const |
Access to the step queue properties (constants).
void dynamicgraph::sot::StepQueue::startSequence | ( | ) |
Resets the queue to the initial condition (see the constructor, StepQueue::StepQueue).
|
static |