In this repository, you will find the code related to the examples and experiments of the paper:
"Handling Concurrency in Behavior Trees"
Submitted at Transactions on Robotics by Michele Colledanchise and Lorenzo Natale.
Note: To run the alternative methods used in the comparative experiments (Experiments 3 and 4), check the related readmes in the folder comparisons
Qt5 (You may need to install Qt5Charts separately by running: `sudo apt install libqt5charts5-dev)
Groot (optional)
Open a terminal and clone the repository
$ cd /path/to/folder
$ git clone https://github.com/miccol/tro2020-code.gitOnce you have the repository, compile the library:
In Unix-based operating system, open a terminal and run the following commands:
$ cd /path/to/folder/
$ mkdir ./build
$ cd build
$ cmake ..
$ makeIn Windows, run Cmake.
Open the visual studio solution file (.sln)
In the build folder, run:
$./simple_demosIn the terminal, you should see the following message:
then should see information about the execution as the following:
At the end of the execution, a window should popup as the following:
To run the examples of the experiments of the paper, just run the corresponding binary file.
E.g to run Experiment1 run:
$ ./experiment1Open Groot in monitor mode, then run:
$ ./simple_demo_with_grootIn Groot, you should see the following BT running:
the file simple_demos.cpp shows an example of how to use the library, with an example
The MIT License (MIT)
Copyright (c) 2021 Michele Colledanchise
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.