Skip to content

Tutorial 2: TeMoto Config

Robert edited this page Apr 3, 2023 · 10 revisions

Overview

TeMoto configuration package, or TeMoto config in short, organizes all your application specific assets as a single neat ROS package. These assets include:

  • Configuration files
  • TeMoto actions
  • UMRF graphs
  • Custom scripts and source files
  • etc.

The idea is that each robot you set up TeMoto for has its dedicated TeMoto config. Therefore we highly recommend to create and use a TeMoto configuration package as the basis of your TeMoto setup.

Note: As each robot is expected to have a unique TeMoto config name, this name is by default used as a ROS namespace of robot-specific ROS nodes and topics. For example, when launching temoto.launch without any further arguments, then the name of the TeMoto config is assumed to be the namespace.

Generate a TeMoto Config Package

Open a terminal window and type:

rosrun temoto_workspace_generator generate_workspace <custom-temoto-config> <path>

It generates a TeMoto config package with the name at your desired location.

Since TeMoto config is a ROS package, the following makes the most sense:

# Navigate to the source folder of your catkin workspace
cd <catkin-ws>
rosrun temoto_workspace_generator generate_workspace custom_temoto_config src

# Don't forget to build and source your catkin workspace
catkin build
source devel/setup.bash

Structure of TeMoto Config

TeMoto config package has following folder structure:

custom_temoto_config/
|__temoto_actions/
|__umrf_graphs/
|__custom_temoto_config/
     |__config/
     |__launch/
     |    |__action_assistant.launch
     |    |__temoto.launch
     |__CMakeLists.txt
     |__package.xml

where

  • custom_temoto_config/custom_temoto_config: Contains the launch files to launch TeMoto and the Action Assistant, as well as config folder where, e.g., Component Manager, Robot Manager or other configuration files can be stored.

  • custom_temoto_config/temoto_actions: The default directory where the Action Assistant will generate the TeMoto Actions.

  • custom_temoto_config/umrf_graphs: The default directory where the Action Assistant will generate the UMRF graphs.


Next: Tutorial 3 - "Actions"

Clone this wiki locally