Coder Social home page Coder Social logo

mufengjun260 / rgbd_ros_to_lcm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mobilemanipulation/rgbd_ros_to_lcm

0.0 0.0 0.0 24 KB

ROS node to republish RGBD sensor data in LCM

License: BSD 3-Clause "New" or "Revised" License

CMake 9.67% C 3.21% C++ 87.12%

rgbd_ros_to_lcm's Introduction

rgbd_ros_to_lcm

ROS node to republish RGBD sensor data in LCM

This ROS package contains a ROS node that subscribes to RGB and depth images from an RGBD sensor (Kinect, RealSense, etc.) and republishes the data to an LCM channel. The output LCM message format matches the format of the openni2-camera-lcm driver and is compatible with the LabelFusion pipeline for generating ground truth labels of RGBD data.

For converting LCM messages to ROS, please refer to the lcm_to_ros package.

Installation

Dependencies

Clone this repository into your catkin workspace:

cd ~/catkin_ws/src
git clone https://github.com/MobileManipulation/rgbd_ros_to_lcm.git
cd rgbd_ros_to_lcm

Before invoking catkin_make, the C++ LCM message definitions need to be generated for the image LCM types:

cd include
lcm-gen -x ../lcmtypes/*.lcm
cd ~/catkin_ws
catkin_make

Usage

The lcm_republisher ROS node subscribes to the output of an RGBD sensor driver ROS node, like the RealSense driver. First, launch the sensor driver. Then, to run the lcm_republisher node, use the example launch file provided:

roslaunch rgbd_ros_to_lcm lcm_republisher.launch

Parameters

Input Parameters

  • subscribe_point_cloud: subscribe to an organized RGB point cloud topic instead of individually subscribing to RGB and depth topics
  • cloud_topic: organized RGB point cloud topic
  • rgb_topic: RGB image topic
  • depth_topic: registered depth image topic

Note: If subscribing to RGB and depth image topics individually for use with LabelFusion, make sure the depth topic is registered into the RGB image frame to prevent alignment problems.

Output Parameters

  • compress_rgb: use JPEG compression for RGB images
  • compress_depth: use ZLIB compression for depth images
  • output_lcm_channel: name of LCM channel for published output
  • lcm_url: LCM URL

The default values of these parameters match the output of openni2-camera-lcm with both JPEG and ZLIB compression enabled. The data is published on the OPENNI_FRAME LCM channel.

Who do I talk to?

To report bugs or problems with the package, please open an issue on our issue tracker.

rgbd_ros_to_lcm's People

Contributors

5yler avatar sylerdexai avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.