PPL API Reference |
|
---|
Public Member Functions | |
Construction | |
SensorCommand (const double _seconds=0) | |
virtual std::unique_ptr< Command > | Clone () const override |
Dynamic-copy a derived command type. More... | |
virtual | ~SensorCommand () |
Downcasts | |
Downcast this generic command to the appropriate object type. | |
MotionCommand & | ToMotionCommand () |
Downcast to a MotionCommand. Throws if this has any other command type. | |
const MotionCommand & | ToMotionCommand () const |
SensorCommand & | ToSensorCommand () |
Downcast to a SensorCommand. Throws if this has any other command type. | |
const SensorCommand & | ToSensorCommand () 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. | |
A sensor command, which is basically a one-time signal to take a measurement and send back the results.
SensorCommand::SensorCommand | ( | const double | _seconds = 0 | ) |
_seconds | The command duration |
|
overridevirtual |
Dynamic-copy a derived command type.
Implements Command.