PPL API Reference
Overview Core Algorithm Abstractions Utilities Parallel Methods
Modules Class Hierarchy Classes Functions
Todo List Bug List Dead Code
List of all members
Command Class Referenceabstract

Public Member Functions

Construction
 Command (const Type _t, const double _seconds)
 
virtual std::unique_ptr< CommandClone () const =0
 Dynamic-copy a derived command type. More...
 
virtual ~Command ()=0
 
Downcasts

Downcast this generic command to the appropriate object type.

MotionCommandToMotionCommand ()
 Downcast to a MotionCommand. Throws if this has any other command type.
 
const MotionCommandToMotionCommand () const
 
SensorCommandToSensorCommand ()
 Downcast to a SensorCommand. Throws if this has any other command type.
 
const SensorCommandToSensorCommand () const
 

Public Types

Local Types
enum class  Type { Motion , Sensor }
 

Public Attributes

Internal State
const Type type
 The command type.
 
double seconds
 The command duration.
 

Detailed Description

A command of unspecified type. This serves as an interface class for the RobotCommandQueue.

Constructor & Destructor Documentation

◆ Command()

Command::Command ( const Type  _t,
const double  _seconds 
)

Construct a command.

Parameters
_tThe command type.
_secondsThe number of seconds required to execute this.

Member Function Documentation

◆ Clone()

virtual std::unique_ptr< Command > Command::Clone ( ) const
pure virtual

Dynamic-copy a derived command type.

Implemented in MotionCommand, and SensorCommand.


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