![]() Now run the Python program on your computer. Open the settings menu (the gear icon) and enable the SDK. To run the program we have to start the COZMO app on our smartphone connected with COZMO via wifi. Robot.turn_in_place(degrees(90)).wait_for_completed() Robot.drive_straight(distance_mm(150), speed_mmps(50)).wait_for_completed() import cozmoįrom cozmo.util import degrees, distance_mm, speed_mmpsĭef squaredrive(robot: ): Import the the basic SDK and the cozmo.utils for degrees, distance and speed. Open a new Python file and name it whatever you want, in my case drive.py. The first test program will COZMO let drive in a sqare with 150 mm and a speed of 50 mm/s. $ pip install 'cozmo' Your first Program: Let COZMO Drive in a Square Use pip to install the SDK within your venv. I used a Python virtual env to try it out. The SDK needs Python 3.5.1 or higher to run. In order to use the COZMO SDK for Python you need an iOS or Android smartphone with installed COZMO App, which is connected to the wifi network of the COZMO and at the same time tethered via USB cable to your computer. This setting sounds a bit strange but works quite well. ![]() My 10 years old son had no problems and started programming directly. Programming is also done with blocks, similar to Scratch. Both options are intuitive and easy to use on an iPad. The "Constructor "mode can be used to develop more complex programs. The "Sandbox" mode is a simple sequential block system similar to Lego Boost. There are three difficulty levels: the "Sandbox" mode, the "Constructor" mode and an SDK for Python. With an Android or iOS app you can program COZMO. You just have to love him!īut COZMO is not just an expensive technical toy. ANKI's developers have developed the robot in such a way that it reacts very naturally. ![]() When you see COZMO in interaction for the first time, you have to think of WALL-E, the little robot from the Pixar movie of the same name. A particularly funny way is to do it together with the little robot COZMO and its SDK for Python. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |