Skip to content
Snippets Groups Projects
Commit 3d93d965 authored by Pierre Fernbach's avatar Pierre Fernbach
Browse files

[tools] moveSphere can now take a pos+quaternion input

parent fd4bbe70
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment