Skip to content
Snippets Groups Projects
Commit f42b653b authored by Alejandro Lopez Gestoso's avatar Alejandro Lopez Gestoso
Browse files

Added is_finished

parent 600b1d5a
No related branches found
No related tags found
No related merge requests found
...@@ -170,7 +170,14 @@ class CIriJointsModule : public CModule<iri_joints_module::IriJointsModuleConfig ...@@ -170,7 +170,14 @@ class CIriJointsModule : public CModule<iri_joints_module::IriJointsModuleConfig
void cancel_point_to(void); void cancel_point_to(void);
/** /**
* \brief Function to change the inverse kinematics solver tolerance * \brief Function to know if point to action is finished.
*
* \return True if finished.
*/
bool point_to_finished(void);
/**
* \brief Function to change the inverse kinematics solver tolerance.
* *
* \param tolerance Inverse kinematics tolerance. * \param tolerance Inverse kinematics tolerance.
* *
......
...@@ -201,6 +201,14 @@ void CIriJointsModule::cancel_point_to(void) ...@@ -201,6 +201,14 @@ void CIriJointsModule::cancel_point_to(void)
this->cancel_poin_to = true; this->cancel_poin_to = true;
} }
bool CIriJointsModule::point_to_finished(void)
{
if(this->state == IRI_JOINTS_MODULE_IDLE && this->new_point_goal == false)
return true;
else
return false;
}
bool CIriJointsModule::set_tolerance(double tolerance) bool CIriJointsModule::set_tolerance(double tolerance)
{ {
this->lock(); this->lock();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment