platform API examples

Following listing presents how to use robot's platform module using robot structure.

//utilizing robot platform movement is very easy, we simply call different body slots
robot.body.x.speed = 100; // set longitudinal speed 100 [mm/s]. 
robot.body.stop; // stop robot. 
robot.body.yaw.speed = 10; // set rotation speed 10 [deg/s]. 
robot.body.stop; // stop robot. 
//
robot.body.laser.getClosest(-30,30); // returns angle distance to the nearest object from -30 to 30 angle view

 

 

EMYS and FLASH are Open Source and distributed according to the GPL v2.0 © Rev. 0.9.1, 15.05.2017

FLASH Documentation