Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
quickstart_instructions_for_buzz_argos [2016/04/09 22:05] – [ARGoS + Buzz] root | quickstart_instructions_for_buzz_argos [2016/04/10 00:13] (current) – removed ilpincy | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== ARGoS + Buzz quick start ===== | ||
- | ==== Installing ARGoS ==== | ||
- | |||
- | [[http:// | ||
- | |||
- | To install ARGoS, go to http:// | ||
- | |||
- | ==== Installing Buzz ==== | ||
- | |||
- | Compile and install Buzz following the instructions reported in the [[https:// | ||
- | |||
- | ==== ARGoS + Buzz ==== | ||
- | |||
- | === Integration: | ||
- | |||
- | The Buzz integration library for ARGoS is composed of two elements: | ||
- | |||
- | - A set of ARGoS controllers. At the moment, available controllers include one for the [[http:// | ||
- | - A special definition of ARGoS' QtOpenGL user functions, which allow Buzz scripts to draw in the OpenGL visualization of ARGoS. With these, a developer can write debugging information on top of each robot. | ||
- | |||
- | To have ARGoS find the Buzz integration library in case you installed it in a non-default location, set the environment variable '' | ||
- | |||
- | <code bash> | ||
- | $ export ARGOS_PLUGIN_PATH=/ | ||
- | </ | ||
- | |||
- | If you installed Buzz without specifying a custom installation prefix (e.g., using only '' | ||
- | |||
- | === Defining an ARGoS experiment file === | ||
- | |||
- | To use ARGoS and Buzz together, define your '' | ||
- | |||
- | However, instead of a custom controller, in the ''< | ||
- | |||
- | <code xml> | ||
- | < | ||
- | |||
- | < | ||
- | < | ||
- | < | ||
- | < | ||
- | < | ||
- | </ | ||
- | < | ||
- | < | ||
- | </ | ||
- | <params bytecode_file=" | ||
- | </ | ||
- | |||
- | < | ||
- | < | ||
- | < | ||
- | < | ||
- | </ | ||
- | < | ||
- | < | ||
- | < | ||
- | </ | ||
- | <params bytecode_file=" | ||
- | </ | ||
- | |||
- | </ | ||
- | </ | ||
- | |||
- | To activate drawing, use '' | ||
- | |||
- | <code xml> | ||
- | < | ||
- | < | ||
- | < | ||
- | </ | ||
- | </ | ||
- | </ | ||
- | |||
- | You can launch ARGoS as usual, with the command: | ||
- | |||
- | <code bash> | ||
- | $ argos3 -c myexperiment.argos | ||
- | </ | ||
- | |||
- | Make sure the paths of the Buzz files (e.g., '' | ||
- | |||
- | === Writing debug information === | ||
- | |||
- | The Buzz integration library offers a command, called '' | ||
- | |||
- | <code buzz> | ||
- | x = 10 | ||
- | debug(" | ||
- | </ | ||
- | |||
- | This will print '' |