Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Navigation
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
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Software
ArmarX
Skills
Navigation
Commits
c253e1b5
Commit
c253e1b5
authored
1 year ago
by
Tobias Gröger
Browse files
Options
Downloads
Patches
Plain Diff
Make teb more robust
parent
1a3346f6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!74
Add laser scanner features to teb planning
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/armarx/navigation/local_planning/TimedElasticBands.cpp
+19
-4
19 additions, 4 deletions
...ce/armarx/navigation/local_planning/TimedElasticBands.cpp
with
19 additions
and
4 deletions
source/armarx/navigation/local_planning/TimedElasticBands.cpp
+
19
−
4
View file @
c253e1b5
...
...
@@ -23,6 +23,7 @@
#include
<armarx/navigation/local_planning/ros_conversions.h>
// #include <teb_local_planner/extension/obstacles/EllipseObstacle.h>
#include
<armarx/navigation/local_planning/aron_conversions_teb.h>
#include
<teb_local_planner/homotopy_class_planner.h>
namespace
armarx
::
navigation
::
local_planning
...
...
@@ -106,21 +107,35 @@ namespace armarx::navigation::local_planning
fillObstacles
();
bool
success
;
try
{
if
(
!
hcp_
->
plan
(
start
,
end
,
&
velocity_start
,
!
planToDest
))
{
ARMARX_WARNING
<<
deactivateSpam
(
5
)
<<
"Found trajectory is not feasible!"
;
}
success
=
hcp_
->
plan
(
start
,
end
,
&
velocity_start
,
!
planToDest
);
}
catch
(...)
{
hcp_
->
clearPlanner
();
ARMARX_ERROR
<<
"Caugth exception while planning: "
<<
GetHandledExceptionString
();
return
std
::
nullopt
;
}
if
(
!
success
)
{
hcp_
->
clearPlanner
();
ARMARX_WARNING
<<
deactivateSpam
(
5
)
<<
"Found trajectory is not feasible!"
;
return
std
::
nullopt
;
}
if
(
hcp_
->
hasDiverged
())
{
hcp_
->
clearPlanner
();
ARMARX_WARNING
<<
deactivateSpam
(
5
)
<<
"Planner has diverged!"
;
return
std
::
nullopt
;
}
if
(
hcp_
->
getTrajectoryContainer
().
empty
())
{
hcp_
->
clearPlanner
();
ARMARX_INFO
<<
deactivateSpam
(
5
)
<<
"Did not find any trajectory!"
;
return
std
::
nullopt
;
}
...
...
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