Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated YARP control-board interface methods #16

Closed
4 tasks done
PeterBowman opened this issue Apr 21, 2017 · 8 comments
Closed
4 tasks done

Remove deprecated YARP control-board interface methods #16

PeterBowman opened this issue Apr 21, 2017 · 8 comments
Assignees

Comments

@PeterBowman
Copy link
Member

PeterBowman commented Apr 21, 2017

Several long-time deprecated methods will get deleted with the next YARP release (2.3.70). Some of these include (current deprecation list):

  • yarp::dev::IPositionControl::setPositionMode()
  • yarp::dev::IPositionControlRaw::setPositionModeRaw()
  • yarp::dev::IPositionDirect::setPositionDirectMode()
  • yarp::dev::IPositionDirectRaw::setPositionDirectModeRaw()
  • yarp::dev::ITorqueControl::setTorqueMode()
  • yarp::dev::ITorqueControlRaw::setTorqueModeRaw()
  • yarp::dev::IVelocityControl::setVelocityMode()
  • yarp::dev::IVelocityControlRaw::setVelocityModeRaw()

Said methods were migrated upstream to the yarp::dev::IControlMode interface (docs). Apart from that, the yarp::dev::IOpenLoopControl interface and its companion yarp::dev::IOpenLoopControlRaw have been removed at robotology/yarp@73c65b2. Affected repositories:

@jgvictores
Copy link
Member

😱😱😱

PeterBowman added a commit to roboticslab-uc3m/openrave-yarp-plugins that referenced this issue May 1, 2017
These were no longer called by controlboardwrapper2 anyway.

roboticslab-uc3m/questions-and-answers#16
PeterBowman added a commit to roboticslab-uc3m/asibot-main that referenced this issue May 2, 2017
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
PeterBowman added a commit to roboticslab-uc3m/asibot-main that referenced this issue May 13, 2017
@PeterBowman
Copy link
Member Author

I'm wondering what happened to yarp::dev::IPositionDirect::setPositionDirectMode() at YARP's devel. Since there is no yarp::dev::IControlMode::setPositionDirectMode(int) counterpart, how are we supposed to set this mode and use the PositionDirect interface?

@jgvictores
Copy link
Member

Looks like a pretty old issue asking for an upstream label, as it apparently never even made it into the IControlMode.h interface of master, where there is a VOCAB_CM_POSITION_DIRECT but no actual method.

It would be good for us to recover the method, because it's what we use for the Technosoft IPos driver PT Mode (driver's modality where we push motor positions into a buffer).

@PeterBowman
Copy link
Member Author

Note to myself: start thinking about dropping old IControlMode methods in favour of the more generic IControlMode2::(set|get)ControlMode(s) with vocabs (reference). In fact, this is how we should use now said modes, provided we upgrade our implementations to adopt IControlMode2.

PeterBowman added a commit to roboticslab-uc3m/yarp-devices that referenced this issue May 19, 2017
@PeterBowman
Copy link
Member Author

Note to myself: start thinking about dropping old IControlMode methods in favour of the more generic IControlMode2::(set|get)ControlMode(s) with vocabs (reference).

Example: roboticslab-uc3m/yarp-devices@3c4e80a.

@PeterBowman
Copy link
Member Author

All done but a few deprecated commands used in manip-waiter/programs/manipWaiterExecManip/InCvPort.cpp. I was told not to bother with this (@jgvictores).

@PeterBowman
Copy link
Member Author

Confirming that setPositionMode et al. will be deprecated soon and eventually removed: robotology/yarp#1223. This is the deployment schedule for the next two releases (per https://github.com/robotology/yarp/projects):

  • YARP v2.3.70 (2017/06/15)
  • YARP v2.3.72 (2017/10/15)

@jgvictores
Copy link
Member

Reminder to self: check with @jmgarciah before anything breaks on https://github.com/roboticslab-uc3m/manip-waiter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants