A set of example scripts based on the poppy-robot-cli/core modules dedicated to Poppy Ergo Jr.
These examples requires the Poppy software ^v4.0.0 installed on robot.
-
Clone this repository anywhere on your computer:
git clone https://github.com/nbarikipoulos/poppy-examples.git
-
Open a terminal in this folder and type:
npm install
-
Then, to launch any of these examples, simply type:
node path_to_script_file [option]
to execute them.
name | desc. | option |
---|---|---|
basic.js | A first example introducing to script writing. | Duration of the script (in s). Default is 5s. |
tetris.js | A more 'real-life' case. | Duration of each step (in s). Default is 1s. |
led.js | Let's blink and activate the led of the motors to move. | Color of the led (defaut is green). |
- Nicolas Barriquand (nbarikipoulos)
- Code is MIT licensed. See LICENSE.