Skip to content

KenN7/argos-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

dc88da6 · Jun 24, 2021

History

30 Commits
Oct 26, 2016
Nov 18, 2016
Sep 19, 2016
Jun 24, 2021
Sep 19, 2016
Sep 20, 2016
Nov 18, 2016
Nov 18, 2016
Nov 12, 2016
Nov 12, 2016
Nov 12, 2016
Nov 16, 2016
Jun 24, 2021
Jun 24, 2021
Nov 18, 2016
Nov 18, 2016

Repository files navigation

argos-python

How to use

copy all files in the plugin folder of argos simulator then build.

Building instructions

You need at least boost, boost-libs, cmake, gcc, python3. Compliling tested on archlinux only.

cd argos-python
cmake .
make

Controller

Now you use the python_controller in your .argos configuration like so :

<python_controller id="whatever" library="/path/to/compiled/libpy_controller_interface.so">

don't forget to also add :

<params script="/path/to/script.py" />

at the end of controller section

python script

based on the test.py file, use the embedded functions (controlstep, init, destroy, reset...) the global object "robot" is the one where there should be all the methods for the robot.

For now only the steering actuator works so it's kind of useless ;) ^^