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
70946a9a
Commit
70946a9a
authored
2 years ago
by
Alejandro Lopez Gestoso
Browse files
Options
Downloads
Patches
Plain Diff
Updated doc. Fixed typo
parent
3436a5fa
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/iri_nav_module/teb_lp_module.h
+18
-18
18 additions, 18 deletions
include/iri_nav_module/teb_lp_module.h
include/iri_nav_module/teb_lp_module_bt.h
+11
-11
11 additions, 11 deletions
include/iri_nav_module/teb_lp_module_bt.h
src/xml/bt_definitions.xml
+2
-2
2 additions, 2 deletions
src/xml/bt_definitions.xml
with
31 additions
and
31 deletions
include/iri_nav_module/teb_lp_module.h
+
18
−
18
View file @
70946a9a
...
...
@@ -20,7 +20,7 @@ class CTEBLPModule : public CNavPlannerModule<ModuleCfg>
CTEBLPModule
(
const
std
::
string
&
name
,
const
std
::
string
&
name_space
=
std
::
string
(
""
));
/**
* \brief Function to set the parameter
* \brief Function to set the parameter
xy_goal_tolerance.
*
* \param value The value to set.
*
...
...
@@ -29,7 +29,7 @@ class CTEBLPModule : public CNavPlannerModule<ModuleCfg>
dyn_reconf_status_t
set_xy_goal_tolerance
(
double
&
value
);
/**
* \brief Function to get the parameter
* \brief Function to get the parameter
xy_goal_tolerance.
*
* \param value The parameter value.
*
...
...
@@ -38,7 +38,7 @@ class CTEBLPModule : public CNavPlannerModule<ModuleCfg>
dyn_reconf_status_t
get_xy_goal_tolerance
(
double
&
value
);
/**
* \brief Function to set the parameter
* \brief Function to set the parameter
yaw_goal_tolerance
*
* \param value The value to set.
*
...
...
@@ -47,7 +47,7 @@ class CTEBLPModule : public CNavPlannerModule<ModuleCfg>
dyn_reconf_status_t
set_yaw_goal_tolerance
(
double
&
value
);
/**
* \brief Function to get the parameter
* \brief Function to get the parameter
yaw_goal_tolerance
*
* \param value The parameter value.
*
...
...
@@ -78,7 +78,7 @@ class CTEBLPModule : public CNavPlannerModule<ModuleCfg>
dyn_reconf_status_t
set_goal_tolerances
(
double
&
xy_tol
,
double
&
yaw_tol
);
/**
* \brief Function to set the parameter
* \brief Function to set the parameter
max_vel_x
*
* \param value The value to set.
*
...
...
@@ -87,7 +87,7 @@ class CTEBLPModule : public CNavPlannerModule<ModuleCfg>
dyn_reconf_status_t
set_max_vel_x
(
double
&
value
);
/**
* \brief Function to get the parameter
* \brief Function to get the parameter
max_vel_x
*
* \param value The parameter value.
*
...
...
@@ -96,25 +96,25 @@ class CTEBLPModule : public CNavPlannerModule<ModuleCfg>
dyn_reconf_status_t
get_max_vel_x
(
double
&
value
);
/**
* \brief Function to set the parameter
* \brief Function to set the parameter
max_vel_x_backwards.
*
* \param value The value to set.
*
* \return The status of the operation.
*/
dyn_reconf_status_t
set_ma
v
_vel_x_backwards
(
double
&
value
);
dyn_reconf_status_t
set_ma
x
_vel_x_backwards
(
double
&
value
);
/**
* \brief Function to get the parameter
* \brief Function to get the parameter
max_vel_x_backwards.
*
* \param value The parameter value.
*
* \return The status of the operation.
*/
dyn_reconf_status_t
get_ma
v
_vel_x_backwards
(
double
&
value
);
dyn_reconf_status_t
get_ma
x
_vel_x_backwards
(
double
&
value
);
/**
* \brief Function to set the parameter
* \brief Function to set the parameter
max_vel_theta.
*
* \param value The value to set.
*
...
...
@@ -123,7 +123,7 @@ class CTEBLPModule : public CNavPlannerModule<ModuleCfg>
dyn_reconf_status_t
set_max_vel_theta
(
double
&
value
);
/**
* \brief Function to get the parameter
* \brief Function to get the parameter
max_vel_theta.
*
* \param value The parameter value.
*
...
...
@@ -132,7 +132,7 @@ class CTEBLPModule : public CNavPlannerModule<ModuleCfg>
dyn_reconf_status_t
get_max_vel_theta
(
double
&
value
);
/**
* \brief Function to set the parameter
* \brief Function to set the parameter
acc_lim_x.
*
* \param value The value to set.
*
...
...
@@ -141,7 +141,7 @@ class CTEBLPModule : public CNavPlannerModule<ModuleCfg>
dyn_reconf_status_t
set_acc_lim_x
(
double
&
value
);
/**
* \brief Function to get the parameter
* \brief Function to get the parameter
acc_lim_x.
*
* \param value The parameter value.
*
...
...
@@ -150,7 +150,7 @@ class CTEBLPModule : public CNavPlannerModule<ModuleCfg>
dyn_reconf_status_t
get_acc_lim_x
(
double
&
value
);
/**
* \brief Function to set the parameter
* \brief Function to set the parameter
acc_lim_theta.
*
* \param value The value to set.
*
...
...
@@ -159,7 +159,7 @@ class CTEBLPModule : public CNavPlannerModule<ModuleCfg>
dyn_reconf_status_t
set_acc_lim_theta
(
double
&
value
);
/**
* \brief Function to get the parameter
* \brief Function to get the parameter
acc_lim_theta.
*
* \param value The parameter value.
*
...
...
@@ -257,14 +257,14 @@ class CTEBLPModule : public CNavPlannerModule<ModuleCfg>
}
template
<
class
ModuleCfg
>
dyn_reconf_status_t
CTEBLPModule
<
ModuleCfg
>::
set_ma
v
_vel_x_backwards
(
double
&
value
)
dyn_reconf_status_t
CTEBLPModule
<
ModuleCfg
>::
set_ma
x
_vel_x_backwards
(
double
&
value
)
{
this
->
planner_reconf
.
set_parameter
(
"mav_vel_x_backwards"
,
value
);
return
this
->
planner_reconf
.
get_status
();
}
template
<
class
ModuleCfg
>
dyn_reconf_status_t
CTEBLPModule
<
ModuleCfg
>::
get_ma
v
_vel_x_backwards
(
double
&
value
)
dyn_reconf_status_t
CTEBLPModule
<
ModuleCfg
>::
get_ma
x
_vel_x_backwards
(
double
&
value
)
{
if
(
this
->
planner_reconf
.
get_parameter
(
"mav_vel_x_backwards"
,
value
))
return
DYN_RECONF_SUCCESSFULL
;
...
...
This diff is collapsed.
Click to expand it.
include/iri_nav_module/teb_lp_module_bt.h
+
11
−
11
View file @
70946a9a
...
...
@@ -52,8 +52,8 @@ class CTEBLPModuleBT
BT
::
NodeStatus
get_yaw_goal_tolerance
(
BT
::
TreeNode
&
self
);
BT
::
NodeStatus
set_max_vel_x
(
BT
::
TreeNode
&
self
);
BT
::
NodeStatus
get_max_vel_x
(
BT
::
TreeNode
&
self
);
BT
::
NodeStatus
set_ma
v
_vel_x_backwards
(
BT
::
TreeNode
&
self
);
BT
::
NodeStatus
get_ma
v
_vel_x_backwards
(
BT
::
TreeNode
&
self
);
BT
::
NodeStatus
set_ma
x
_vel_x_backwards
(
BT
::
TreeNode
&
self
);
BT
::
NodeStatus
get_ma
x
_vel_x_backwards
(
BT
::
TreeNode
&
self
);
BT
::
NodeStatus
set_max_vel_theta
(
BT
::
TreeNode
&
self
);
BT
::
NodeStatus
get_max_vel_theta
(
BT
::
TreeNode
&
self
);
};
...
...
@@ -94,8 +94,8 @@ class CTEBLPModuleBT
factory
.
registerSimpleAction
(
this
->
name
+
"_teb_get_yaw_goal_tolerance"
,
std
::
bind
(
&
CTEBLPModuleBT
::
get_yaw_goal_tolerance
,
this
,
std
::
placeholders
::
_1
),
get_yaw_goal_tol_ports
);
factory
.
registerSimpleAction
(
this
->
name
+
"_teb_set_max_vel_x"
,
std
::
bind
(
&
CTEBLPModuleBT
::
set_max_vel_x
,
this
,
std
::
placeholders
::
_1
),
set_max_vel_x_ports
);
factory
.
registerSimpleAction
(
this
->
name
+
"_teb_get_max_vel_x"
,
std
::
bind
(
&
CTEBLPModuleBT
::
get_max_vel_x
,
this
,
std
::
placeholders
::
_1
),
get_max_vel_x_ports
);
factory
.
registerSimpleAction
(
this
->
name
+
"_teb_set_ma
v
_vel_x_backwards"
,
std
::
bind
(
&
CTEBLPModuleBT
::
set_ma
v
_vel_x_backwards
,
this
,
std
::
placeholders
::
_1
),
set_max_vel_x_back_ports
);
factory
.
registerSimpleAction
(
this
->
name
+
"_teb_get_ma
v
_vel_x_backwards"
,
std
::
bind
(
&
CTEBLPModuleBT
::
get_ma
v
_vel_x_backwards
,
this
,
std
::
placeholders
::
_1
),
get_max_vel_x_back_ports
);
factory
.
registerSimpleAction
(
this
->
name
+
"_teb_set_ma
x
_vel_x_backwards"
,
std
::
bind
(
&
CTEBLPModuleBT
::
set_ma
x
_vel_x_backwards
,
this
,
std
::
placeholders
::
_1
),
set_max_vel_x_back_ports
);
factory
.
registerSimpleAction
(
this
->
name
+
"_teb_get_ma
x
_vel_x_backwards"
,
std
::
bind
(
&
CTEBLPModuleBT
::
get_ma
x
_vel_x_backwards
,
this
,
std
::
placeholders
::
_1
),
get_max_vel_x_back_ports
);
factory
.
registerSimpleAction
(
this
->
name
+
"_teb_set_max_vel_theta"
,
std
::
bind
(
&
CTEBLPModuleBT
::
set_max_vel_theta
,
this
,
std
::
placeholders
::
_1
),
set_max_vel_theta_ports
);
factory
.
registerSimpleAction
(
this
->
name
+
"_teb_get_max_vel_theta"
,
std
::
bind
(
&
CTEBLPModuleBT
::
get_max_vel_theta
,
this
,
std
::
placeholders
::
_1
),
get_max_vel_theta_ports
);
...
...
@@ -256,30 +256,30 @@ class CTEBLPModuleBT
}
template
<
class
ModuleCfg
>
BT
::
NodeStatus
CTEBLPModuleBT
<
ModuleCfg
>::
set_ma
v
_vel_x_backwards
(
BT
::
TreeNode
&
self
)
BT
::
NodeStatus
CTEBLPModuleBT
<
ModuleCfg
>::
set_ma
x
_vel_x_backwards
(
BT
::
TreeNode
&
self
)
{
ROS_DEBUG
(
"CTEBLPModuleBT::set_ma
v
_vel_x_backwards-> set_ma
v
_vel_x_backwards"
);
ROS_DEBUG
(
"CTEBLPModuleBT::set_ma
x
_vel_x_backwards-> set_ma
x
_vel_x_backwards"
);
BT
::
Optional
<
double
>
bt_vel
=
self
.
getInput
<
double
>
(
"max_vel_x_back"
);
if
(
!
bt_vel
)
{
ROS_ERROR
(
"CTEBLPModuleBT::set_ma
v
_vel_x_backwards-> Incorrect or missing input. It needs the following input ports: max_vel_x_back(double)"
);
ROS_ERROR
(
"CTEBLPModuleBT::set_ma
x
_vel_x_backwards-> Incorrect or missing input. It needs the following input ports: max_vel_x_back(double)"
);
return
BT
::
NodeStatus
::
FAILURE
;
}
double
vel
=
bt_vel
.
value
();
if
(
this
->
module
.
set_ma
v
_vel_x_backwards
(
vel
)
==
DYN_RECONF_SUCCESSFULL
)
if
(
this
->
module
.
set_ma
x
_vel_x_backwards
(
vel
)
==
DYN_RECONF_SUCCESSFULL
)
return
BT
::
NodeStatus
::
SUCCESS
;
else
return
BT
::
NodeStatus
::
FAILURE
;
}
template
<
class
ModuleCfg
>
BT
::
NodeStatus
CTEBLPModuleBT
<
ModuleCfg
>::
get_ma
v
_vel_x_backwards
(
BT
::
TreeNode
&
self
)
BT
::
NodeStatus
CTEBLPModuleBT
<
ModuleCfg
>::
get_ma
x
_vel_x_backwards
(
BT
::
TreeNode
&
self
)
{
ROS_DEBUG
(
"CTEBLPModuleBT::get_ma
v
_vel_x_backwards-> get_ma
v
_vel_x_backwards"
);
ROS_DEBUG
(
"CTEBLPModuleBT::get_ma
x
_vel_x_backwards-> get_ma
x
_vel_x_backwards"
);
double
vel
;
if
(
this
->
module
.
get_ma
v
_vel_x_backwards
(
vel
)
==
DYN_RECONF_SUCCESSFULL
)
if
(
this
->
module
.
get_ma
x
_vel_x_backwards
(
vel
)
==
DYN_RECONF_SUCCESSFULL
)
{
self
.
setOutput
(
"max_vel_x_back"
,
vel
);
return
BT
::
NodeStatus
::
SUCCESS
;
...
...
This diff is collapsed.
Click to expand it.
src/xml/bt_definitions.xml
+
2
−
2
View file @
70946a9a
...
...
@@ -147,10 +147,10 @@
<Action
ID=
"nav_module_teb_get_max_vel_x"
>
<output_port
name=
"max_vel_x"
>
Local planner max vel x
</output_port>
</Action>
<Action
ID=
"nav_module_teb_set_ma
v
_vel_x_backwards"
>
<Action
ID=
"nav_module_teb_set_ma
x
_vel_x_backwards"
>
<input_port
name=
"max_vel_x_back"
>
Local planner max vel x backwards
</input_port>
</Action>
<Action
ID=
"nav_module_teb_get_ma
v
_vel_x_backwards"
>
<Action
ID=
"nav_module_teb_get_ma
x
_vel_x_backwards"
>
<output_port
name=
"max_vel_x_back"
>
Local planner max vel x backwards
</output_port>
</Action>
<Action
ID=
"nav_module_teb_set_max_vel_theta"
>
...
...
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