TSID based controllers
The TSID Framework is a robotics software package built on top of the Task-Space Inverse Dynamics (TSID) library. This framework leverages the TSID library to implement controllers for robot manipulation and motion planning.
The TSID Framework is a collection of ros2_controllers that allow the user to control the arms of TIAGo Pro in position interface (articular and Cartesian) and in velocity inteface (articular and Cartesian). Additionally, there is a contoller in torque that uses the readings of the F/T sensor to adapt the position of the end-effector to the forces exerted there.
Apart from being a useful tool for the general usage of the robot, these controllers serve as tutorials on
- Integrate third party software
- Manage arrival to joint limits
- Use the readings of additional hardware (here the F/T sensors)
The controllers in this package have some non-trivial characteristics
- The position interface controllers allow to set ths speed of the motion as a fraction of the maximal velocity allowed. This fraction is a unique parameter for both joint and Cartesian motion
- The velocity interface controllers deal with joint limits as follows: As soon as an axis decelerates to stop at its software joint limit, all other axes also decelerate to stop. The controller is then waiting for new instructions. Once the axis has reached its joint limit, the motion in the other joints is only possible if a command moves the joint at its limit out of it.
TSID controllers¶
The tiago_pro_controller_configuration package contains a launchfile to load all the available TSID-based controllers for TIAGo Pro.
By default the ones that are loaded are
- A position and velocity controller for the torso joint. These control the prismatic torso joint and are called
- torso_joint_space_controller, and
- torso_joint_space_vel_controller
- A position joint and Cartesian space controllers and per arm (see Figure 1), and
- A velocity joint and Cartesian space controllers and per arm (see Figure 2).
The Cartesian controllers can be commanded both in the end-effector and robot frame, and there is one controller per frame.

Figure 1: TSID Framework arm position controllers.

Figure 2: TSID Framework arm velocity controllers.
Architecture of all controllers¶
All controllers in the TSID Framework share the same architecture. This is relevant especially in how the problems are written.
The usage of the TSID Library requires the user to write a quadratic problem that combines a set of tasks and equality and inequality constraints. Then, the controllers are either joint-space controller or a Cartesian controller, whose input is then a joint reference or an end-effector pose, respectively. The motion is always bounded in combinations of joint positions, velocities and even torque (or effort). These include, in particular the joint limits and how they are handled. See Figure 1.

Figure 1: TSID Framework Architecture.
This figure provides a blueprint to understand how the problems are defined per controller.
Quadratic problems of the controllers¶
Joint space position controller¶
Figure 2 shows the problem that is written according to the blueprint.

Figure 2: Joint space position controller.
This controller computes the desired acceleration starting from the desired position of the joints, $$ \dot{v}^d = \dot{v}^r -K_d\dot{e}-K_p e. $$ The quadratic problem allows to achieve the desired joint configuration while respecting the dynamics of the robot and all the kinematic constraints. The solved quadratic problem reads
Cartesian space position controller¶
Figure 3 shows the problem that is written according to the blueprint.

Figure 3: Cartesian space position controller.
This controller computes the desired cartesian acceleration starting from the desired cartesian pose, $$ \ddot{x}^d = \ddot{x}^r - PD(x - x^r) $$ The quadratic problem allows to achieve the desired pose while respecting the dynamics of the robot and all the kinematic constraints . The solved quadratic problem reads
Joint space velocity controller¶
Figure 4 shows the problem that is written according to the blueprint.

Figure 2: Joint position space controller.
This controller computes the desired acceleration starting from the desired velocity of the joints, $$ \dot{v}^d = \dot{v}^r -K_d\dot{e}-K_p e. $$ The quadratic problem allows to achieve the desired joint velocity while respecting thedynamics of the robot and all the kinematic constraints. The solved quadratic problem reads
Cartesian space velocity controller¶
Figure 3 shows the problem that is written according to the blueprint.

Figure 3: Cartesian space velocity controller.
This controller computes the desired cartesian acceleration through a PID of the cartesian velocity error, compensating for the gravity acceleration, $$ \ddot{x}^d = \ddot{x}^r - PD(x - x^r) $$ The quadratic problem allows to achieve the desired velocity while respecting the dynamics of the robot and all the kinematic constraints. The solved quadratic problem reads