Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iri_joints_module
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
labrobotica
ros
devices
joints
iri_joints_module
Commits
f42b653b
Commit
f42b653b
authored
5 years ago
by
Alejandro Lopez Gestoso
Browse files
Options
Downloads
Patches
Plain Diff
Added is_finished
parent
600b1d5a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/iri_joints_module/iri_joints_module.h
+8
-1
8 additions, 1 deletion
include/iri_joints_module/iri_joints_module.h
src/iri_joints_module.cpp
+8
-0
8 additions, 0 deletions
src/iri_joints_module.cpp
with
16 additions
and
1 deletion
include/iri_joints_module/iri_joints_module.h
+
8
−
1
View file @
f42b653b
...
@@ -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.
*
*
...
...
This diff is collapsed.
Click to expand it.
src/iri_joints_module.cpp
+
8
−
0
View file @
f42b653b
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment