62 std::vector<std::pair<unsigned int, unsigned int>> commonJointIndices_{};
64 std::vector<std::pair<unsigned int, unsigned int>> commonEncoderToJointIndices_{};
67 std::vector<std::pair<unsigned int, unsigned int>> mimicJoints_{};
#define MC_RBDYN_DLLAPI
Definition: api.h:50
Definition: generic_gripper.h:15
Configuration for mc_rbdyn::RobotConverter.
Definition: RobotConverterConfig.h:16
Copies all common properties from one robot to another encoders, sensors, etc)
Definition: RobotConverter.h:23
void precompute(const mc_rbdyn::Robot &inputRobot, const mc_rbdyn::Robot &outputRobot)
Precomputes the mappings of common properties between input/output robot according to the chosen conf...
void encodersToOutput(const mc_rbdyn::Robot &inputRobot, mc_rbdyn::Robot &outputRobot) const
RobotConverter(const mc_rbdyn::Robot &inputRobot, mc_rbdyn::Robot &outputRobot, const RobotConverterConfig &config)
RobotConverterConfig config_
Definition: RobotConverter.h:60
const RobotConverterConfig & config() const noexcept
Definition: RobotConverter.h:43
void convert(const mc_rbdyn::Robot &inputRobot, mc_rbdyn::Robot &outputRobot) const
Copies the common properties of the input robot to the output robot.