arekmula / kinect_grabber

This code enables a user to take photos using a Kinect camera. The photo will be saved as RGB image, depth image and point cloud.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kinect_grabber

ROS opencv example

Installation:

  • install OpenCV dependencies:

    sudo apt-get install ros-kinetic-cv-bridge
    sudo apt-get install ros-kinetic-cv-camera
    
  • install ros Kinect drivers:

    sudo apt install ros-melodic-freenect-launch
    
  • clone repository:

    cd ~/catkin_ws/src
    git clone https://github.com/dominikbelter/kinect_grabber
    
  • compile example:

    cd ~/catkin_ws
    catkin_make
    

To run:

  • set camera (0 - first camera):

    rosparam set cv_camera/device_id 0

  • run:

    cd ~/catkin_ws
    roslaunch openni_launch openni.launch depth_registration:=True
    rosrun kinect_grabber kinect_grabber_node
    

About

This code enables a user to take photos using a Kinect camera. The photo will be saved as RGB image, depth image and point cloud.


Languages

Language:CMake 66.7%Language:C++ 30.3%Language:Shell 3.0%