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
ff9dd8ed
Commit
ff9dd8ed
authored
2 years ago
by
Alejandro Lopez Gestoso
Browse files
Options
Downloads
Patches
Plain Diff
Changed FOLLOW to lower cases
parent
2879ffd4
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_nav_module/follow_lp_module.h
+14
-14
14 additions, 14 deletions
include/iri_nav_module/follow_lp_module.h
include/iri_nav_module/follow_lp_module_bt.h
+35
-35
35 additions, 35 deletions
include/iri_nav_module/follow_lp_module_bt.h
with
49 additions
and
49 deletions
include/iri_nav_module/follow_lp_module.h
+
14
−
14
View file @
ff9dd8ed
...
@@ -10,14 +10,14 @@
...
@@ -10,14 +10,14 @@
*
*
*/
*/
template
<
class
ModuleCfg
>
template
<
class
ModuleCfg
>
class
CF
OLLOW
LPModule
:
public
CNavPlannerModule
<
ModuleCfg
>
class
CF
ollow
LPModule
:
public
CNavPlannerModule
<
ModuleCfg
>
{
{
public:
public:
/**
/**
* \brief Constructor
* \brief Constructor
*
*
*/
*/
CF
OLLOW
LPModule
(
const
std
::
string
&
name
,
const
std
::
string
&
name_space
=
std
::
string
(
""
));
CF
ollow
LPModule
(
const
std
::
string
&
name
,
const
std
::
string
&
name_space
=
std
::
string
(
""
));
/**
/**
* \brief Function to set the parameter update_dist
* \brief Function to set the parameter update_dist
...
@@ -100,25 +100,25 @@ class CFOLLOWLPModule : public CNavPlannerModule<ModuleCfg>
...
@@ -100,25 +100,25 @@ class CFOLLOWLPModule : public CNavPlannerModule<ModuleCfg>
* \brief Destructor
* \brief Destructor
*
*
*/
*/
~
CF
OLLOW
LPModule
();
~
CF
ollow
LPModule
();
};
};
template
<
class
ModuleCfg
>
template
<
class
ModuleCfg
>
CF
OLLOW
LPModule
<
ModuleCfg
>::
CF
OLLOW
LPModule
(
const
std
::
string
&
name
,
const
std
::
string
&
name_space
)
:
CNavPlannerModule
<
ModuleCfg
>
(
name
,
name_space
)
CF
ollow
LPModule
<
ModuleCfg
>::
CF
ollow
LPModule
(
const
std
::
string
&
name
,
const
std
::
string
&
name_space
)
:
CNavPlannerModule
<
ModuleCfg
>
(
name
,
name_space
)
{
{
}
}
/* parameter functions */
/* parameter functions */
template
<
class
ModuleCfg
>
template
<
class
ModuleCfg
>
dyn_reconf_status_t
CF
OLLOW
LPModule
<
ModuleCfg
>::
set_update_dist
(
double
&
value
)
dyn_reconf_status_t
CF
ollow
LPModule
<
ModuleCfg
>::
set_update_dist
(
double
&
value
)
{
{
this
->
planner_reconf
.
set_parameter
(
"update_dist"
,
value
);
this
->
planner_reconf
.
set_parameter
(
"update_dist"
,
value
);
return
this
->
planner_reconf
.
get_status
();
return
this
->
planner_reconf
.
get_status
();
}
}
template
<
class
ModuleCfg
>
template
<
class
ModuleCfg
>
dyn_reconf_status_t
CF
OLLOW
LPModule
<
ModuleCfg
>::
get_update_dist
(
double
&
value
)
dyn_reconf_status_t
CF
ollow
LPModule
<
ModuleCfg
>::
get_update_dist
(
double
&
value
)
{
{
if
(
this
->
planner_reconf
.
get_parameter
(
"update_dist"
,
value
))
if
(
this
->
planner_reconf
.
get_parameter
(
"update_dist"
,
value
))
return
DYN_RECONF_SUCCESSFULL
;
return
DYN_RECONF_SUCCESSFULL
;
...
@@ -127,14 +127,14 @@ class CFOLLOWLPModule : public CNavPlannerModule<ModuleCfg>
...
@@ -127,14 +127,14 @@ class CFOLLOWLPModule : public CNavPlannerModule<ModuleCfg>
}
}
template
<
class
ModuleCfg
>
template
<
class
ModuleCfg
>
dyn_reconf_status_t
CF
OLLOW
LPModule
<
ModuleCfg
>::
set_follow_dist
(
double
&
value
)
dyn_reconf_status_t
CF
ollow
LPModule
<
ModuleCfg
>::
set_follow_dist
(
double
&
value
)
{
{
this
->
planner_reconf
.
set_parameter
(
"follow_dist"
,
value
);
this
->
planner_reconf
.
set_parameter
(
"follow_dist"
,
value
);
return
this
->
planner_reconf
.
get_status
();
return
this
->
planner_reconf
.
get_status
();
}
}
template
<
class
ModuleCfg
>
template
<
class
ModuleCfg
>
dyn_reconf_status_t
CF
OLLOW
LPModule
<
ModuleCfg
>::
get_follow_dist
(
double
&
value
)
dyn_reconf_status_t
CF
ollow
LPModule
<
ModuleCfg
>::
get_follow_dist
(
double
&
value
)
{
{
if
(
this
->
planner_reconf
.
get_parameter
(
"follow_dist"
,
value
))
if
(
this
->
planner_reconf
.
get_parameter
(
"follow_dist"
,
value
))
return
DYN_RECONF_SUCCESSFULL
;
return
DYN_RECONF_SUCCESSFULL
;
...
@@ -143,14 +143,14 @@ class CFOLLOWLPModule : public CNavPlannerModule<ModuleCfg>
...
@@ -143,14 +143,14 @@ class CFOLLOWLPModule : public CNavPlannerModule<ModuleCfg>
}
}
template
<
class
ModuleCfg
>
template
<
class
ModuleCfg
>
dyn_reconf_status_t
CF
OLLOW
LPModule
<
ModuleCfg
>::
get_follow_restart_dist
(
double
&
value
)
dyn_reconf_status_t
CF
ollow
LPModule
<
ModuleCfg
>::
get_follow_restart_dist
(
double
&
value
)
{
{
this
->
planner_reconf
.
set_parameter
(
"follow_restart_dist"
,
value
);
this
->
planner_reconf
.
set_parameter
(
"follow_restart_dist"
,
value
);
return
this
->
planner_reconf
.
get_status
();
return
this
->
planner_reconf
.
get_status
();
}
}
template
<
class
ModuleCfg
>
template
<
class
ModuleCfg
>
dyn_reconf_status_t
CF
OLLOW
LPModule
<
ModuleCfg
>::
set_follow_restart_dist
(
double
&
value
)
dyn_reconf_status_t
CF
ollow
LPModule
<
ModuleCfg
>::
set_follow_restart_dist
(
double
&
value
)
{
{
if
(
this
->
planner_reconf
.
get_parameter
(
"follow_restart_dist"
,
value
))
if
(
this
->
planner_reconf
.
get_parameter
(
"follow_restart_dist"
,
value
))
return
DYN_RECONF_SUCCESSFULL
;
return
DYN_RECONF_SUCCESSFULL
;
...
@@ -159,14 +159,14 @@ class CFOLLOWLPModule : public CNavPlannerModule<ModuleCfg>
...
@@ -159,14 +159,14 @@ class CFOLLOWLPModule : public CNavPlannerModule<ModuleCfg>
}
}
template
<
class
ModuleCfg
>
template
<
class
ModuleCfg
>
dyn_reconf_status_t
CF
OLLOW
LPModule
<
ModuleCfg
>::
set_spline_dist_samples
(
int
&
value
)
dyn_reconf_status_t
CF
ollow
LPModule
<
ModuleCfg
>::
set_spline_dist_samples
(
int
&
value
)
{
{
this
->
planner_reconf
.
set_parameter
(
"dist_samples"
,
value
);
this
->
planner_reconf
.
set_parameter
(
"dist_samples"
,
value
);
return
this
->
planner_reconf
.
get_status
();
return
this
->
planner_reconf
.
get_status
();
}
}
template
<
class
ModuleCfg
>
template
<
class
ModuleCfg
>
dyn_reconf_status_t
CF
OLLOW
LPModule
<
ModuleCfg
>::
get_spline_dist_samples
(
int
&
value
)
dyn_reconf_status_t
CF
ollow
LPModule
<
ModuleCfg
>::
get_spline_dist_samples
(
int
&
value
)
{
{
if
(
this
->
planner_reconf
.
get_parameter
(
"dist_samples"
,
value
))
if
(
this
->
planner_reconf
.
get_parameter
(
"dist_samples"
,
value
))
return
DYN_RECONF_SUCCESSFULL
;
return
DYN_RECONF_SUCCESSFULL
;
...
@@ -175,12 +175,12 @@ class CFOLLOWLPModule : public CNavPlannerModule<ModuleCfg>
...
@@ -175,12 +175,12 @@ class CFOLLOWLPModule : public CNavPlannerModule<ModuleCfg>
}
}
template
<
class
ModuleCfg
>
template
<
class
ModuleCfg
>
void
CF
OLLOW
LPModule
<
ModuleCfg
>::
dynamic_reconfigure
(
ModuleCfg
&
config
,
const
std
::
string
&
name
)
void
CF
ollow
LPModule
<
ModuleCfg
>::
dynamic_reconfigure
(
ModuleCfg
&
config
,
const
std
::
string
&
name
)
{
{
}
}
template
<
class
ModuleCfg
>
template
<
class
ModuleCfg
>
CF
OLLOW
LPModule
<
ModuleCfg
>::~
CF
OLLOW
LPModule
()
CF
ollow
LPModule
<
ModuleCfg
>::~
CF
ollow
LPModule
()
{
{
}
}
...
...
This diff is collapsed.
Click to expand it.
include/iri_nav_module/follow_lp_module_bt.h
+
35
−
35
View file @
ff9dd8ed
...
@@ -7,11 +7,11 @@
...
@@ -7,11 +7,11 @@
#include
<iri_nav_module/follow_lp_module.h>
#include
<iri_nav_module/follow_lp_module.h>
template
<
class
ModuleCfg
>
template
<
class
ModuleCfg
>
class
CF
OLLOW
LPModuleBT
class
CF
ollow
LPModuleBT
{
{
private:
private:
// object of nav_module
// object of nav_module
CF
OLLOW
LPModule
<
ModuleCfg
>
&
module
;
CF
ollow
LPModule
<
ModuleCfg
>
&
module
;
std
::
string
name
;
std
::
string
name
;
public:
public:
...
@@ -19,7 +19,7 @@ class CFOLLOWLPModuleBT
...
@@ -19,7 +19,7 @@ class CFOLLOWLPModuleBT
* \brief Constructor
* \brief Constructor
*
*
*/
*/
CF
OLLOW
LPModuleBT
(
CF
OLLOW
LPModule
<
ModuleCfg
>
&
module
,
const
std
::
string
&
name
);
CF
ollow
LPModuleBT
(
CF
ollow
LPModule
<
ModuleCfg
>
&
module
,
const
std
::
string
&
name
);
/**
/**
* \brief Register all conditions and actions needed for using the module
* \brief Register all conditions and actions needed for using the module
...
@@ -39,7 +39,7 @@ class CFOLLOWLPModuleBT
...
@@ -39,7 +39,7 @@ class CFOLLOWLPModuleBT
* This destructor frees all necessary dynamic memory allocated within this
* This destructor frees all necessary dynamic memory allocated within this
* this class.
* this class.
*/
*/
~
CF
OLLOW
LPModuleBT
();
~
CF
ollow
LPModuleBT
();
protected:
protected:
// conditions
// conditions
...
@@ -55,7 +55,7 @@ class CFOLLOWLPModuleBT
...
@@ -55,7 +55,7 @@ class CFOLLOWLPModuleBT
};
};
template
<
class
ModuleCfg
>
template
<
class
ModuleCfg
>
CF
OLLOW
LPModuleBT
<
ModuleCfg
>::
CF
OLLOW
LPModuleBT
(
CF
OLLOW
LPModule
<
ModuleCfg
>
&
module
,
const
std
::
string
&
name
)
:
CF
ollow
LPModuleBT
<
ModuleCfg
>::
CF
ollow
LPModuleBT
(
CF
ollow
LPModule
<
ModuleCfg
>
&
module
,
const
std
::
string
&
name
)
:
module
(
module
)
module
(
module
)
{
{
std
::
size_t
found
=
name
.
find_last_of
(
"/
\\
"
);
std
::
size_t
found
=
name
.
find_last_of
(
"/
\\
"
);
...
@@ -63,7 +63,7 @@ class CFOLLOWLPModuleBT
...
@@ -63,7 +63,7 @@ class CFOLLOWLPModuleBT
}
}
template
<
class
ModuleCfg
>
template
<
class
ModuleCfg
>
void
CF
OLLOW
LPModuleBT
<
ModuleCfg
>::
init
(
IriBehaviorTreeFactory
&
factory
)
void
CF
ollow
LPModuleBT
<
ModuleCfg
>::
init
(
IriBehaviorTreeFactory
&
factory
)
{
{
BT
::
PortsList
set_update_dist_ports
=
{
BT
::
InputPort
<
double
>
(
"update_dist"
)};
BT
::
PortsList
set_update_dist_ports
=
{
BT
::
InputPort
<
double
>
(
"update_dist"
)};
BT
::
PortsList
get_update_dist_ports
=
{
BT
::
OutputPort
<
double
>
(
"update_dist"
)};
BT
::
PortsList
get_update_dist_ports
=
{
BT
::
OutputPort
<
double
>
(
"update_dist"
)};
...
@@ -78,31 +78,31 @@ class CFOLLOWLPModuleBT
...
@@ -78,31 +78,31 @@ class CFOLLOWLPModuleBT
// Registration of conditions
// Registration of conditions
//Registration of actions
//Registration of actions
factory
.
registerSimpleAction
(
this
->
name
+
"_follow_set_update_dist"
,
std
::
bind
(
&
CF
OLLOW
LPModuleBT
::
set_update_dist
,
this
,
std
::
placeholders
::
_1
),
set_update_dist_ports
);
factory
.
registerSimpleAction
(
this
->
name
+
"_follow_set_update_dist"
,
std
::
bind
(
&
CF
ollow
LPModuleBT
::
set_update_dist
,
this
,
std
::
placeholders
::
_1
),
set_update_dist_ports
);
factory
.
registerSimpleAction
(
this
->
name
+
"_follow_get_update_dist"
,
std
::
bind
(
&
CF
OLLOW
LPModuleBT
::
get_update_dist
,
this
,
std
::
placeholders
::
_1
),
get_update_dist_ports
);
factory
.
registerSimpleAction
(
this
->
name
+
"_follow_get_update_dist"
,
std
::
bind
(
&
CF
ollow
LPModuleBT
::
get_update_dist
,
this
,
std
::
placeholders
::
_1
),
get_update_dist_ports
);
factory
.
registerSimpleAction
(
this
->
name
+
"_follow_set_follow_dist"
,
std
::
bind
(
&
CF
OLLOW
LPModuleBT
::
set_follow_dist
,
this
,
std
::
placeholders
::
_1
),
set_follow_dist_ports
);
factory
.
registerSimpleAction
(
this
->
name
+
"_follow_set_follow_dist"
,
std
::
bind
(
&
CF
ollow
LPModuleBT
::
set_follow_dist
,
this
,
std
::
placeholders
::
_1
),
set_follow_dist_ports
);
factory
.
registerSimpleAction
(
this
->
name
+
"_follow_get_follow_dist"
,
std
::
bind
(
&
CF
OLLOW
LPModuleBT
::
get_follow_dist
,
this
,
std
::
placeholders
::
_1
),
get_follow_dist_ports
);
factory
.
registerSimpleAction
(
this
->
name
+
"_follow_get_follow_dist"
,
std
::
bind
(
&
CF
ollow
LPModuleBT
::
get_follow_dist
,
this
,
std
::
placeholders
::
_1
),
get_follow_dist_ports
);
factory
.
registerSimpleAction
(
this
->
name
+
"_follow_get_follow_restart_dist"
,
std
::
bind
(
&
CF
OLLOW
LPModuleBT
::
get_follow_restart_dist
,
this
,
std
::
placeholders
::
_1
),
get_follow_restart_dist_ports
);
factory
.
registerSimpleAction
(
this
->
name
+
"_follow_get_follow_restart_dist"
,
std
::
bind
(
&
CF
ollow
LPModuleBT
::
get_follow_restart_dist
,
this
,
std
::
placeholders
::
_1
),
get_follow_restart_dist_ports
);
factory
.
registerSimpleAction
(
this
->
name
+
"_follow_set_follow_restart_dist"
,
std
::
bind
(
&
CF
OLLOW
LPModuleBT
::
set_follow_restart_dist
,
this
,
std
::
placeholders
::
_1
),
set_follow_restart_dist_ports
);
factory
.
registerSimpleAction
(
this
->
name
+
"_follow_set_follow_restart_dist"
,
std
::
bind
(
&
CF
ollow
LPModuleBT
::
set_follow_restart_dist
,
this
,
std
::
placeholders
::
_1
),
set_follow_restart_dist_ports
);
factory
.
registerSimpleAction
(
this
->
name
+
"_follow_set_spline_dist_samples"
,
std
::
bind
(
&
CF
OLLOW
LPModuleBT
::
set_spline_dist_samples
,
this
,
std
::
placeholders
::
_1
),
set_spline_dist_samples_ports
);
factory
.
registerSimpleAction
(
this
->
name
+
"_follow_set_spline_dist_samples"
,
std
::
bind
(
&
CF
ollow
LPModuleBT
::
set_spline_dist_samples
,
this
,
std
::
placeholders
::
_1
),
set_spline_dist_samples_ports
);
factory
.
registerSimpleAction
(
this
->
name
+
"_follow_get_spline_dist_samples"
,
std
::
bind
(
&
CF
OLLOW
LPModuleBT
::
get_spline_dist_samples
,
this
,
std
::
placeholders
::
_1
),
get_spline_dist_samples_ports
);
factory
.
registerSimpleAction
(
this
->
name
+
"_follow_get_spline_dist_samples"
,
std
::
bind
(
&
CF
ollow
LPModuleBT
::
get_spline_dist_samples
,
this
,
std
::
placeholders
::
_1
),
get_spline_dist_samples_ports
);
}
}
template
<
class
ModuleCfg
>
template
<
class
ModuleCfg
>
CF
OLLOW
LPModuleBT
<
ModuleCfg
>::~
CF
OLLOW
LPModuleBT
(
void
)
CF
ollow
LPModuleBT
<
ModuleCfg
>::~
CF
ollow
LPModuleBT
(
void
)
{
{
// [free dynamic memory]
// [free dynamic memory]
}
}
template
<
class
ModuleCfg
>
template
<
class
ModuleCfg
>
BT
::
NodeStatus
CF
OLLOW
LPModuleBT
<
ModuleCfg
>::
set_update_dist
(
BT
::
TreeNode
&
self
)
BT
::
NodeStatus
CF
ollow
LPModuleBT
<
ModuleCfg
>::
set_update_dist
(
BT
::
TreeNode
&
self
)
{
{
ROS_DEBUG
(
"CF
OLLOW
LPModuleBT::set_update_dist-> set_update_dist"
);
ROS_DEBUG
(
"CF
ollow
LPModuleBT::set_update_dist-> set_update_dist"
);
BT
::
Optional
<
double
>
bt_update_dist
=
self
.
getInput
<
double
>
(
"update_dist"
);
BT
::
Optional
<
double
>
bt_update_dist
=
self
.
getInput
<
double
>
(
"update_dist"
);
if
(
!
bt_update_dist
)
if
(
!
bt_update_dist
)
{
{
ROS_ERROR
(
"CF
OLLOW
LPModuleBT::set_update_dist-> Incorrect or missing input. It needs the following input ports: update_dist(double)"
);
ROS_ERROR
(
"CF
ollow
LPModuleBT::set_update_dist-> Incorrect or missing input. It needs the following input ports: update_dist(double)"
);
return
BT
::
NodeStatus
::
FAILURE
;
return
BT
::
NodeStatus
::
FAILURE
;
}
}
double
xy
=
bt_update_dist
.
value
();
double
xy
=
bt_update_dist
.
value
();
...
@@ -113,9 +113,9 @@ class CFOLLOWLPModuleBT
...
@@ -113,9 +113,9 @@ class CFOLLOWLPModuleBT
}
}
template
<
class
ModuleCfg
>
template
<
class
ModuleCfg
>
BT
::
NodeStatus
CF
OLLOW
LPModuleBT
<
ModuleCfg
>::
get_update_dist
(
BT
::
TreeNode
&
self
)
BT
::
NodeStatus
CF
ollow
LPModuleBT
<
ModuleCfg
>::
get_update_dist
(
BT
::
TreeNode
&
self
)
{
{
ROS_DEBUG
(
"CF
OLLOW
LPModuleBT::get_update_dist-> get_update_dist"
);
ROS_DEBUG
(
"CF
ollow
LPModuleBT::get_update_dist-> get_update_dist"
);
double
update_dist
;
double
update_dist
;
if
(
this
->
module
.
get_update_dist
(
update_dist
)
==
DYN_RECONF_SUCCESSFULL
)
if
(
this
->
module
.
get_update_dist
(
update_dist
)
==
DYN_RECONF_SUCCESSFULL
)
...
@@ -131,14 +131,14 @@ class CFOLLOWLPModuleBT
...
@@ -131,14 +131,14 @@ class CFOLLOWLPModuleBT
}
}
template
<
class
ModuleCfg
>
template
<
class
ModuleCfg
>
BT
::
NodeStatus
CF
OLLOW
LPModuleBT
<
ModuleCfg
>::
set_follow_dist
(
BT
::
TreeNode
&
self
)
BT
::
NodeStatus
CF
ollow
LPModuleBT
<
ModuleCfg
>::
set_follow_dist
(
BT
::
TreeNode
&
self
)
{
{
ROS_DEBUG
(
"CF
OLLOW
LPModuleBT::set_follow_dist-> set_follow_dist"
);
ROS_DEBUG
(
"CF
ollow
LPModuleBT::set_follow_dist-> set_follow_dist"
);
BT
::
Optional
<
double
>
bt_follow_dist
=
self
.
getInput
<
double
>
(
"follow_dist"
);
BT
::
Optional
<
double
>
bt_follow_dist
=
self
.
getInput
<
double
>
(
"follow_dist"
);
if
(
!
bt_follow_dist
)
if
(
!
bt_follow_dist
)
{
{
ROS_ERROR
(
"CF
OLLOW
LPModuleBT::set_follow_dist-> Incorrect or missing input. It needs the following input ports: follow_dist(double)"
);
ROS_ERROR
(
"CF
ollow
LPModuleBT::set_follow_dist-> Incorrect or missing input. It needs the following input ports: follow_dist(double)"
);
return
BT
::
NodeStatus
::
FAILURE
;
return
BT
::
NodeStatus
::
FAILURE
;
}
}
double
follow_dist
=
bt_follow_dist
.
value
();
double
follow_dist
=
bt_follow_dist
.
value
();
...
@@ -149,9 +149,9 @@ class CFOLLOWLPModuleBT
...
@@ -149,9 +149,9 @@ class CFOLLOWLPModuleBT
}
}
template
<
class
ModuleCfg
>
template
<
class
ModuleCfg
>
BT
::
NodeStatus
CF
OLLOW
LPModuleBT
<
ModuleCfg
>::
get_follow_dist
(
BT
::
TreeNode
&
self
)
BT
::
NodeStatus
CF
ollow
LPModuleBT
<
ModuleCfg
>::
get_follow_dist
(
BT
::
TreeNode
&
self
)
{
{
ROS_DEBUG
(
"CF
OLLOW
LPModuleBT::get_follow_dist-> get_follow_dist"
);
ROS_DEBUG
(
"CF
ollow
LPModuleBT::get_follow_dist-> get_follow_dist"
);
double
follow_dist
;
double
follow_dist
;
if
(
this
->
module
.
get_follow_dist
(
follow_dist
)
==
DYN_RECONF_SUCCESSFULL
)
if
(
this
->
module
.
get_follow_dist
(
follow_dist
)
==
DYN_RECONF_SUCCESSFULL
)
...
@@ -167,14 +167,14 @@ class CFOLLOWLPModuleBT
...
@@ -167,14 +167,14 @@ class CFOLLOWLPModuleBT
}
}
template
<
class
ModuleCfg
>
template
<
class
ModuleCfg
>
BT
::
NodeStatus
CF
OLLOW
LPModuleBT
<
ModuleCfg
>::
get_follow_restart_dist
(
BT
::
TreeNode
&
self
)
BT
::
NodeStatus
CF
ollow
LPModuleBT
<
ModuleCfg
>::
get_follow_restart_dist
(
BT
::
TreeNode
&
self
)
{
{
ROS_DEBUG
(
"CF
OLLOW
LPModuleBT::get_follow_restart_dist-> get_follow_restart_dist"
);
ROS_DEBUG
(
"CF
ollow
LPModuleBT::get_follow_restart_dist-> get_follow_restart_dist"
);
BT
::
Optional
<
double
>
bt_follow_restart_dist
=
self
.
getInput
<
double
>
(
"follow_restart_dist"
);
BT
::
Optional
<
double
>
bt_follow_restart_dist
=
self
.
getInput
<
double
>
(
"follow_restart_dist"
);
if
(
!
bt_follow_restart_dist
)
if
(
!
bt_follow_restart_dist
)
{
{
ROS_ERROR
(
"CF
OLLOW
LPModuleBT::get_follow_restart_dist-> Incorrect or missing input. It needs the following input ports: follow_restart_dist(double)"
);
ROS_ERROR
(
"CF
ollow
LPModuleBT::get_follow_restart_dist-> Incorrect or missing input. It needs the following input ports: follow_restart_dist(double)"
);
return
BT
::
NodeStatus
::
FAILURE
;
return
BT
::
NodeStatus
::
FAILURE
;
}
}
double
follow_restart_dist
=
bt_follow_restart_dist
.
value
();
double
follow_restart_dist
=
bt_follow_restart_dist
.
value
();
...
@@ -185,9 +185,9 @@ class CFOLLOWLPModuleBT
...
@@ -185,9 +185,9 @@ class CFOLLOWLPModuleBT
}
}
template
<
class
ModuleCfg
>
template
<
class
ModuleCfg
>
BT
::
NodeStatus
CF
OLLOW
LPModuleBT
<
ModuleCfg
>::
set_follow_restart_dist
(
BT
::
TreeNode
&
self
)
BT
::
NodeStatus
CF
ollow
LPModuleBT
<
ModuleCfg
>::
set_follow_restart_dist
(
BT
::
TreeNode
&
self
)
{
{
ROS_DEBUG
(
"CF
OLLOW
LPModuleBT::set_follow_restart_dist-> set_follow_restart_dist"
);
ROS_DEBUG
(
"CF
ollow
LPModuleBT::set_follow_restart_dist-> set_follow_restart_dist"
);
double
follow_restart_dist
;
double
follow_restart_dist
;
if
(
this
->
module
.
set_follow_restart_dist
(
follow_restart_dist
)
==
DYN_RECONF_SUCCESSFULL
)
if
(
this
->
module
.
set_follow_restart_dist
(
follow_restart_dist
)
==
DYN_RECONF_SUCCESSFULL
)
...
@@ -203,14 +203,14 @@ class CFOLLOWLPModuleBT
...
@@ -203,14 +203,14 @@ class CFOLLOWLPModuleBT
}
}
template
<
class
ModuleCfg
>
template
<
class
ModuleCfg
>
BT
::
NodeStatus
CF
OLLOW
LPModuleBT
<
ModuleCfg
>::
set_spline_dist_samples
(
BT
::
TreeNode
&
self
)
BT
::
NodeStatus
CF
ollow
LPModuleBT
<
ModuleCfg
>::
set_spline_dist_samples
(
BT
::
TreeNode
&
self
)
{
{
ROS_DEBUG
(
"CF
OLLOW
LPModuleBT::set_spline_dist_samples-> set_spline_dist_samples"
);
ROS_DEBUG
(
"CF
ollow
LPModuleBT::set_spline_dist_samples-> set_spline_dist_samples"
);
BT
::
Optional
<
int
>
bt_dist_samples
=
self
.
getInput
<
int
>
(
"dist_samples"
);
BT
::
Optional
<
int
>
bt_dist_samples
=
self
.
getInput
<
int
>
(
"dist_samples"
);
if
(
!
bt_dist_samples
)
if
(
!
bt_dist_samples
)
{
{
ROS_ERROR
(
"CF
OLLOW
LPModuleBT::set_spline_dist_samples-> Incorrect or missing input. It needs the following input ports: dist_samples(int)"
);
ROS_ERROR
(
"CF
ollow
LPModuleBT::set_spline_dist_samples-> Incorrect or missing input. It needs the following input ports: dist_samples(int)"
);
return
BT
::
NodeStatus
::
FAILURE
;
return
BT
::
NodeStatus
::
FAILURE
;
}
}
int
dist_samples
=
bt_dist_samples
.
value
();
int
dist_samples
=
bt_dist_samples
.
value
();
...
@@ -221,9 +221,9 @@ class CFOLLOWLPModuleBT
...
@@ -221,9 +221,9 @@ class CFOLLOWLPModuleBT
}
}
template
<
class
ModuleCfg
>
template
<
class
ModuleCfg
>
BT
::
NodeStatus
CF
OLLOW
LPModuleBT
<
ModuleCfg
>::
get_spline_dist_samples
(
BT
::
TreeNode
&
self
)
BT
::
NodeStatus
CF
ollow
LPModuleBT
<
ModuleCfg
>::
get_spline_dist_samples
(
BT
::
TreeNode
&
self
)
{
{
ROS_DEBUG
(
"CF
OLLOW
LPModuleBT::get_spline_dist_samples-> get_spline_dist_samples"
);
ROS_DEBUG
(
"CF
ollow
LPModuleBT::get_spline_dist_samples-> get_spline_dist_samples"
);
int
dist_samples
;
int
dist_samples
;
if
(
this
->
module
.
get_spline_dist_samples
(
dist_samples
)
==
DYN_RECONF_SUCCESSFULL
)
if
(
this
->
module
.
get_spline_dist_samples
(
dist_samples
)
==
DYN_RECONF_SUCCESSFULL
)
...
...
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