Differences

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

Link to this comparison view

lua_examples [2010/02/10 21:46]
hadrien
lua_examples [2010/02/10 21:59] (current)
hadrien
Line 12: Line 12:
 -- Fetch a FreeMove object from the "​HBot"​ robot -- Fetch a FreeMove object from the "​HBot"​ robot
 freemove = FreeMove("​HBot"​) freemove = FreeMove("​HBot"​)
 +
 +-- Engage freemove: set translation and rotation to true
 +freemove:​engage(true,​ true)
  
 -- Move forward at full speed for 3 seconds -- Move forward at full speed for 3 seconds
Line 48: Line 51:
 --  u: stop --  u: stop
 kbd:run() kbd:run()
 +
 +-- no need to engage, kbd:run does it automatically
 </​file>​ </​file>​
  
 
lua_examples.txt ยท Last modified: 2010/02/10 21:59 by hadrien
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS La rache Driven by DokuWiki