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
3d93d965
Commit
3d93d965
authored
Sep 15, 2019
by
Pierre Fernbach
Browse files
[tools] moveSphere can now take a pos+quaternion input
parent
fd4bbe70
Changes
1
Hide whitespace changes
Inline
Side-by-side
script/tools/display_tools.py
View file @
3d93d965
...
...
@@ -8,7 +8,12 @@ def createSphere(name,r,size=0.01,color=[0,0,0,1]):
r
.
client
.
gui
.
refresh
()
def
moveSphere
(
name
,
r
,
pos
):
q
=
pos
+
[
1
,
0
,
0
,
0
]
if
len
(
pos
)
==
3
:
q
=
pos
+
[
1
,
0
,
0
,
0
]
elif
len
(
pos
)
==
7
:
q
=
pos
else
:
raise
ValueError
(
"pos should be of size 3 or 7 "
)
r
.
client
.
gui
.
applyConfiguration
(
name
,
q
)
r
.
client
.
gui
.
refresh
()
...
...
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