A simple sound actuator

This actuator is a simple On/Off sound. Based on Sound actuator.

Configuration parameters for sound

No configurable parameter.

Data fields

This actuator reads these datafields at each simulation step:

  • mode (string, initial value: stop)

    mode, enum in [‘play’,’pause’,’stop’]

Interface support:

(attention, no interface support!)

Services for Sound

  • get_configurations() (blocking)

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

    • Return value

      a dictionary of the current component’s configurations

  • get_properties() (blocking)

    Returns the properties of a component.

    • Return value

      a dictionary of the current component’s properties


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

from morse.builder import *

robot = ATRV()

# creates a new instance of the actuator
sound = Sound()

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


# define one or several communication interface, like 'socket'

env = Environment('empty')

Other sources of examples

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

Table Of Contents

Previous topic

Rotorcraft Waypoint motion controller

Next topic

Stabilized Flight for quadrotor

This Page