Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iri_ros_tools
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
iri_core
iri_ros_tools
Commits
485e3683
Commit
485e3683
authored
2 years ago
by
Alejandro Lopez Gestoso
Browse files
Options
Downloads
Plain Diff
Merge branch 'testing'
parents
c088d440
d74ee960
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/iri_ros_tools/module_action.h
+21
-18
21 additions, 18 deletions
include/iri_ros_tools/module_action.h
with
21 additions
and
18 deletions
include/iri_ros_tools/module_action.h
+
21
−
18
View file @
485e3683
...
...
@@ -217,26 +217,29 @@ class CModuleAction
void
action_done
(
const
actionlib
::
SimpleClientGoalState
&
state
,
const
ResultConstPtr
&
result
)
{
this
->
action_access
.
enter
();
if
(
state
==
actionlib
::
SimpleClientGoalState
::
ABORTED
)
if
(
this
->
status
==
ACTION_RUNNING
)
{
ROS_ERROR_STREAM
(
"CModuleAction::action_done: goal on server "
<<
this
->
name
<<
" aborted"
);
this
->
status
=
ACTION_ABORTED
;
}
if
(
state
==
actionlib
::
SimpleClientGoalState
::
REJECTED
)
{
ROS_ERROR_STREAM
(
"CModuleAction::action_done: goal on server "
<<
this
->
name
<<
" rejected"
);
this
->
status
=
ACTION_REJECTED
;
}
else
if
(
state
==
actionlib
::
SimpleClientGoalState
::
PREEMPTED
)
{
ROS_WARN_STREAM
(
"CModuleAction::action_done: goal on server "
<<
this
->
name
<<
" preempted"
);
this
->
status
=
ACTION_PREEMPTED
;
if
(
state
==
actionlib
::
SimpleClientGoalState
::
ABORTED
)
{
ROS_ERROR_STREAM
(
"CModuleAction::action_done: goal on server "
<<
this
->
name
<<
" aborted"
);
this
->
status
=
ACTION_ABORTED
;
}
if
(
state
==
actionlib
::
SimpleClientGoalState
::
REJECTED
)
{
ROS_ERROR_STREAM
(
"CModuleAction::action_done: goal on server "
<<
this
->
name
<<
" rejected"
);
this
->
status
=
ACTION_REJECTED
;
}
else
if
(
state
==
actionlib
::
SimpleClientGoalState
::
PREEMPTED
)
{
ROS_WARN_STREAM
(
"CModuleAction::action_done: goal on server "
<<
this
->
name
<<
" preempted"
);
this
->
status
=
ACTION_PREEMPTED
;
}
else
if
(
state
==
actionlib
::
SimpleClientGoalState
::
SUCCEEDED
)
{
ROS_INFO_STREAM
(
"CModuleAction::action_done: goal on server "
<<
this
->
name
<<
" successfull"
);
this
->
status
=
ACTION_SUCCESS
;
}
}
else
if
(
state
==
actionlib
::
SimpleClientGoalState
::
SUCCEEDED
)
{
ROS_INFO_STREAM
(
"CModuleAction::action_done: goal on server "
<<
this
->
name
<<
" successfull"
);
this
->
status
=
ACTION_SUCCESS
;
}
this
->
action_result_msg
=*
result
;
this
->
action_feedback_msg
=
Feedback
();
this
->
action_timeout
.
stop
();
...
...
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