Skip to content
GitLab
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-rbprm-corba
Commits
f0656cf8
Commit
f0656cf8
authored
Mar 26, 2020
by
Pierre Fernbach
Browse files
[Python] set{Start,End}State correctly project from the new state and not the original one
parent
9c9ed1db
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/hpp/corbaserver/rbprm/rbprmfullbody.py
View file @
f0656cf8
...
...
@@ -325,7 +325,7 @@ class FullBody(Robot):
num_max_sample
=
0
for
(
limbName
,
normal
)
in
zip
(
contacts
,
normals
):
p
=
cl
.
getEffectorPosition
(
limbName
,
configuration
)[
0
]
cl
.
addNewContact
(
sId
,
limbName
,
p
,
normal
,
num_max_sample
,
False
,
[
0
,
0
,
0
,
0
])
sId
=
cl
.
addNewContact
(
sId
,
limbName
,
p
,
normal
,
num_max_sample
,
False
,
[
0
,
0
,
0
,
0
])
return
cl
.
setStartStateId
(
sId
)
# # Initialize the goal configuration of the path interpolation
...
...
@@ -342,7 +342,7 @@ class FullBody(Robot):
num_max_sample
=
0
for
(
limbName
,
normal
)
in
zip
(
contacts
,
normals
):
p
=
cl
.
getEffectorPosition
(
limbName
,
configuration
)[
0
]
cl
.
addNewContact
(
sId
,
limbName
,
p
,
normal
,
num_max_sample
,
False
,
[
0
,
0
,
0
,
0
])
sId
=
cl
.
addNewContact
(
sId
,
limbName
,
p
,
normal
,
num_max_sample
,
False
,
[
0
,
0
,
0
,
0
])
return
cl
.
setEndStateId
(
sId
)
# # Initialize the first state of the path interpolation
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment