The purpose of this component is to link together one or more cameras, and provide them with the possibility to move together as a single unit. It will also provide the connection interface to use the information of the cameras attached to it. In the case of two cameras, it will provide the stereo information generated from the two camera images.
No configurable parameter.
This sensor exports these datafields at each simulation step:
number of seconds in simulated time
Returns the properties of a component.
a dictionary of the current component’s properties
Returns the current data stored in the sensor.
a dictionary of the current sensor’s data
Modify one property on a component
The service takes an integer an argument and dispatch the call to all its individual cameras. The service ends when each camera has terminated its work.
Returns the configurations of a component (parsed from the properties).
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 sensor stereounit = StereoUnit() # place your component at the correct location stereounit.translate(<x>, <y>, <z>) stereounit.rotate(<rx>, <ry>, <rz>) robot.append(stereounit) # define one or several communication interface, like 'socket' stereounit.add_interface(<interface>) env = Environment('empty')