Keyboard Actuator

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

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

When parented to a robot, the user can press the arrow keys to modify the linear and angular velocities (V, W) of the robot.

Up forward Down backwards Left turn left Right turn right

Configuration parameters for keyboard actuator

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

  • 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 Keyboard Actuator

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
keyboard = Keyboard()

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

robot.append(keyboard)

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

env = Environment('empty')

Other sources of examples

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

Table Of Contents

Previous topic

Gripper

Next topic

Light

This Page