Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
labrobotica
ros
navigation
iri_opendrive_global_planner
Commits
b0bd7881
Commit
b0bd7881
authored
Feb 11, 2021
by
Sergi Hernandez
Browse files
Added a check that the index of the best path is valid before getting the trajectory.
parent
95cfe570
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/opendrive_planner.cpp
View file @
b0bd7881
...
@@ -271,6 +271,8 @@ bool OpendriveGlobalPlanner::makePlan(const geometry_msgs::PoseStamped& start, c
...
@@ -271,6 +271,8 @@ bool OpendriveGlobalPlanner::makePlan(const geometry_msgs::PoseStamped& start, c
std
::
cout
<<
std
::
endl
;
std
::
cout
<<
std
::
endl
;
}
}
best_path_index
=
this
->
roadmap
.
get_best_path
(
best_cost
,
best_path
);
best_path_index
=
this
->
roadmap
.
get_best_path
(
best_cost
,
best_path
);
if
(
best_path_index
==-
1
)
return
false
;
std
::
cout
<<
"best path index: "
<<
best_path_index
<<
std
::
endl
;
std
::
cout
<<
"best path index: "
<<
best_path_index
<<
std
::
endl
;
for
(
unsigned
int
i
=
0
;
i
<
best_path
.
size
();
i
++
)
for
(
unsigned
int
i
=
0
;
i
<
best_path
.
size
();
i
++
)
std
::
cout
<<
best_path
[
i
]
<<
","
;
std
::
cout
<<
best_path
[
i
]
<<
","
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment