Commit 3d93d965 authored by Pierre Fernbach's avatar Pierre Fernbach
Browse files

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

parent fd4bbe70
...@@ -8,7 +8,12 @@ def createSphere(name,r,size=0.01,color=[0,0,0,1]): ...@@ -8,7 +8,12 @@ def createSphere(name,r,size=0.01,color=[0,0,0,1]):
r.client.gui.refresh() r.client.gui.refresh()
def moveSphere(name,r,pos): def moveSphere(name,r,pos):
if len(pos) == 3:
q=pos+[1,0,0,0] 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.applyConfiguration(name,q)
r.client.gui.refresh() r.client.gui.refresh()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment