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
SensorCommand Struct Reference

Public Member Functions

Construction
 SensorCommand (const double _seconds=0)
 
virtual std::unique_ptr< CommandClone () const override
 Dynamic-copy a derived command type. More...
 
virtual ~SensorCommand ()
 
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 sensor command, which is basically a one-time signal to take a measurement and send back the results.

Note
For now we have assumed a very simple sensor model, which will likely be refined as we need support for more advanced uses and sensors. I.e., it will eventually be desirable to have separate functions for taking measurements and receiving the results.

Constructor & Destructor Documentation

◆ SensorCommand()

SensorCommand::SensorCommand ( const double  _seconds = 0)
Parameters
_secondsThe command duration

Member Function Documentation

◆ Clone()

std::unique_ptr< Command > SensorCommand::Clone ( ) const
overridevirtual

Dynamic-copy a derived command type.

Implements Command.


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