iDynTree::LinkSensor class

Interface for Sensor that are associated to a Link.

All link sensor classes inherit from this base class.

Base classes

class Sensor
Interface for Sensor classes in iDynTree .

Derived classes

class AccelerometerSensor
Interface to the Accelerometer class.
class GyroscopeSensor
Interface to the Gyroscope class.
class ThreeAxisAngularAccelerometerSensor
Class representing a three axis angular accelerometer, i.e.
class ThreeAxisForceTorqueContactSensor
Class representing a three axis force-torque contact sensor.

Constructors, destructors, conversion operators

~LinkSensor() pure virtual
Virtual destructor.

Public functions

auto getParentLink() const -> std::string pure virtual
Get the name of the parent Link.
auto getParentLinkIndex() const -> LinkIndex pure virtual
Get the numeric index of the parent Link.
auto getLinkSensorTransform() const -> iDynTree::Transform pure virtual
Return the transform that applied on a element expressed in sensor frames it transform it in one expressed in the link frame (.
auto setParentLink(const std::string& parentLinkName) -> bool pure virtual
Set the name of the parent Link.
auto setParentLinkIndex(const LinkIndex&) -> bool pure virtual
Set the numeric index of the parent link of the sensor.
auto setLinkSensorTransform(const iDynTree::Transform&) -> bool pure virtual
Set the transform from the sensor to the parent link sensor is attached to.
auto isConsistent(const Model& model) const -> bool virtual
Check if the sensor is consistent with the specified model.

Function documentation

LinkIndex iDynTree::LinkSensor::getParentLinkIndex() const pure virtual

Get the numeric index of the parent Link.

Returns the index of the parent Link of the sensor.

iDynTree::Transform iDynTree::LinkSensor::getLinkSensorTransform() const pure 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
\[ {}^l H_s \]

).

bool iDynTree::LinkSensor::setLinkSensorTransform(const iDynTree::Transform&) pure 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 link sensor, false otherwise.