Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Humanoid Path Planner
hpp-core
Commits
66ef0637
Commit
66ef0637
authored
Jan 21, 2021
by
Joseph Mirabel
Browse files
[Minor] Make exception message more explicit.
parent
65df5e44
Pipeline
#13049
failed with stage
in 1 minute and 51 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/path-planner/bi-rrt-star.cc
View file @
66ef0637
...
...
@@ -84,10 +84,10 @@ namespace hpp {
{
typedef
ParentMap_t
::
const_iterator
It_t
;
value_type
c
=
0
;
for
(
It_t
current
=
map
.
find
(
n
);
current
->
second
;
for
(
It_t
current
=
map
.
find
(
n
);
current
->
second
;
current
=
map
.
find
(
current
->
second
->
from
()))
{
if
(
current
==
map
.
end
())
throw
std
::
logic_error
(
"
t
his node has no parent."
);
throw
std
::
logic_error
(
"
BiRRT*: T
his node has no parent.
You cannot use BiRRT* from a precomputed roadmap.
"
);
c
+=
current
->
second
->
path
()
->
length
();
}
return
c
;
...
...
@@ -103,7 +103,7 @@ namespace hpp {
if
(
e
)
{
assert
(
e
->
to
()
==
n
);
if
(
map
.
find
(
e
->
from
())
==
map
.
end
())
throw
std
::
logic_error
(
"
c
ould not find node from of edge in parent map.
Did you start
from a pre
-built
roadmap
?
"
);
throw
std
::
logic_error
(
"
BiRRT*: C
ould not find node from of edge in parent map.
You cannot use BiRRT*
from a pre
computed
roadmap
.
"
);
}
map
[
n
]
=
e
;
}
...
...
@@ -236,7 +236,7 @@ namespace hpp {
--
i
;
edge0
=
toRoot_
[
0
].
find
(
edge1
->
second
->
from
());
if
(
edge0
->
second
->
to
()
!=
edge1
->
second
->
from
())
throw
std
::
logic_error
(
"wrong parent map."
);
throw
std
::
logic_error
(
"
BiRRT*:
wrong parent map."
);
// qm = (q0 + q2) / 2
pinocchio
::
interpolate
(
problem
()
->
robot
(),
...
...
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