Skip to content

Commit 0c2fd86

Browse files
committed
Check that the feedforward part of tracy is OK
1 parent 5db828b commit 0c2fd86

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

traj_upload.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,10 @@ def convert_from_molly(traj, start_timestamp):
5252
if __name__ == '__main__':
5353
import time
5454
now = time.time()
55-
p1 = TrajectoryPoint(x=1., y=2., theta=3., speed=10., omega=4., timestamp=now+10)
56-
p2 = TrajectoryPoint(x=1., y=2., theta=3., speed=11., omega=4., timestamp=now+1000)
55+
SAMPLE_INTERVAL = 0.1
5756

58-
traj = [p1, p2]
57+
traj = [TrajectoryPoint(x=0., y=0., theta=0., speed=i*0.02, omega=i*0.4,
58+
timestamp=now + i * SAMPLE_INTERVAL)
59+
for i in range(10)]
5960

6061
send_traj(('192.168.2.20', 20000), traj)

0 commit comments

Comments
 (0)