Force/Torque Motion Controller

Motion controller using force and torque

This class will read force and torque as input from an external middleware. The forces and torques are transformed from the actuator frame to the parent robot frame and then applied to the robot blender object. If the property RobotFrame is set to True it will be applied directly in the robot frame without changes.

Configuration parameters for force/torque motion controller

You can set these properties in your scripts with <component>.properties(<property1> = ..., <property2>= ...).

  • RobotFrame (bool, default: False)

    If set to true the inputs are applied in the Robot coordinate frame instead of the actuator frame.

Data fields

This actuator reads these datafields at each simulation step:

  • force (vec3<float>, initial value: [0.0, 0.0, 0.0])

    force along x, y, z

  • torque (vec3<float>, initial value: [0.0, 0.0, 0.0])

    torque around x, y, z

Interface support:

  • ros as WrenchReader (morse.middleware.ros.force_torque.WrenchReader)

Services for Force/Torque Motion Controller

This component does not expose any service.

Examples

The following example shows how to use this component in a Builder script:

from morse.builder import *

robot = ATRV()

# creates a new instance of the actuator
forcetorque = ForceTorque()

# place your component at the correct location
forcetorque.translate(<x>, <y>, <z>)
forcetorque.rotate(<rx>, <ry>, <rz>)

robot.append(forcetorque)

# define one or several communication interface, like 'socket'
forcetorque.add_interface(<interface>)

env = Environment('empty')

Other sources of examples

(This page has been auto-generated from MORSE module morse.actuators.force_torque.)