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
Jason Chemin
hpp-rbprm-corba
Commits
f7829c9b
Commit
f7829c9b
authored
Jan 18, 2019
by
Pierre Fernbach
Browse files
[script] minor changes in display tools
parent
76ccd4c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
script/tools/displayCOntact.py
View file @
f7829c9b
...
...
@@ -5,24 +5,24 @@ q2 = [[1.41929 , 0.56273 , 0.3167],[0.633238 , 0.498175 , 0.252145],[1.41049 , -
color
=
r
.
color
.
black
color
=
v
.
color
.
black
for
i
in
range
(
0
,
len
(
q
)):
r
.
client
.
gui
.
addSphere
(
"s"
+
str
(
i
),
0.03
,
color
)
r
.
client
.
gui
.
applyConfiguration
(
"s"
+
str
(
i
),
q
[
i
]
+
[
1
,
0
,
0
,
0
])
r
.
client
.
gui
.
setVisibility
(
"s"
+
str
(
i
),
"ALWAYS_ON_TOP"
)
r
.
client
.
gui
.
addToGroup
(
"s"
+
str
(
i
),
r
.
sceneName
)
v
.
client
.
gui
.
addSphere
(
"s"
+
str
(
i
),
0.03
,
color
)
v
.
client
.
gui
.
applyConfiguration
(
"s"
+
str
(
i
),
q
[
i
]
+
[
1
,
0
,
0
,
0
])
v
.
client
.
gui
.
setVisibility
(
"s"
+
str
(
i
),
"ALWAYS_ON_TOP"
)
v
.
client
.
gui
.
addToGroup
(
"s"
+
str
(
i
),
v
.
sceneName
)
r
.
client
.
gui
.
refresh
()
v
.
client
.
gui
.
refresh
()
color
=
r
.
color
.
red
color
=
v
.
color
.
red
for
i
in
range
(
0
,
len
(
q2
)):
r
.
client
.
gui
.
addSphere
(
"sc"
+
str
(
i
),
0.01
,
color
)
r
.
client
.
gui
.
applyConfiguration
(
"sc"
+
str
(
i
),
q2
[
i
]
+
[
1
,
0
,
0
,
0
])
r
.
client
.
gui
.
addToGroup
(
"sc"
+
str
(
i
),
r
.
sceneName
)
r
.
client
.
gui
.
setVisibility
(
"sc"
+
str
(
i
),
"ALWAYS_ON_TOP"
)
v
.
client
.
gui
.
addSphere
(
"sc"
+
str
(
i
),
0.01
,
color
)
v
.
client
.
gui
.
applyConfiguration
(
"sc"
+
str
(
i
),
q2
[
i
]
+
[
1
,
0
,
0
,
0
])
v
.
client
.
gui
.
addToGroup
(
"sc"
+
str
(
i
),
v
.
sceneName
)
v
.
client
.
gui
.
setVisibility
(
"sc"
+
str
(
i
),
"ALWAYS_ON_TOP"
)
r
.
client
.
gui
.
refresh
()
v
.
client
.
gui
.
refresh
()
...
...
script/tools/display_tools.py
View file @
f7829c9b
...
...
@@ -13,6 +13,6 @@ def moveSphere(name,r,pos):
r
.
client
.
gui
.
refresh
()
def
displayContactSequence
(
r
,
configs
,
pause
=
1.
):
for
i
in
range
(
0
,
len
(
configs
)
-
1
):
for
i
in
range
(
0
,
len
(
configs
)):
r
(
configs
[
i
])
time
.
sleep
(
pause
)
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