Skip to content

Getting joint limits #9

Answered by barbalberto
matusko89 asked this question in Q&A
Discussion options

You must be logged in to vote

To get the joint limits you have to open the IControlLimits interface using the view method.

yarp::dev::IControlLimits *iLim;
device.view(iLim);     // device is your remoteControlBoard

and then call the getLimits method:

iLim->getLimits(int j, double *min, double *max);

This will return the min and max bounds for the given joint j.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by pattacini
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #9 on December 08, 2020 17:11.