This is a guide on how to integrate an external Force/Torque sensor with the robot controller, e.g. by developing a URCap.
From SW 3.3 and newer it is possible to feed external force/torque measurements into the robot controller, and use this input as an alternative to the internal measurements in e.g. force mode.
The feature is enabled and disabled with a special script command and the force/torque measurements can be streamed into the robot controller using the RTDE interface as described below.
The functionality can be integrated in a URCap for easy installation of external F/T sensors on Universal Robots.
Feeding F/T measurements into the robot controller
The RTDE interface, described in this article, can be used for feeding F/T measurements into the real-time control loop of the robot.
A special input variable should be used for this purpose:
Name: external_force_torque
Type: VECTOR6D
Script functions for using an external F/T sensor in the robot controller.
enable_external_ft_sensor(enable, sensor_mass = 0.0, sensor_measuring_offset = [0.0, 0.0, 0.0], sensor_cog = [0.0, 0.0, 0.0])
This function is used for enabling and disabling the use of external F/T measurements in the controller.
If no other RTDE watchdog has been configured (using script function rtde_set_watchdog, see URScript manual), a default watchdog will be set to a 10Hz minimum update frequency when the external F/T sensor functionality is enabled. If the update frequency is not met the robot program will pause.
Parameters
- enable: enable or disable feature (bool)
- sensor_mass: mass of the sensor in kilograms (float)
- sensor_measuring_offset: [x, y, z] measuring offset of the sensor in meters relative to the tool flange frame
- sensor_cog: [x, y, z] center of gravity of the sensor in meters relative to the tool flange frame
Remark: the TCP Configuration in the installation must also include the weight and offset contribution of the sensor.