NTRT Simulator
Version: Master
|
#include <tgSpringCableActuatorSensorInfo.h>
Public Member Functions | |
tgSpringCableActuatorSensorInfo () | |
~tgSpringCableActuatorSensorInfo () | |
virtual bool | isThisMySenseable (tgSenseable *pSenseable) |
virtual std::vector< tgSensor * > | createSensorsIfAppropriate (tgSenseable *pSenseable) |
tgSpringCableActuatorSensorInfo is a sensor info class that creates tgSpringCableActuatorSensors for tgSpringCableActuators.
Definition at line 47 of file tgSpringCableActuatorSensorInfo.h.
tgSpringCableActuatorSensorInfo::tgSpringCableActuatorSensorInfo | ( | ) |
tgSensorInfo has an empty constructor. It does not contain any data.
Nothing to do in this constructor. A sensor info doesn't have any data.
Definition at line 40 of file tgSpringCableActuatorSensorInfo.cpp.
tgSpringCableActuatorSensorInfo::~tgSpringCableActuatorSensorInfo | ( | ) |
Similarly, its destructor should be empty.
Similarly, empty destructor.
Definition at line 47 of file tgSpringCableActuatorSensorInfo.cpp.
|
virtual |
Similarly, create a sensor if appropriate. See tgSensorInfo for more... info.
[in] | pSenseable | pointer to a senseable object. Sensor will be created for this pSenseable. |
invalid_argument | if pSenseable is not a tgSpringCableActuator. This enforces the caller to check isThisMySenseable before creating sensors. |
Create a sensor for a tgSpringCableActuator. Returns a list of size 1.
Implements tgSensorInfo.
Definition at line 70 of file tgSpringCableActuatorSensorInfo.cpp.
|
virtual |
From tgSensorInfo, need to implement a check to see if a particular tgSenseable is a tgSpringCableActuator.
[in] | pSenseable | a pointer to a tgSenseable object, that this sensor info may or may not be able to create a sensor for. |
To check if a tgSenseable is a tgSpringCableActuator, we can use tgCast.
Implements tgSensorInfo.
Definition at line 54 of file tgSpringCableActuatorSensorInfo.cpp.