iDynTree/ModelSensorsTransformers.h file

Collection of function to modify model and sensors in various ways.

Namespaces

namespace iDynTree

Functions

IDYNTREE_DEPRECATED_WITH_MSG("createReducedModelAndSensors is deprecated, please use the " " createReducedModel, see createReducedModelAndSensors documentation " "for more info") bool createReducedModelAndSensors(const Model &fullModel
Variant of createReducedModel function that also process the sensorList .

Variables

const SensorsList& fullSensors
const SensorsList const std::vector<std::string>& jointsInReducedModel
const SensorsList const std::vector<std::string> Model& reducedModel
const SensorsList const std::vector<std::string> Model SensorsList& reducedSensors

Function documentation

IDYNTREE_DEPRECATED_WITH_MSG("createReducedModelAndSensors is deprecated, please use the " " createReducedModel, see createReducedModelAndSensors documentation " "for more info") bool createReducedModelAndSensors(const Model &fullModel

Variant of createReducedModel function that also process the sensorList .

Note: since iDynTree 10, this has been superseded by the regular createReducedModel that also operated on the SensorsList associated with the model.

To migrate to this version, just change from:

Model fullModel, reducedModel; std::vector<std::string> jointsInReducedModel; SensorsList fullSensors, reducedSensors;

bool ok = createReducedModelAndSensors(fullModel, fullSensors, jointsInReducedModel, reducedModel, reducedSensors);

// handle ok // access reducedModel and reducedSensors

to

Model fullModel, reducedModel; std::vector<std::string> jointsInReducedModel; SensorsList fullSensors; fullModel.sensors() = fullSensors;

bool ok = createReducedModel(fullModel, jointsInReducedModel, reducedModel);

// Handle ok // access reducedModel and reducedModel.sensors()