Commit 4914ee93 authored by Jayant Khatkar's avatar Jayant Khatkar
Browse files

increase frame rate when watching plan

parent f29a4c68
......@@ -135,14 +135,15 @@ class Plan:
watch plan in pybullet GUI (sped up)
frame_rate = 60
t_max = max([self.cumul_time[r][-1] for r in self.cumul_time])
speed = t_max/t
tsteps = int(t/0.1)
tsteps = int(t*frame_rate)
for t in range(tsteps):
for r in range(self.n):
j = self.jointsAtTime(t*speed*0.1, r)
j = self.jointsAtTime(t*speed/frame_rate, r),j)
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