Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iri_nav_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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
navigation
iri_nav_module
Commits
2056f177
Commit
2056f177
authored
2 years ago
by
Alejandro Lopez Gestoso
Browse files
Options
Downloads
Patches
Plain Diff
tf listener related variables from private to protected
parent
b0ba1521
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/iri_nav_module/nav_module.h
+16
-16
16 additions, 16 deletions
include/iri_nav_module/nav_module.h
with
16 additions
and
16 deletions
include/iri_nav_module/nav_module.h
+
16
−
16
View file @
2056f177
...
...
@@ -120,59 +120,59 @@ class CNavModule : public CModule<ModuleCfg>
*
*/
bool
path_available
;
//
tf listener
//
costmaps
/**
* \brief
*
*/
tf2_ros
::
Buffer
tf2_buffer
;
CModuleService
<
std_srvs
::
Empty
,
ModuleCfg
>
clear_costmaps
;
/**
* \brief
*
*/
tf2_
ros
::
T
ransformListener
tf2_listen
er
;
ros
::
T
imer
clear_costmaps_tim
er
;
/**
* \brief
*
*/
double
tf_timeout_time_s
;
// costmaps
void
clear_costmaps_call
(
const
ros
::
TimerEvent
&
event
);
/**
* \brief
*
*/
CModuleService
<
std_srvs
::
Empty
,
ModuleCfg
>
clear_costmaps
;
bool
enable_auto_clear
;
/**
* \brief
*
*/
ros
::
Timer
clear_costmaps_timer
;
double
auto_clear_rate_hz
;
/**
* \brief
*
*/
void
clear_costmaps_
cal
l
(
co
n
st
ros
::
TimerEvent
&
event
)
;
CNavCostmapModule
<
ModuleCfg
>
lo
cal
_
cost
map
;
/**
* \brief
*
*/
bool
enable_auto_clear
;
CNavCostmapModule
<
ModuleCfg
>
global_costmap
;
protected:
// tf listener
/**
* \brief
*
*/
double
auto_clear_rate_hz
;
tf2_ros
::
Buffer
tf2_buffer
;
/**
* \brief
*
*/
CNavCostmapModule
<
ModuleCfg
>
local_costmap
;
tf2_ros
::
TransformListener
tf2_listener
;
/**
* \brief
*
*/
CNavCostmapModule
<
ModuleCfg
>
global_costmap
;
protected:
double
tf_timeout_time_s
;
/**
* \brief
*
...
...
@@ -588,11 +588,11 @@ class CNavModule : public CModule<ModuleCfg>
this
->
lock
();
switch
(
this
->
clear_costmaps
.
call
(
clear_costmaps_req
))
{
case
ACT_SRV_SUCCESS
:
ROS_INFO
(
"CNavModule: Costmaps cleared sucessfully"
);
case
ACT_SRV_SUCCESS
:
ROS_INFO
(
"CNavModule: Costmaps cleared sucessfully
(auto clear)
"
);
break
;
case
ACT_SRV_PENDING
:
ROS_WARN
(
"CNavModule: Costmaps not yet cleared"
);
case
ACT_SRV_PENDING
:
ROS_WARN
(
"CNavModule: Costmaps not yet cleared
(auto clear)
"
);
break
;
case
ACT_SRV_FAIL
:
ROS_ERROR
(
"CNavModule: Impossible to clear costmaps"
);
case
ACT_SRV_FAIL
:
ROS_ERROR
(
"CNavModule: Impossible to clear costmaps
(auto clear)
"
);
break
;
}
this
->
unlock
();
...
...
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