Skip to content

Commit

Permalink
updated description in index.rst
Browse files Browse the repository at this point in the history
Signed-off-by: Stefano Bernagozzi <[email protected]>
  • Loading branch information
ste93 committed May 21, 2024
1 parent e573154 commit db7148f
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,34 @@
CONVINCE model2code Documentation
==================================
Welcome to the model2code tool documentation.
This is the documentation for the CONVINCE model2code tool. The tool is developed as part of the CONVINCE project.
The tool is used mainly to generate skill level code starting from an SCXML model.
The inputs of the program are:
- an SCXML model that describes the behavior of the skill,
- an XML file that describes the full model of the program, which includes the behavior tree, the skills and the components used in the system,
- an XML file that describes the interfaces used between behavior tree and skills, and between skills and components.

The output of the program is composed of:

- a C++ file that contains the code of the skill,
- an header file that contains the declaration of the skill.

the output above is only if the datamodel is ecmascript, otherwise you will need to add the parameter ``--datamodel_mode`` in order to generate also the C++ datamodel files.
In this case you will get 2 other files:

- a C++ file that contains the code of the datamodel,
- an header file that contains the declaration of the datamodel.

In order to complete the code generation you need to write a CMakeLists.txt file that includes the generated files, a main file that includes the skill header and a package.xml in order to create a ROS package.


The parameters required to run the program are:

- ``--input_filename`` : the path to the SCXML file that describes the behavior of the skill,
- ``--model_filename`` : the path to the XML file that describes the full model of the program,
- ``--interface_filename`` : the path to the XML file that describes the interfaces used.

by default the program will generate the code in the directory where the SCXML file passed by the parameter ``--input_filename`` is located, but you can specify a different directory by using the parameter ``--output_path``.


Contents
----------
Expand Down

0 comments on commit db7148f

Please sign in to comment.