iDynTree::SensorsMeasurements class

A list of measurements associated with a SensorsList .

Constructors, destructors, conversion operators

SensorsMeasurements()
Constructor.
SensorsMeasurements(const SensorsList& sensorList)
Constructor from SensorList.
SensorsMeasurements(const SensorsMeasurements& other)
Copy constructor.
~SensorsMeasurements() virtual
Destructor.

Public functions

auto operator=(const SensorsMeasurements& other) -> SensorsMeasurements&
Copy operator.
auto setNrOfSensors(const SensorType& sensor_type, std::size_t nrOfSensors) -> bool
Set the number of sensors of type sensor_type in this SensorsTree .
auto getNrOfSensors(const SensorType& sensor_type) const -> std::size_t
Get the number of sensors of type sensor_type in this SensorsMeasurements .
auto resize(const SensorsList& sensorsList) -> bool
Resize and reset the measurement vectors.
auto toVector(VectorDynSize& measurementVector) const -> bool
Returns a double vector of all the sensors measurements.
auto setMeasurement(const SensorType& sensor_type, const std::ptrdiff_t& sensor_index, const iDynTree::Wrench& measurement) -> bool
Set the measurement for the specified sensor.
auto setMeasurement(const SensorType& sensor_type, const std::ptrdiff_t& sensor_index, const Vector3& measurement) -> bool
auto getMeasurement(const SensorType& sensor_type, const std::ptrdiff_t& sensor_index, iDynTree::Wrench& measurement) const -> bool
Get the measurement for a specified sensor.
auto getMeasurement(const SensorType& sensor_type, const std::ptrdiff_t& sensor_index, Vector3& measurement) const -> bool
auto getSizeOfAllSensorsMeasurements() const -> size_t
Get the total size of sensor measurements.

Function documentation

bool iDynTree::SensorsMeasurements::setNrOfSensors(const SensorType& sensor_type, std::size_t nrOfSensors)

Set the number of sensors of type sensor_type in this SensorsTree .

Returns true if all went right, false otherwise

std::size_t iDynTree::SensorsMeasurements::getNrOfSensors(const SensorType& sensor_type) const

Get the number of sensors of type sensor_type in this SensorsMeasurements .

Returns the number of sensors of type sensor_type

bool iDynTree::SensorsMeasurements::resize(const SensorsList& sensorsList)

Resize and reset the measurement vectors.

Returns true if all went right, false otherwise

bool iDynTree::SensorsMeasurements::toVector(VectorDynSize& measurementVector) const

Returns a double vector of all the sensors measurements.

Returns true if all went right, false otherwise

bool iDynTree::SensorsMeasurements::setMeasurement(const SensorType& sensor_type, const std::ptrdiff_t& sensor_index, const iDynTree::Wrench& measurement)

Set the measurement for the specified sensor.

Return true if all is correct (i.e. sensor_index is not out of bounds) and the specified sensor_type uses Wrench as its measurement type.

bool iDynTree::SensorsMeasurements::getMeasurement(const SensorType& sensor_type, const std::ptrdiff_t& sensor_index, iDynTree::Wrench& measurement) const

Get the measurement for a specified sensor.

Return true if all is correct (i.e. sensor_index is not out of bounds) and the specified sensor_type uses its appropriate type as its measurement type.

size_t iDynTree::SensorsMeasurements::getSizeOfAllSensorsMeasurements() const

Get the total size of sensor measurements.