Skip to content

Commit

Permalink
Remove deprecated YARP control board interface methods
Browse files Browse the repository at this point in the history
There is a setVelocityMode() left at the skymegabot plugin, but it has
no implementation anyway and won't result in compilaation issues.

roboticslab-uc3m/questions-and-answers#16
  • Loading branch information
PeterBowman committed May 2, 2017
1 parent 310d5dc commit ec0b387
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 35 deletions.
7 changes: 0 additions & 7 deletions src/libraries/RlPlugins/ravebot/IPositionImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@

// ------------------- IPositionControl Related --------------------------------

bool RaveBot::setPositionMode() {
bool ok = true;
for (unsigned int i=0; i<numMotors; i++)
ok &= setPositionMode(i);
return ok;
}

bool RaveBot::getAxes(int *ax) {
*ax = numMotors;
printf("[RaveBot] getAxes reporting %d axes are present\n", *ax);
Expand Down
7 changes: 0 additions & 7 deletions src/libraries/RlPlugins/ravebot/IVelocityImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,6 @@

// ------------------ IVelocity Related ----------------------------------------

bool RaveBot::setVelocityMode() {
bool ok = true;
for (unsigned int i=0; i<numMotors; i++)
ok &= setVelocityMode(i);
return ok;
}

bool RaveBot::velocityMove(int j, double sp) { // velExposed = sp;
if (!indexWithinRange(j)) return false;
if(vModePosVel[j]!=VOCAB_CM_VELOCITY) { // Check if we are in velocity mode.
Expand Down
21 changes: 0 additions & 21 deletions src/libraries/RlPlugins/ravebot/RaveBot.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,6 @@ class RaveBot : public DeviceDriver, public RateThread, public IPositionControl,
*/
virtual bool getAxes(int *ax);

/** Set position mode. This command
* is required by control boards implementing different
* control methods (e.g. velocity/torque), in some cases
* it can be left empty.
* return true/false on success/failure
* @note kept for backwards compatibility with YARP <2.3.65,
* use \ref setPositionMode(int) instead
*/
virtual bool setPositionMode();

/** Set new reference point for a single axis.
* @param j joint number
* @param ref specifies the new ref point
Expand Down Expand Up @@ -301,17 +291,6 @@ class RaveBot : public DeviceDriver, public RateThread, public IPositionControl,

// --------- IVelocityControl Declarations. Implementation in IVelocityImpl.cpp ---------

/**
* Set velocity mode. This command
* is required by control boards implementing different
* control methods (e.g. velocity/torque), in some cases
* it can be left empty.
* @return true/false on success failure
* @note kept for backwards compatibility with YARP <2.3.65,
* use \ref setVelocityMode(int) instead
*/
virtual bool setVelocityMode();

/**
* Start motion at a given speed, single joint.
* @param j joint number
Expand Down

0 comments on commit ec0b387

Please sign in to comment.