Skip to content

Latest commit

 

History

History
78 lines (50 loc) · 4.11 KB

teo-post-install.md

File metadata and controls

78 lines (50 loc) · 4.11 KB

Simulation and Basic Control: Now what can I do?

Now that you have installed the basic TEO repository, you're probably wondering what to do.

Initializing the communication server

Our current implementation uses YARP for communication. Basic use of YARP requires the use of a centralized server. This server associates the low-level implementation of the communication ports with the names we give them. Before executing any TEO program or application, please launch a yarp server:

[terminal 1] yarp server

Launching the simulator

Launch with a single command:

[terminal 2] teoSim

You should get a window similar to the one depicted on Figure 1.

Fig. 1 - An instance of the teoSim program.

Changing parameters

Each layer of TEO programs has parameters that can be modified three different ways. They are parsed in the following order (the second parsing overwrites the first, and the third one overwrites both):

  • Default parameters defined in the class header files (*.h or *.hpp extension). You must recompile the project if you change any of these parameters.
  • Configuration files (*.ini or *.xml extension). These files are downloaded from kinematics-dynamics/share and installed to kinematics-dynamics/build/share/teo with the cmake command we issued. Within this folder, separate folders are maintained for programs and program layers.
  • Command line (on program execution). Parameters may be modified executing a program using the following format: ./program --parameter new_value.

Let's say, for example, our graphic card supports offscreen rendering and we want teoSim to load an enviroment that has cameras in the simulated environment. We can execute the program touching the parameters at the command line level which, as we have said, are parsed last:

[terminal 2] teoSim --env teo_kitchen_cameras.env.xml

This specific environment contains simulated cameras that Figure 2. You can learn how to make the connections in the testRaveBot documentation.

\image html ravebotCompare.png

We can actually see the default parameters, and the final selected ones, with the --help parameter:

[terminal 2] teoSim --env teo_kitchen_cameras.env.xml --help

If we want to affect this parameter at a more persistent level, we can change the configuration file. For this specific case, the teoSim configuration file is located at $ROBOTICSLAB_KINEMATICS_DYNAMICS_ROOT/app/teoSim/conf/teoSim.ini. In this file, we can see that most parameters are commented out (the // characters). This is a common convention to indicate these are the default parameters set in the headers (the first parsed, as explained previously). Here, we would search to subsitute the line:

// env teo_kitchen.env.xml           /// env [xml] environment name in abs or rel

With a new, uncommented line:

env teo_kitchen_cameras.env.xml           /// env [xml] environment name in abs or rel

Interfacing

We can interact with this program through port commands as described in testRaveBot and teoSim, or through the different language APIs as can be seen in the different TEO examples

Even more!

Done! You are now probably interested in one of the following links: