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
29a96a75
Commit
29a96a75
authored
Mar 30, 2018
by
Pierre Fernbach
Browse files
add 'displayContactSequence' method in display_tools
parent
79eb524f
Changes
1
Hide whitespace changes
Inline
Side-by-side
script/tools/display_tools.py
View file @
29a96a75
import
time
def
createSphere
(
name
,
r
,
size
=
0.01
,
color
=
[
0
,
0
,
0
,
1
]):
r
.
client
.
gui
.
addSphere
(
name
,
size
,
color
)
...
...
@@ -10,3 +12,7 @@ def moveSphere(name,r,pos):
r
.
client
.
gui
.
applyConfiguration
(
name
,
q
)
r
.
client
.
gui
.
refresh
()
def
displayContactSequence
(
r
,
configs
,
pause
=
1.
):
for
i
in
range
(
0
,
len
(
configs
)
-
1
):
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