Kinect

This sensor emulates the kinect output, ie both a depth image and an rgba image.

Configuration parameters for kinect

No configurable parameter.

Data fields

This sensor exports these datafields at each simulation step:

  • depth (memoryview, initial value: none)

    See doc:depth camera documentation <../sensors/depth_camera> for field image

  • video (buffer, initial value: none)

    See video camera documentation for field image

Interface support:

  • ros as XYZRGBPublisher (morse.middleware.ros.kinect.XYZRGBPublisher)

Services for Kinect

  • get_local_data() (blocking)

    Returns the current data stored in the sensor.

    • Return value

      a dictionary of the current sensor’s data

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 sensor
kinect = Kinect()

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

robot.append(kinect)

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

env = Environment('empty')

Other sources of examples

(This page has been auto-generated from MORSE module morse.sensors.kinect.)

Table Of Contents

Previous topic

Inertial measurement unit

Next topic

Laser Scanner Sensors

This Page