From 26282a9bf84dd0a162105a111c285617312bda69 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Sat, 12 Jun 2021 09:52:34 +0200 Subject: [PATCH] Remove references to deprecated YARP interfaces (#755) --- .../icubmod/canBusMotionControl/CanBusMotionControl.cpp | 6 +++--- .../icubmod/embObjMotionControl/embObjMotionControl.cpp | 4 ++-- .../iCubSimulation/wrapper/iCubSimulationControl.cpp | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/libraries/icubmod/canBusMotionControl/CanBusMotionControl.cpp b/src/libraries/icubmod/canBusMotionControl/CanBusMotionControl.cpp index 2353e77640..75e6e47e75 100644 --- a/src/libraries/icubmod/canBusMotionControl/CanBusMotionControl.cpp +++ b/src/libraries/icubmod/canBusMotionControl/CanBusMotionControl.cpp @@ -2993,8 +2993,8 @@ bool CanBusMotionControl::close (void) PeriodicThread::stop ();/// stops the thread first (joins too). - ImplementPositionControl2::uninitialize(); - ImplementVelocityControl2::uninitialize(); + ImplementPositionControl::uninitialize(); + ImplementVelocityControl::uninitialize(); // ImplementPositionControl::uninitialize (); // ImplementVelocityControl::uninitialize(); @@ -3006,7 +3006,7 @@ bool CanBusMotionControl::close (void) ImplementAmplifierControl::uninitialize(); ImplementControlLimits::uninitialize(); - ImplementControlMode2::uninitialize(); + ImplementControlMode::uninitialize(); ImplementTorqueControl::uninitialize(); ImplementImpedanceControl::uninitialize(); ImplementPositionDirect::uninitialize(); diff --git a/src/libraries/icubmod/embObjMotionControl/embObjMotionControl.cpp b/src/libraries/icubmod/embObjMotionControl/embObjMotionControl.cpp index faf42c5cb7..cc067a1a75 100644 --- a/src/libraries/icubmod/embObjMotionControl/embObjMotionControl.cpp +++ b/src/libraries/icubmod/embObjMotionControl/embObjMotionControl.cpp @@ -1348,10 +1348,10 @@ bool embObjMotionControl::close() { yTrace() << " embObjMotionControl::close()"; - ImplementControlMode2::uninitialize(); + ImplementControlMode::uninitialize(); ImplementEncodersTimed::uninitialize(); ImplementMotorEncoders::uninitialize(); - ImplementPositionControl2::uninitialize(); + ImplementPositionControl::uninitialize(); ImplementVelocityControl::uninitialize(); ImplementPidControl::uninitialize(); ImplementControlCalibration::uninitialize(); diff --git a/src/simulators/iCubSimulation/wrapper/iCubSimulationControl.cpp b/src/simulators/iCubSimulation/wrapper/iCubSimulationControl.cpp index 05a63f34c3..1b20c099f8 100644 --- a/src/simulators/iCubSimulation/wrapper/iCubSimulationControl.cpp +++ b/src/simulators/iCubSimulation/wrapper/iCubSimulationControl.cpp @@ -303,8 +303,8 @@ bool iCubSimulationControl::open(yarp::os::Searchable& config) { interactionMode[axis] = VOCAB_IM_STIFF; } - ImplementPositionControl2::initialize(njoints, axisMap, angleToEncoder, zeros); - ImplementVelocityControl2::initialize(njoints, axisMap, angleToEncoder, zeros); + ImplementPositionControl::initialize(njoints, axisMap, angleToEncoder, zeros); + ImplementVelocityControl::initialize(njoints, axisMap, angleToEncoder, zeros); ImplementPidControl::initialize(njoints, axisMap, angleToEncoder, zeros,newtonsToSensor,ampsToSensor, dutycycleToPwm); ImplementEncodersTimed::initialize(njoints, axisMap, angleToEncoder, zeros); ImplementMotorEncoders::initialize(njoints, axisMap, angleToEncoder, zeros); @@ -312,7 +312,7 @@ bool iCubSimulationControl::open(yarp::os::Searchable& config) { ImplementAmplifierControl::initialize(njoints, axisMap, angleToEncoder, zeros); ImplementControlLimits::initialize(njoints, axisMap, angleToEncoder, zeros); ImplementTorqueControl::initialize(njoints, axisMap, angleToEncoder, zeros, newtonsToSensor, ampsToSensor, dutycycleToPwm,nullptr,nullptr); - ImplementControlMode2::initialize(njoints, axisMap); + ImplementControlMode::initialize(njoints, axisMap); ImplementInteractionMode::initialize(njoints, axisMap); ImplementPositionDirect::initialize(njoints, axisMap, angleToEncoder, zeros); ImplementRemoteVariables::initialize(njoints, axisMap);