Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
homer_navigation
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
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_navigation
Commits
d72ac98f
Commit
d72ac98f
authored
2 years ago
by
Daniel Müller
Browse files
Options
Downloads
Patches
Plain Diff
minor: to_string func for geometry_msgs::Point
parent
8589be3c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!24
Better isolation of planning routine, refactored overall path planning/following routine, added markers
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/homer_navigation_node.cpp
+9
-0
9 additions, 0 deletions
src/homer_navigation_node.cpp
with
9 additions
and
0 deletions
src/homer_navigation_node.cpp
+
9
−
0
View file @
d72ac98f
...
...
@@ -8,6 +8,13 @@
#include
<opencv2/opencv.hpp>
#endif
std
::
string
to_string
(
const
geometry_msgs
::
Point
&
p
)
{
std
::
stringstream
ss
;
ss
<<
"["
<<
p
.
x
<<
", "
<<
p
.
y
<<
", "
<<
p
.
z
<<
"]"
;
return
ss
.
str
();
}
//----------------------------------------------------------------------------------------------------------------------
void
filter_scan_points
(
std
::
vector
<
geometry_msgs
::
Point
>&
points
)
{
...
...
@@ -241,6 +248,8 @@ void HomerNavigationNode::setExplorerMap()
bool
HomerNavigationNode
::
planPath
(
const
geometry_msgs
::
Point
&
A
,
const
geometry_msgs
::
Point
&
B
,
nav_msgs
::
Path
&
path
)
{
ROS_INFO_STREAM
(
"Planning path from map point "
<<
to_string
(
A
)
<<
" to "
<<
to_string
(
B
)
<<
"..."
);
path
.
header
.
frame_id
=
"map"
;
path
.
header
.
stamp
=
ros
::
Time
::
now
();
...
...
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