class
#include <iDynTree/Sensors.h>
JointSensor Interface for Sensor that are associated to a Joint.
All joint sensor classes inherit from this base class.
Base classes
Derived classes
- class SixAxisForceTorqueSensor
- A six axis force torque sensor class implementation of the Sensor.
Constructors, destructors, conversion operators
- ~JointSensor() pure virtual
- Virtual destructor.
Public functions
- auto getParentJoint() const -> std::string pure virtual
- Get the name of the parent Joint.
- auto getParentJointIndex() const -> JointIndex pure virtual
- Get the numeric index of the parent of the sensor.
- auto setParentJoint(const std::string& parentJointName) -> bool pure virtual
- Set the name of the parent Joint.
- auto setParentJointIndex(const JointIndex&) -> bool pure virtual
- Set the numeric index of the parent joint of the sensor.
- auto isConsistent(const Model& model) const -> bool virtual
- Check if the sensor is consistent with the specified model.
Function documentation
JointIndex iDynTree:: JointSensor:: getParentJointIndex() const pure virtual
Get the numeric index of the parent of the sensor.
Returns | the index of the parent (Junction or Link) of the sensor. |
---|
Depending on the type of the sensor, the parent could be a Junction or a Link.