In the following, we quickly demonstrate how to run a test with sot-talos-balance.
First of all, you need to start the simulation.
To start Gazebo, load a scene and spawn Talos, the simplest way is to directly use the launch file provided by PAL, without een using sot-talos-balance
Notice that this will spawn Talos at configuration zero. This is not always what you want. The package sot-talos-balance offers different launch files to spawn it at different configurations.
Most commonly, you might want to spawn the robot in the half-sitting position
If you ever need a different configuration, all you have to do is taking talos_gazebo_half_sitting.launch, copying it with a different name and modifying it.
To start the SoT in simulation in position mode:
First of all, you need to go to the folder where your script is. For instance, for running the standard tests of sot-talos-balance, assuming you are in the root directory:
Then, you can just run the chosen test. For instance:
This will launch a test routine executing a sinusoid and raising the foot.
The test that needs to be run in order o execute your own prerecorded movement is
where [testfolder]
contains the following files:
where the CoM and the ZMP are in the following format:
the feet are
and the waist
Pay attention that the lines of each file should not have trailing whitespace. Actually, the velocity and acceleration information are only really needed for the CoM. For all other quantities, these values are not really employed, but they are needed due to how nd-trajectory-generator is implemented. You can set this quantities arbitrarily to zero.
If you are running a simulation, folder [testfolder]
can be anyways in your computer. If you are running an experiment on the robot, folder [testfolder]
must be installed somewhere on the robot itself.
A quick-and-dirty way of installing new motions in the robot is putting them in sot-talos-balance. In this case, you have to put it in
This way, when executing (see the installation page)
it will automatically be copied to
which will then be copied to the robot when you update sot-talos-balance on it.
If you which, you can access the motions in sot-talos-balance without specifying the full path, by doing
which will automatically look in
If you want to dynamically interact with the graph
More information on how to use the SoT and how to work on Talos can be found in the robot wiki page (you need LAAS permissions to access this).