Joystick Actuator

A ‘fake’ actuator that allows to move a robot from the joystick.

This actuator does not require a connection with external data. It simply responds to the joystick to generate movement instructions for the robot attached.

Configuration parameters for Joystick Actuator

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

  • ControlType (string, default: "Velocity")

    Kind of control to move the parent robot, in [‘Position’, ‘Velocity’, ‘Differential’]

  • Speed (float, default: 1.0)

    Movement speed of the parent robot, in m/s

Data fields

No data field documented (see above for possible notes).

Services for Joystick Actuator

  • get_properties() (blocking)

    Returns the properties of a component.

    • Return value

      a dictionary of the current component’s properties

  • set_property(prop_name, prop_val) (blocking)

    Modify one property on a component

    • Parameters

      • prop_name: the name of the property to modify (as shown the documentation)
      • prop_val: the new value of the property. Note that there is no checking about the type of the value so be careful
    • Return value


  • get_configurations() (blocking)

    Returns the configurations of a component (parsed from the properties).

    • Return value

      a dictionary of the current component’s configurations


The following examples show how to use this component in a Builder script:

from morse.builder import *

# adds a default robot (the MORSE mascott!)
robot = Morsy()

# creates a new instance of the joystick actuator
joystick = Joystick()

env = Environment('empty')

# Run this simulation: you can move the robot with your joystick.

Other sources of examples

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

Table Of Contents

Previous topic


Next topic

Keyboard Actuator

This Page