Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
homer_mapping
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
robbie
homer_mapping
Merge requests
!7
Fix/drunken navigation
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix/drunken navigation
fix/drunken_navigation
into
master
Overview
0
Commits
6
Changes
1
Merged
Ghost User
requested to merge
fix/drunken_navigation
into
master
7 years ago
Overview
0
Commits
6
Changes
1
Expand
0
0
Merge request reports
Viewing commit
20693dae
Prev
Next
Show latest version
1 file
+
18
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
20693dae
direct path if possible
· 20693dae
Florian Polster
authored
7 years ago
homer_navigation/src/homer_navigation_node.cpp
+
18
−
0
Options
@@ -375,6 +375,24 @@ void HomerNavigationNode::startNavigation()
{
m_explorer
->
setTarget
(
new_target_approx
);
m_state
=
FOLLOWING_PATH
;
//CHECK IF THERE IS A DIRECT PATH TO THE TARGET
if
(
m_fast_path_planning
)
{
m_waypoints
.
clear
();
geometry_msgs
::
PoseStamped
poseStamped
=
geometry_msgs
::
PoseStamped
();
poseStamped
.
header
.
frame_id
=
"/map"
;
poseStamped
.
pose
.
position
=
m_target_point
;
poseStamped
.
pose
.
orientation
.
w
=
1
;
m_waypoints
.
push_back
(
poseStamped
);
if
(
!
obstacleOnPath
())
{
return
;
}
}
calculatePath
();
}
}
Loading