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
462419ee
Commit
462419ee
authored
May 29, 2019
by
stevet
Browse files
removed extra config space
parent
ae99978a
Changes
1
Hide whitespace changes
Inline
Side-by-side
script/scenarios/demos/darpa_hyq.py
View file @
462419ee
...
@@ -18,8 +18,8 @@ from hpp.corbaserver import Client
...
@@ -18,8 +18,8 @@ from hpp.corbaserver import Client
# This time we load the full body model of HyQ
# This time we load the full body model of HyQ
fullBody
=
Robot
()
fullBody
=
Robot
()
fullBody
.
setJointBounds
(
"root_joint"
,
[
-
2
,
5
,
-
1
,
1
,
0.3
,
4
])
fullBody
.
setJointBounds
(
"root_joint"
,
[
-
2
,
5
,
-
1
,
1
,
0.3
,
4
])
fullBody
.
client
.
robot
.
setDimensionExtraConfigSpace
(
6
)
#~
fullBody.client.robot.setDimensionExtraConfigSpace(6)
fullBody
.
client
.
robot
.
setExtraConfigSpaceBounds
([
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
])
#~
fullBody.client.robot.setExtraConfigSpaceBounds([0,0,0,0,0,0,0,0,0,0,0,0])
# Setting a number of sample configurations used
# Setting a number of sample configurations used
nbSamples
=
10000
nbSamples
=
10000
...
@@ -43,10 +43,8 @@ fullBody.addLimb(fullBody.lArmId,fullBody.larm,fullBody.lhand,fullBody.offset,fu
...
@@ -43,10 +43,8 @@ fullBody.addLimb(fullBody.lArmId,fullBody.larm,fullBody.lhand,fullBody.offset,fu
#~ fullBody.runLimbSampleAnalysis(rarmId, "jointLimitsDistance", True)
#~ fullBody.runLimbSampleAnalysis(rarmId, "jointLimitsDistance", True)
#~ fullBody.runLimbSampleAnalysis(larmId, "jointLimitsDistance", True)
#~ fullBody.runLimbSampleAnalysis(larmId, "jointLimitsDistance", True)
q_init
=
fullBody
.
referenceConfig
[::]
+
[
0
]
*
6
;
q_init
[
0
:
7
]
=
tp
.
q_init
[
0
:
7
];
q_init
=
fullBody
.
referenceConfig
[::]
;
q_init
[
0
:
7
]
=
tp
.
q_init
[
0
:
7
];
#q_init[2]=fullBody.referenceConfig[2]
q_goal
=
fullBody
.
referenceConfig
[::];
q_goal
[
0
:
7
]
=
tp
.
q_goal
[
0
:
7
];
q_goal
=
fullBody
.
referenceConfig
[::]
+
[
0
]
*
6
;
q_goal
[
0
:
7
]
=
tp
.
q_goal
[
0
:
7
];
#q_goal[2]=fullBody.referenceConfig[2]
q_init
=
fullBody
.
generateContacts
(
q_init
,
[
0
,
0
,
1
])
q_init
=
fullBody
.
generateContacts
(
q_init
,
[
0
,
0
,
1
])
...
...
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