Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
tutorials:beginner:controlling_turtlesim_2 [2019/07/09 18:06] – [The code] gkazhoyatutorials:beginner:controlling_turtlesim_2 [2022/02/21 10:08] (current) – [Fluents] schimpf
Line 231: Line 231:
 Let's see if we can also move the turtle from Lisp. Try the following: Let's see if we can also move the turtle from Lisp. Try the following:
 <code lisp> <code lisp>
-TUT> (dotimes (i 10) (send-vel-cmd 1 1) (sleep 1))+TUT> (dotimes (i 10) (send-vel-cmd 1 1) (wait-duration 1))
 </code> </code>
 We use the ''send-vel-cmd'' function that we defined in ''control-turtlesim.lisp''. We send the same command 10 times, once every second. The turtle should now move along a circle. We use the ''send-vel-cmd'' function that we defined in ''control-turtlesim.lisp''. We send the same command 10 times, once every second. The turtle should now move along a circle.