The 6 signals of the load connector are interpreted as the x-, y- and z-coordinates of a force and as the x-, y-, and z-coordinates of a torque resolved in the world frame and acting at the frame connector to which this component is attached. The input signals are mapped to the force and torque in the following way:
force = load[1:3] torque = load[4:6]
The force and torque are by default visualized as an arrow (force) and as a double arrow (torque) acting at the connector to which they are connected. The diameters and colors of the arrows are fixed and can be defined via parameters forceDiameter, torqueDiameter, forceColor and torqueColor. The arrows point in the directions defined by the inPort.signal signals. The lengths of the arrows are proportional to the length of the force and torque vectors, respectively, using parameters N_to_m and Nm_to_m as scaling factors. For example, if N_to_m = 100 N/m, then a force of 350 N is displayed as an arrow of length 3.5 m.
An example how to use this model is given in the following figure:
This leads to the following animation