Commit 3bccce9c authored by Joseph Mirabel's avatar Joseph Mirabel
Browse files

Make demo darpa_hyq Python 3 compatible.

parent 66e5a373
......@@ -103,7 +103,7 @@ def genPlan(stepsize=0.06):
start = time.time()
configs = fullBody.interpolate(stepsize, 5, 0., filterStates = True,testReachability = False)
end = time.time()
print "Contact plan generated in " + str(end-start) + "seconds"
print("Contact plan generated in " + str(end-start) + "seconds")
def contactPlan(step = 0.5):
v.client.gui.setVisibility("hyq", "ON")
......@@ -115,6 +115,6 @@ def contactPlan(step = 0.5):
time.sleep(step)
print "Root path generated in " + str(tp.t) + " ms."
print("Root path generated in " + str(tp.t) + " ms.")
genPlan(0.01);contactPlan(0.01)
......@@ -57,7 +57,7 @@ t = ps.solve ()
if isinstance(t, list):
t = t[0]* 3600000 + t[1] * 60000 + t[2] * 1000 + t[3]
print "computation time for root path ", t
print("computation time for root path ", t)
# Playing the computed path
from hpp.gepetto import PathPlayer
......
Markdown is supported
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