class
#include <iDynTree/GyroscopeSensor.h>
GyroscopeSensor Interface to the Gyroscope class.
An implementation of the Gyroscope Sensor
Base classes
- class LinkSensor
- Interface for Sensor that are associated to a Link.
Constructors, destructors, conversion operators
- GyroscopeSensor()
- Constructor.
- GyroscopeSensor(const GyroscopeSensor& other)
- Copy constructor.
- ~GyroscopeSensor() virtual
- Destructor.
Public functions
- auto operator=(const GyroscopeSensor& other) -> GyroscopeSensor&
- Copy operator.
- auto setName(const std::string& _name) -> bool virtual
- Set the name (id) of the sensor.
-
auto setLinkSensorTransform(const iDynTree::
Transform& link_H_sensor) -> bool virtual - Set the transform from the sensor to the parent link sensor is attached to.
- auto setParentLink(const std::string& parent) -> bool virtual
- Documented in Sensor.
- auto setParentLinkIndex(const LinkIndex& parent_index) -> bool virtual
- Documented in Sensor.
- auto getName() const -> std::string virtual
- Documented in the sensor.
- auto getSensorType() const -> SensorType virtual
- Documented in Sensor.
- auto getParentLink() const -> std::string virtual
- Documented in Sensor.
- auto getParentLinkIndex() const -> LinkIndex virtual
- Documented in Sensor.
- auto getLinkSensorTransform() const -> Transform virtual
- Return the transform that applied on a element expressed in sensor frames it transform it in one expressed in the link frame (.
- auto isValid() const -> bool virtual
- Documented in Sensor.
- auto clone() const -> Sensor* virtual
- Documented in Sensor.
- auto updateIndices(const Model& model) -> bool virtual
- Update all the indices (link/frames) contained in this sensor.
-
auto predictMeasurement(const iDynTree::
Twist& linkVel) -> iDynTree:: AngVelocity - Predict sensor measurement when given the parent link spatial velocity, expressed in the link orientation and wrt the link origin.
Function documentation
bool iDynTree:: GyroscopeSensor:: setLinkSensorTransform(const iDynTree:: Transform& link_H_sensor) virtual
Set the transform from the sensor to the parent link sensor is attached to.
Returns | true if link_index is the link attached to the Gyroscope, false otherwise. |
---|
Transform iDynTree:: GyroscopeSensor:: getLinkSensorTransform() const virtual
Return the transform that applied on a element expressed in sensor frames it transform it in one expressed in the link frame (.
Returns | the link_H_sensor transform |
---|
).
iDynTree:: AngVelocity iDynTree:: GyroscopeSensor:: predictMeasurement(const iDynTree:: Twist& linkVel)
Predict sensor measurement when given the parent link spatial velocity, expressed in the link orientation and wrt the link origin.
Returns | the predicted Measurement of an iDynTree::AngVelocity |
---|