-
Notifications
You must be signed in to change notification settings - Fork 422
Add degraded status chainiksolverpos #358
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
base: master
Are you sure you want to change the base?
Changes from 11 commits
7e0e384
efbc165
258b448
110e50b
c985bdc
69323eb
af09d66
a106c6d
c05de07
a02488d
cc5021c
434e347
c734cad
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,6 +73,47 @@ namespace KDL { | |
*/ | ||
virtual int CartToJnt(const JntArray& q_init, const Frame& p_in, JntArray& q_out); | ||
|
||
/** | ||
* Set maximum number of iterations | ||
*/ | ||
void setMaxIter(const unsigned int maxiter_in); | ||
|
||
/** | ||
* Set epsilon | ||
* \pre 0 < eps, otherwise eps is ignored | ||
*/ | ||
void setEps(const double eps_in); | ||
|
||
/** | ||
* Get maximum number of iterations | ||
* \pre 1 <= maxiter, otherwise maxiter is ignored | ||
*/ | ||
unsigned int getMaxIter() const { return maxiter; } | ||
|
||
/** | ||
* Get epsilon | ||
*/ | ||
double getEps() const { return eps; } | ||
|
||
/** | ||
* Get delta twist from last call to CartToJnt() | ||
*/ | ||
void getDeltaTwist(KDL::Twist& _delta_twist) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reason why not to just simple return? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you mean something like this?
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, indeed. But then get a const reference. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, so this? const Twist& getDeltaTwist()const There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I just added this commit. |
||
{ | ||
_delta_twist = delta_twist; | ||
} | ||
|
||
/** | ||
* Get status of ik velocity solver | ||
*/ | ||
int getVelSolverStatus() const { return ikvelstatus; } | ||
|
||
/** | ||
* Get number iterations spent in last call to CartToJnt() | ||
* Defaults to 0 at construction | ||
*/ | ||
unsigned int getNumIters() const { return numiter; } | ||
|
||
/// @copydoc KDL::SolverI::strError() | ||
virtual const char* strError(const int error) const; | ||
|
||
|
@@ -90,6 +131,8 @@ namespace KDL { | |
|
||
unsigned int maxiter; | ||
double eps; | ||
unsigned int numiter; | ||
int ikvelstatus; | ||
}; | ||
|
||
} | ||
|
Uh oh!
There was an error while loading. Please reload this page.