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
Guilhem Saurel
hpp-rbprm-corba
Commits
ec8f23a3
Commit
ec8f23a3
authored
Oct 24, 2019
by
Pierre Fernbach
Committed by
Pierre Fernbach
Jan 17, 2020
Browse files
[python] update rbprmfullbody.py to changes in addNewContact API (addition of rotation target)
parent
aef9ad1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/hpp/corbaserver/rbprm/rbprmfullbody.py
View file @
ec8f23a3
...
...
@@ -256,7 +256,7 @@ class FullBody(Robot):
num_max_sample
=
1
for
(
limbName
,
normal
)
in
zip
(
contacts
,
normals
):
p
=
cl
.
getEffectorPosition
(
limbName
,
configuration
)[
0
]
cl
.
addNewContact
(
sId
,
limbName
,
p
,
normal
,
num_max_sample
,
False
)
cl
.
addNewContact
(
sId
,
limbName
,
p
,
normal
,
num_max_sample
,
False
,[
0
,
0
,
0
,
0
]
)
return
sId
# # Retrieves the contact candidates configurations given a configuration and a limb
...
...
@@ -322,7 +322,7 @@ class FullBody(Robot):
num_max_sample
=
1
for
(
limbName
,
normal
)
in
zip
(
contacts
,
normals
):
p
=
cl
.
getEffectorPosition
(
limbName
,
configuration
)[
0
]
cl
.
addNewContact
(
sId
,
limbName
,
p
,
normal
,
num_max_sample
,
False
)
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
...
...
@@ -339,7 +339,7 @@ class FullBody(Robot):
num_max_sample
=
1
for
(
limbName
,
normal
)
in
zip
(
contacts
,
normals
):
p
=
cl
.
getEffectorPosition
(
limbName
,
configuration
)[
0
]
cl
.
addNewContact
(
sId
,
limbName
,
p
,
normal
,
num_max_sample
,
False
)
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
.
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