Instead of repeating a similar experience as in the previous tutorials, this tutorial will show how we can load the task from a configuration file written in JSON or YAML. In fact, this will be applicable to any task in the framework.
Loading the task from disk
Note: for now, this is only available on the C++ side.
To simplify this tutorial, we will consider that you have created a file task.json (resp. task.yaml) that is available in the directory /my/path/. In real-life, you could use CMake to install the file and provide the installation directory to your controller but this would make the tutorial more complex that it needs to be.
The taks description file we will use will look like this:
You can use this task as if you had created it manually, this is a great way to experiment with task settings.
Give me more tasks
The JSON/YAML documentation on this website shows all the tasks that can be loaded by the framework and what is expected in their JSON/YAML representation to be loaded correctly.