Show EOL distros:
Package Summary
Launch files to open an OpenNI device and load all nodelets to convert raw depth/RGB/IR streams to depth images, disparity images, and (registered) point clouds.
- Author: Patrick Mihelich
- License: BSD
- Source: hg https://kforge.ros.org/openni/openni_ros (branch: electric-devel)
Package Summary
Launch files to open an OpenNI device and load all nodelets to convert raw depth/RGB/IR streams to depth images, disparity images, and (registered) point clouds.
- Author: Patrick Mihelich
- License: BSD
- Source: hg https://kforge.ros.org/openni/openni_launch (branch: default)
Package Summary
Launch files to open an OpenNI device and load all nodelets to convert raw depth/RGB/IR streams to depth images, disparity images, and (registered) point clouds.
- Maintainer: Julius Kammerl <jkammerl AT willowgarage DOT com>
- Author: Patrick Mihelich
- License: BSD
- Source: git https://github.com/ros-drivers/openni_launch.git (branch: groovy-devel)
Package Summary
Launch files to open an OpenNI device and load all nodelets to convert raw depth/RGB/IR streams to depth images, disparity images, and (registered) point clouds.
- Maintainer: Julius Kammerl <jkammerl AT willowgarage DOT com>, Jon Binney <jbinney AT willowgarage DOT com>
- Author: Patrick Mihelich
- License: BSD
- Bug / feature tracker: https://github.com/ros-drivers/openni_launch/issues
- Source: git https://github.com/ros-drivers/openni_launch.git (branch: hydro-devel)
Package Summary
Launch files to open an OpenNI device and load all nodelets to convert raw depth/RGB/IR streams to depth images, disparity images, and (registered) point clouds.
- Maintainer status: maintained
- Maintainer: Isaac I.Y. Saito <130s AT 2000.jukuin.keio.ac DOT jp>
- Author: Patrick Mihelich
- License: BSD
- Bug / feature tracker: https://github.com/ros-drivers/openni_camera/issues
- Source: git https://github.com/ros-drivers/openni_camera.git (branch: indigo-devel)
Package Summary
Launch files to open an OpenNI device and load all nodelets to convert raw depth/RGB/IR streams to depth images, disparity images, and (registered) point clouds.
- Maintainer status: maintained
- Maintainer: Isaac I.Y. Saito <130s AT 2000.jukuin.keio.ac DOT jp>
- Author: Patrick Mihelich
- License: BSD
- Bug / feature tracker: https://github.com/ros-drivers/openni_launch/issues
- Source: git https://github.com/ros-drivers/openni_launch.git (branch: indigo-devel)
Package Summary
Launch files to open an OpenNI device and load all nodelets to convert raw depth/RGB/IR streams to depth images, disparity images, and (registered) point clouds.
- Maintainer status: maintained
- Maintainer: Isaac I.Y. Saito <130s AT 2000.jukuin.keio.ac DOT jp>
- Author: Patrick Mihelich
- License: BSD
- Bug / feature tracker: https://github.com/ros-drivers/openni_camera/issues
- Source: git https://github.com/ros-drivers/openni_camera.git (branch: indigo-devel)
Package Summary
Launch files to open an OpenNI device and load all nodelets to convert raw depth/RGB/IR streams to depth images, disparity images, and (registered) point clouds.
- Maintainer status: maintained
- Maintainer: Isaac I.Y. Saito <130s AT 2000.jukuin.keio.ac DOT jp>
- Author: Patrick Mihelich
- License: BSD
- Bug / feature tracker: https://github.com/ros-drivers/openni_camera/issues
- Source: git https://github.com/ros-drivers/openni_camera.git (branch: indigo-devel)
Package Summary
Launch files to open an OpenNI device and load all nodelets to convert raw depth/RGB/IR streams to depth images, disparity images, and (registered) point clouds.
- Maintainer status: maintained
- Maintainer: Isaac I.Y. Saito <130s AT 2000.jukuin.keio.ac DOT jp>
- Author: Patrick Mihelich
- License: BSD
- Bug / feature tracker: https://github.com/ros-drivers/openni_camera/issues
- Source: git https://github.com/ros-drivers/openni_camera.git (branch: indigo-devel)
Package Summary
Launch files to open an OpenNI device and load all nodelets to convert raw depth/RGB/IR streams to depth images, disparity images, and (registered) point clouds.
- Maintainer status: unmaintained (It is still usable for an old device i.e. MS Kinect, but for other openni devices, use openni2 instead.)
- Maintainer: Isaac I.Y. Saito <130s AT 2000.jukuin.keio.ac DOT jp>
- Author: Patrick Mihelich
- License: BSD
- Bug / feature tracker: https://github.com/ros-drivers/openni_camera/issues
- Source: git https://github.com/ros-drivers/openni_camera.git (branch: ros1)
openni_launch was introduced in Electric. Select a newer distro above.
New in Fuerte openni_launch is now a unary stack. In Electric it was a package in openni_kinect.
Contents
Overview
This package contains launch files for using OpenNI-compliant devices such as the Microsoft Kinect in ROS. It creates a nodelet graph to transform raw data from the device driver into point clouds, disparity images, and other products suitable for processing and visualization.
Quick start
Launch the OpenNI driver. This will launch the full constellation of nodelets:
roslaunch openni_launch openni.launch
To visualize in rviz:
rosrun rviz rviz
Set the Fixed Frame (top left of rviz window) to /camera_depth_optical_frame.
Add a PointCloud2 display, and set the topic to /camera/depth/points. Turning the background to light gray can help with viewing. This is the unregistered point cloud in the frame of the depth (IR) camera. It is not matched with the RGB camera images.
Alternatively you can view the disparity image:
rosrun image_view disparity_view image:=/camera/depth/disparity
Now let's look at a registered point cloud, aligned with the RGB data. Open the dynamic reconfigure GUI:
rosrun rqt_reconfigure rqt_reconfigure
And select /camera/driver from the drop-down menu. Enable the depth_registration checkbox.
Now go back to rviz, and change your PointCloud2 topic to /camera/depth_registered/points. Set Color Transformer to RGB8. You should see a color, 3D point cloud of your scene.
Again, you can view the registered disparity image:
rosrun image_view disparity_view image:=/camera/depth_registered/disparity
To view the color image from the RGB camera outside of rviz:
rosrun image_view image_view image:=/camera/rgb/image_color
or to view the grayscale image:
rosrun image_view image_view image:=/camera/rgb/image_mono
Error during launch
During the launch above, you might encounter the following error:
[ERROR] [1351028964.484342461]: Tried to advertise a service that is already advertised in this node [/camera/depth_registered/image_rect_raw/compressedDepth/set_parameters] [ERROR] [1351028964.489915028]: Tried to advertise a service that is already advertised in this node [/camera/depth_registered/image_rect_raw/compressed/set_parameters] [ERROR] [1351028964.495383139]: Tried to advertise a service that is already advertised in this node [/camera/depth_registered/image_rect_raw/theora/set_parameters]
This error occurs because we are trying to publish depth_registered/image_rect_raw from 2 different sources (see the section on Registration below). image_transport sets up multiple services for an image which clash on this occasion. This error will not affect the functionality of the driver, and for the time being should be ignored (http://answers.ros.org/question/12244/complaint-from-openni_launch-on-already-advertised-services/)
Registration
The depth_registered/* topics can be produced in two ways.
If OpenNI registration is enabled:
The unregistered camera/depth/* topics are not published.
The raw depth image from OpenNI is published in camera/depth_registered instead.
If OpenNI registration is disabled and you have calibrated the cameras to each other:
camera/depth_registered/image_raw is computed from camera/depth/image_raw using the camera instrinsics and transform between them.
- Both registered and unregistered depth outputs are published.
- This will cost more CPU cycles, since the registration has to be done in software.
Launch files
openni.launch
Launches in one process the device driver and many processing nodelets for turning the raw RGB and depth images into useful products, such as point clouds. Provides default tf tree linking the RGB and depth cameras.
Arguments
camera (string, default: camera)
- Descriptive name for your device. All published topics are pushed down into the <camera> namespace, and this also affects tf frame ids and some node names. If you are using multiple cameras, use this argument to disambiguate them.
Device driver
- Specifies which device to open. The following formats are recognized:
#1 Use first device found 2@3 Use device on USB bus 2, address 3 B00367707227042B Use device with given serial number
- Calibration URL for the RGB camera. By default, looks in your ROS home directory for calibration identified by the device serial number, e.g. $HOME/.ros/camera_info/rgb_B00367707227042B. If no calibration is found, uses a default camera model with a typical focal length and distortion unmodeled.
- Calibration URL for the IR/depth camera. By default, looks in your ROS home directory for calibration identified by the device serial number, e.g. $HOME/.ros/camera_info/depth_B00367707227042B. If no calibration is found, uses a default camera model with the focal length reported by OpenNI and distortion unmodeled.
depth_registration (bool, default: false)
- If true, use OpenNI's factory-calibrated depth->RGB registration.
- If true, load the OpenNI device driver. Set to false if raw data is provided by another source, e.g. bag file playback.
tf frames
- The tf frame id of the RGB camera.
- The tf frame id of the IR camera.
publish_tf (bool, default: true)
- If true, publish the default (uncalibrated) tf tree. Set to false if extrinsics are provided by another source, e.g. calibration or bag file playback.
Remapping
- Remap the rgb namespace.
- Remap the ir namespace.
- Remap the depth namespace.
- Remap the depth_registered namespace.
- Remap the projector namespace.
Launch configuration
- If true, launches nodelet manager in GDB for debugging.
respawn (bool, default: false)
- If true, enables bond topics between nodelet loaders and the managers and respawns any nodes (manager or loader) that die. This makes the system robust to any node dying, but the proliferation of bond topics can overwhelm introspection tools like rxgraph.
Published Topics
RGB camera
- Camera calibration and metadata.
- Raw image from device. Format is Bayer GRBG for Kinect, YUV422 for PSDK.
- Monochrome unrectified image.
- Color unrectified image.
- Monochrome rectified image.
- Color rectified image.
Depth camera
- Camera calibration and metadata.
- Raw image from device. Contains uint16 depths in mm.
- Unrectified depth image. Contains float depths in m.
- Rectified depth image. Contains float depths in m.
- Disparity image (inversely related to depth), for interop with stereo processing nodes.
- XYZ point cloud. If using PCL, subscribe as PointCloud<PointXYZ>.
Registered depth camera (aligned with RGB camera)
See Registration.- Camera calibration and metadata. Same as camera/rgb/camera_info but time-synced to depth images.
- Raw image from device. Contains uint16 depths in mm.
- Unrectified depth image. Contains float depths in m.
- Rectified depth image. Contains float depths in m.
- Disparity image (inversely related to depth), for interop with stereo processing nodes.
- XYZRGB point cloud. If using PCL, subscribe as PointCloud<PointXYZRGB>.
IR camera
- Camera calibration and metadata.
- Raw uint16 IR image.
- Rectified IR image.
IR projector
- Faked calibration for the IR projector. Identical to depth/camera_info, but with the baseline encoded in the P matrix. Stereo processing nodes can use the depth and projector infos as a left/right pair.
Provided tf Transforms
/<camera>_rgb_optical_frame → /<camera>_depth_optical_frame- Default estimate for the transform between the RGB and IR cameras. If OpenNI registration is disabled, this is used with the calibrated camera intrinsics to perform registration.
Parameteres
image_mode (integer, default: 2)
- Image output mode for the color/grayscale image (1 SXGA_15Hz 1280x1024@15Hz, 2 VGA_30Hz 640x480@30Hz, 3 VGA_25Hz 640x480@25Hz, 4 QVGA_25Hz 320x240@25Hz, 5 QVGA_30Hz 320x240@30Hz, 6 QVGA_60Hz 320x240@60Hz, 7 QQVGA_25Hz 160x120@25Hz, 8 QQVGA_30Hz 160x120@30Hz, 9 QQVGA_60Hz 160x120@60Hz)
- depth output mode(1 SXGA_15Hz 1280x1024@15Hz, 2 VGA_30Hz 640x480@30Hz, 3 VGA_25Hz 640x480@25Hz, 4 QVGA_25Hz 320x240@25Hz, 5 QVGA_30Hz 320x240@30Hz, 6 QVGA_60Hz 320x240@60Hz, 7 QQVGA_25Hz 160x120@25Hz, 8 QQVGA_30Hz 160x120@30Hz, 9 QQVGA_60Hz 160x120@60Hz)
- Depth data registration
- Skip N images for every image published (rgb/depth/depth_registered/ir), ie samsample 1/(N+1)
- Depth image time offset in seconds
- Image time offset in seconds
- X offset between IR and depth image
- Y offset between IR and depth image
- Z offset in mm
- scaling factor for depth values
Overview
This package contains launch files for using OpenNI-compliant devices such as the Microsoft Kinect in ROS. It creates a nodelet graph to transform raw data from the device driver into point clouds, disparity images, and other products suitable for processing and visualization.
Starting with ROS Hydro, all the functionality of openni_launch has been moved to rgbd_launch, in order to allow other drivers such as libfreenect (freenect_launch) to use the same code. openni_launch itself contains 1 launch file:
launch/openni.launch - Launch RGB-D processing through rgbd_launch with the OpenNI driver.
Quick start
Launch the OpenNI driver. This will launch the full constellation of nodelets:
roslaunch openni_launch openni.launch
To visualize in rviz:
rosrun rviz rviz
Set the Fixed Frame (top left of rviz window) to /camera_depth_optical_frame.
Add a PointCloud2 display, and set the topic to /camera/depth/points. Turning the background to light gray can help with viewing. This is the unregistered point cloud in the frame of the depth (IR) camera. It is not matched with the RGB camera images.
Alternatively you can view the disparity image:
rosrun image_view disparity_view image:=/camera/depth/disparity
Now let's look at a registered point cloud, aligned with the RGB data. Open the dynamic reconfigure GUI:
rosrun rqt_reconfigure rqt_reconfigure
And select /camera/driver from the drop-down menu. Enable the depth_registration checkbox.
Now go back to rviz, and change your PointCloud2 topic to /camera/depth_registered/points. Set Color Transformer to RGB8. You should see a color, 3D point cloud of your scene.
Again, you can view the registered disparity image:
rosrun image_view disparity_view image:=/camera/depth_registered/disparity
To view the color image from the RGB camera outside of rviz:
rosrun image_view image_view image:=/camera/rgb/image_color
or to view the grayscale image:
rosrun image_view image_view image:=/camera/rgb/image_mono
Launch files
openni.launch
Launches in one process the device driver and many processing nodelets for turning the raw RGB and depth images into useful products, such as point clouds. Provides default tf tree linking the RGB and depth cameras.
Arguments
This section only covers arguments that are specific to openni_launch. There are also some common arguments that can be supplied to openni.launch that are documented with rgbd_launch.
camera (string, default: camera)
- Descriptive name for your device. All published topics are pushed down into the <camera> namespace, and this also affects tf frame ids and some node names. If you are using multiple cameras, use this argument to disambiguate them.
Device driver
- Specifies which device to open. The following formats are recognized:
#1 Use first device found 2@3 Use device on USB bus 2, address 3 B00367707227042B Use device with given serial number
- Calibration URL for the RGB camera. By default, looks in your ROS home directory for calibration identified by the device serial number, e.g. $HOME/.ros/camera_info/rgb_B00367707227042B. If no calibration is found, uses a default camera model with a typical focal length and distortion unmodeled.
- Calibration URL for the IR/depth camera. By default, looks in your ROS home directory for calibration identified by the device serial number, e.g. $HOME/.ros/camera_info/depth_B00367707227042B. If no calibration is found, uses a default camera model with the focal length reported by OpenNI and distortion unmodeled.
depth_registration (bool, default: false)
- If true, use OpenNI's factory-calibrated depth->RGB registration.
- If true, load the OpenNI device driver. Set to false if raw data is provided by another source, e.g. bag file playback.
tf frames
- The tf frame id of the RGB camera.
- The tf frame id of the IR camera.
publish_tf (bool, default: true)
- If true, publish the default (uncalibrated) tf tree. Set to false if extrinsics are provided by another source, e.g. calibration or bag file playback.
tf_prefix (string, default: "")
- If set, this tf_prefix is prefixed to all frame ids used/generated by openni.launch
Remapping
- Remap the rgb namespace.
- Remap the ir namespace.
- Remap the depth namespace.
- Remap the depth_registered namespace.
- Remap the projector namespace.
Launch configuration
- If true, launches nodelet manager in GDB for debugging.
respawn (bool, default: false)
- If true, enables bond topics between nodelet loaders and the managers and respawns any nodes (manager or loader) that die. This makes the system robust to any node dying, but the proliferation of bond topics can overwhelm introspection tools like rxgraph.
num_worker_threads (int, default: 4)
- Sets the number of worker threads in the nodelet manager
This section only covers arguments that are specific to openni_launch. There are also some common arguments that can be supplied to openni.launch that are documented with rgbd_launch.
Published Topics
Please consult the documentation at rgbd_launch.