Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hpp-rbprm-corba
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jason Chemin
hpp-rbprm-corba
Commits
3ff8652c
Commit
3ff8652c
authored
6 years ago
by
Pierre Fernbach
Browse files
Options
Downloads
Patches
Plain Diff
[scripts] small changes in tools scripts
parent
77b7bee3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
script/dynamic/export_blender.py
+3
-1
3 additions, 1 deletion
script/dynamic/export_blender.py
script/tools/cut_contact_sequence.py
+1
-1
1 addition, 1 deletion
script/tools/cut_contact_sequence.py
script/tools/disp_bezier.py
+7
-2
7 additions, 2 deletions
script/tools/disp_bezier.py
with
11 additions
and
4 deletions
script/dynamic/export_blender.py
+
3
−
1
View file @
3ff8652c
...
@@ -45,7 +45,7 @@ r.client.gui.captureTransformOnRefresh(False)
...
@@ -45,7 +45,7 @@ r.client.gui.captureTransformOnRefresh(False)
nodes
=
[
'
world/pinocchio
'
]
nodes
=
[
'
world/pinocchio
'
]
gui
.
setCaptureTransform
(
"
/local/dev_hpp/screenBlender/
iros2018/yaml/darpa_wholeBody
.yaml
"
,
nodes
)
gui
.
setCaptureTransform
(
"
/local/dev_hpp/screenBlender/
locomote/yaml/stairs10_NO_effectorRRT
.yaml
"
,
nodes
)
#gui.captureTransform()
#gui.captureTransform()
gui
.
captureTransformOnRefresh
(
True
)
gui
.
captureTransformOnRefresh
(
True
)
gui
.
captureTransformOnRefresh
(
False
)
gui
.
captureTransformOnRefresh
(
False
)
...
@@ -63,6 +63,8 @@ r.client.gui.captureTransformOnRefresh(False)
...
@@ -63,6 +63,8 @@ r.client.gui.captureTransformOnRefresh(False)
r
.
client
.
gui
.
writeBlenderScript
(
"
/local/dev_hpp/screenBlender/talos/models/pyrene.py
"
,
[
'
talos
'
])
r
.
client
.
gui
.
writeBlenderScript
(
"
/local/dev_hpp/screenBlender/talos/models/pyrene.py
"
,
[
'
talos
'
])
r
.
client
.
gui
.
writeBlenderScript
(
"
/local/dev_hpp/screenBlender/talos/stairs.py
"
,
[
'
world
'
])
nodes
=
[
"
hrp2_14
"
,
"
Vec_Acceleration
"
,
"
Vec_Velocity
"
]
nodes
=
[
"
hrp2_14
"
,
"
Vec_Acceleration
"
,
"
Vec_Velocity
"
]
r
.
client
.
gui
.
setCaptureTransform
(
"
/local/dev_hpp/screenBlender/iros2017/yaml/slope_interp_3.yaml
"
,
nodes
)
r
.
client
.
gui
.
setCaptureTransform
(
"
/local/dev_hpp/screenBlender/iros2017/yaml/slope_interp_3.yaml
"
,
nodes
)
r
.
client
.
gui
.
captureTransformOnRefresh
(
True
)
r
.
client
.
gui
.
captureTransformOnRefresh
(
True
)
...
...
This diff is collapsed.
Click to expand it.
script/tools/cut_contact_sequence.py
+
1
−
1
View file @
3ff8652c
...
@@ -9,7 +9,7 @@ import planning.generate_muscod_problem as mp
...
@@ -9,7 +9,7 @@ import planning.generate_muscod_problem as mp
import
muscodSSH
as
ssh
import
muscodSSH
as
ssh
from
planning.config
import
*
from
planning.config
import
*
statesPerStep
=
5
# number of double support configs from the planning per call to muscod
statesPerStep
=
4
# number of double support configs from the planning per call to muscod
stepSize
=
statesPerStep
*
2
-
1
# contact_sequence contain double support AND simple support states
stepSize
=
statesPerStep
*
2
-
1
# contact_sequence contain double support AND simple support states
def
solveMuscodProblem
(
configsFull
,
cs
):
def
solveMuscodProblem
(
configsFull
,
cs
):
...
...
This diff is collapsed.
Click to expand it.
script/tools/disp_bezier.py
+
7
−
2
View file @
3ff8652c
...
@@ -6,7 +6,7 @@ from numpy.linalg import norm
...
@@ -6,7 +6,7 @@ from numpy.linalg import norm
def
displayBezierCurve
(
r
,
curve
,
step
=
0.001
,
color
=
[
0.85
,
0.75
,
0.15
,
1.0
],
name
=
None
):
def
displayBezierCurve
(
r
,
curve
,
step
=
0.001
,
color
=
[
0.85
,
0.75
,
0.15
,
1.0
],
name
=
None
,
offset
=
None
):
if
name
==
None
:
if
name
==
None
:
name
=
"
bezier_curve
"
name
=
"
bezier_curve
"
list
=
r
.
client
.
gui
.
getNodeList
()
list
=
r
.
client
.
gui
.
getNodeList
()
...
@@ -17,7 +17,12 @@ def displayBezierCurve(r,curve,step=0.001,color=[0.85, 0.75, 0.15, 1.0],name=Non
...
@@ -17,7 +17,12 @@ def displayBezierCurve(r,curve,step=0.001,color=[0.85, 0.75, 0.15, 1.0],name=Non
current
=
0
current
=
0
path
=
[]
path
=
[]
while
current
<=
curve
.
max
():
while
current
<=
curve
.
max
():
path
+=
[
curve
(
current
).
transpose
().
tolist
()[
0
]]
p
=
curve
(
current
).
transpose
().
tolist
()[
0
]
if
offset
:
assert
(
len
(
offset
)
==
len
(
p
))
for
i
in
range
(
len
(
p
)):
p
[
i
]
+=
offset
[
i
]
path
+=
[
p
]
current
+=
step
current
+=
step
r
.
client
.
gui
.
addCurve
(
name
,
path
,
color
)
r
.
client
.
gui
.
addCurve
(
name
,
path
,
color
)
r
.
client
.
gui
.
addToGroup
(
name
,
r
.
sceneName
)
r
.
client
.
gui
.
addToGroup
(
name
,
r
.
sceneName
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment