Skip to content

miccol/TRO2021-code

Repository files navigation

Simulated Experiments for the paper: Handing Concurrency in Behavior Trees

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

Dependencies

BehaviorTree.CPP

Qt5 (You may need to install Qt5Charts separately by running: `sudo apt install libqt5charts5-dev)

Groot (optional)

Setup

Open a terminal and clone the repository

$ cd /path/to/folder
$ git clone https://github.com/miccol/tro2020-code.git

Once you have the repository, compile the library:

Gnu/Linux or MacOS

In Unix-based operating system, open a terminal and run the following commands:

$ cd /path/to/folder/
$ mkdir ./build
$ cd build
$ cmake ..
$ make

Windows

In Windows, run Cmake. Open the visual studio solution file (.sln)

Check your build

In the build folder, run:

$./simple_demos

In 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:

Run the examples and the experiments:

To run the examples of the experiments of the paper, just run the corresponding binary file.

E.g to run Experiment1 run:

$ ./experiment1

Run the example with Groot

Open Groot in monitor mode, then run:

$ ./simple_demo_with_groot

In Groot, you should see the following BT running:

Use the library

the file simple_demos.cpp shows an example of how to use the library, with an example

LICENSE

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published