-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Gerson Fernando Budke <[email protected]>
- Loading branch information
Showing
4 changed files
with
121 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,108 @@ | |
|
||
Zephyr Behaviour Tree | ||
##################### | ||
|
||
This repository is the Zephyr Behavior Tree module. | ||
|
||
Preparation | ||
*********** | ||
|
||
The first step is prepare the development machine. The developer must follow the | ||
steps at `Zephyr RTOS getting started`_. The recommendation is test using the | ||
``native_posix`` board. In this case, the last step from procedure should try | ||
using this command: | ||
|
||
.. code-block:: console | ||
cd ~/zephyrproject/zephyr | ||
.. code-block:: console | ||
west build -b native_posix samples/hello_world -t run | ||
The second step is add your credentials to github. This will add necessary | ||
permissions to clone using ssh and send changes. The github documentation can | ||
be accessed at `Connecting to GitHub with SSH`_. | ||
|
||
.. _Zephyr RTOS getting started: | ||
https://docs.zephyrproject.org/latest/develop/getting_started/index.html | ||
|
||
.. _Connecting to GitHub with SSH: | ||
https://docs.github.com/en/authentication/connecting-to-github-with-ssh | ||
|
||
How to clone | ||
************ | ||
|
||
First, create your ``root`` directory, for instance: | ||
|
||
.. code-block:: console | ||
mkdir $HOME/zephyrbt | ||
.. code-block:: console | ||
cd $HOME/zephyrbt | ||
The next step is create a ``python virtual environment`` with the ``west`` tool: | ||
|
||
.. code-block:: console | ||
python3 -m venv .venv | ||
.. code-block:: console | ||
source .venv/bin/activate | ||
.. code-block:: console | ||
pip install west | ||
Then, initialize ``zephyrbt`` root folder: | ||
|
||
.. code-block:: console | ||
west init -m [email protected]:ossystems/zephyrbt | ||
.. code-block:: console | ||
west update | ||
Make sure that all requirements are meet: | ||
|
||
.. code-block:: console | ||
pip install -r deps/zephyr/scripts/requirements.txt | ||
.. code-block:: console | ||
pip install -r zephyrbt/scripts/requirements.txt | ||
Examples | ||
******** | ||
|
||
* The `Minimal`_ is an example how to use the ZephyrBT without any IDE. | ||
* The `Dynamic`_ uses their own thread and generate data and stubs from `Groot2`_ IDE. | ||
* The ``Tutorial`` guide you step by step on ZephyrBT (comming soon). | ||
|
||
.. _Minimal: | ||
https://github.com/OSSystems/ZephyrBT/blob/master/samples/subsys/zephyrbt/minimal/README.rst | ||
|
||
.. _Dynamic: | ||
https://github.com/OSSystems/ZephyrBT/blob/master/samples/subsys/zephyrbt/dynamic/README.rst | ||
|
||
.. _Tutorial: | ||
https://github.com/OSSystems/ZephyrBT/blob/master/samples/subsys/zephyrbt/tutorial/README.rst | ||
|
||
.. _Groot2: | ||
https://www.behaviortree.dev/groot/ | ||
|
||
Tests | ||
***** | ||
|
||
To execute the tests just run twister pointing the TESTSUITE_ROOT to your $HOME/zephyrbt | ||
folder. | ||
|
||
.. code-block:: console | ||
west twister -T zephyrbt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
stringcase |