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
Guilhem Saurel
hpp-rbprm-corba
Commits
7f9ee5d9
Commit
7f9ee5d9
authored
Jun 04, 2019
by
stevet
Browse files
3D normal parameters for create state
parent
c481cf10
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/hpp/corbaserver/rbprm/rbprmfullbody.py
View file @
7f9ee5d9
...
...
@@ -213,11 +213,19 @@ class FullBody (Robot):
return
self
.
clientRbprm
.
rbprm
.
generateGroundContact
(
contactLimbs
)
## Create a state and push it to the state array
# \param
q
configuration
# \param
name
s list of effectors in contact
# \param
configuration
configuration
# \param
contact
s list of effectors in contact
# \return stateId
def
createState
(
self
,
q
,
contactLimbs
):
return
self
.
clientRbprm
.
rbprm
.
createState
(
q
,
contactLimbs
)
def
createState
(
self
,
configuration
,
contacts
,
normals
=
None
):
if
normals
is
None
:
return
self
.
clientRbprm
.
rbprm
.
createState
(
configuration
,
contacts
)
cl
=
self
.
clientRbprm
.
rbprm
sId
=
cl
.
createState
(
configuration
,
contacts
)
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
)
return
sId
## Retrieves the contact candidates configurations given a configuration and a limb
#
...
...
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