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
bb888b3e
Commit
bb888b3e
authored
Nov 27, 2018
by
Pierre Fernbach
Browse files
Remove rbprm.ProblemSolver class from rbprmState
parent
e272f05e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/hpp/corbaserver/rbprm/rbprmstate.py
View file @
bb888b3e
...
...
@@ -30,7 +30,7 @@ class State (object):
## Constructor
def
__init__
(
self
,
fullBody
,
sId
=-
1
,
isIntermediate
=
False
,
q
=
None
,
limbsIncontact
=
[]):
assert
((
sId
>
-
1
and
len
(
limbsIncontact
)
==
0
)
or
sId
==
-
1
),
"state created from existing id can't specify limbs in contact"
self
.
cl
=
fullBody
.
client
.
r
bprm
.
rbprm
self
.
cl
=
fullBody
.
client
R
bprm
.
rbprm
if
(
sId
==
-
1
):
self
.
sId
=
self
.
cl
.
createState
(
q
,
limbsIncontact
)
self
.
isIntermediate
=
False
...
...
@@ -113,10 +113,10 @@ class State (object):
## Get position of center of mass
def
getCenterOfMass
(
self
):
q0
=
self
.
fullBody
.
client
.
basic
.
robot
.
getCurrentConfig
()
self
.
fullBody
.
client
.
basic
.
robot
.
setCurrentConfig
(
self
.
q
())
c
=
self
.
fullBody
.
client
.
basic
.
robot
.
getC
omPosition
()
self
.
fullBody
.
client
.
basic
.
robot
.
setCurrentConfig
(
q0
)
q0
=
self
.
fullBody
.
client
.
robot
.
getCurrentConfig
()
self
.
fullBody
.
client
.
robot
.
setCurrentConfig
(
self
.
q
())
c
=
self
.
fullBody
.
client
.
robot
.
getC
enterOfMass
()
self
.
fullBody
.
client
.
robot
.
setCurrentConfig
(
q0
)
return
c
...
...
@@ -155,7 +155,7 @@ class State (object):
return
self
.
fullBody
.
isStateBalanced
(
self
.
sId
,
robustness
)
def
robustness
(
self
):
return
self
.
fullBody
.
client
.
r
bprm
.
rbprm
.
isStateBalanced
(
self
.
sId
)
return
self
.
fullBody
.
client
R
bprm
.
rbprm
.
isStateBalanced
(
self
.
sId
)
class
StateHelper
(
object
):
...
...
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