6. KINECT WITH ROS
3D SENSORS
▸ depth cameraによって距離が計測できる
▸ 距離計測ができることで観測点のx,y,z座標が得られる
▸ ⼊⼿可能な3Dセンサー
▸ Microsoft Kinect
▸ ASUS Xtion
▸ PrimeSense Carmine
7. KINECT WITH ROS
MICROSOFT KINECT
▸ 製品(カッコ内は発売時期)
▸ Kinect 360 (2010. 11)
▸ Kinect One (2013. 11)
▸ Kinect for Windows v2 (2014. 7)
▸ Driver
▸ Freenect
▸ libfreenect2 (Kinect for Windows v2)
8. KINECT WITH ROS
KINECT FOR WINDOWS V2をROSから使うには?
▸ iai_kinect2をインストールすればよい
▸ https://github.com/code-iai/iai_kinect2
▸ READMEのインストール⼿順参照
▸ libfreenect2のビルド&インストール
▸ iai_kinect2のビルド&インストール
9. KINECT WITH ROS
LIBFREENECT2のインストール
▸ https://github.com/OpenKinect/libfreenect2
$ git clone https://github.com/OpenKinect/libfreenect2.git
$ cd libfreenect2
$ sudo apt-get install build-essential cmake pkg-config
$ mkdir build && cd build
$ cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/freenect2
$ make
$ make install
$ ./bin/Protonect
⼿順
動作確認
10. KINECT WITH ROS
IAI_KINECT2のインストール
▸ https://github.com/code-iai/iai_kinect2
$ cd ~/catkin_ws/src/
$ git clone https://github.com/code-iai/iai_kinect2.git
$ cd iai_kinect2
$ rosdep install -r --from-paths .
$ cd ~/catkin_ws
$ catkin_make -DCMAKE_BUILD_TYPE="Release"
$ roslaunch kinect2_bridge kinect2_bridge.launch
$ rosrun kinect2_viewer kinect2_viewer
⼿順
動作確認