在Linux上安装Kinect的
Kinect的安装
以下是本机的安装程:
1.将ROS的的地址添加到本机
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu lucid main" > /etc/apt/sources.list.d/ros-latest.list'
2.置ROS的的地址所需要的Key
wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
3.更新本机的列表
sudo apt -y update
4.安装ROS
sudo apt -y install ros-diamondback-desktop-full
5.下面始安装ROS的Kinect
sudo apt -y install ros-diamondback-openni-kinect
ROC的OpenNI
rosmake openni_camera
roslaunch openni_camera openni_node.launch
最后,我来Kinect的是否正安装。我ROS自的程序image_view来安装是否成功。image_view在/opt/ros/diamondback/stacks/image_pipeline/image_view目下。
首先我来行OpenNI的示例
cd OpenNI/Samples/Bin/Release
./NiViewer
出如下信息
然后,我ROS自的程序image_view来安装是否成功。image_view在/opt/ros/diamondback/stacks/image_pipeline/image_view目下。 在端行rosrun image_view image_view image:=/camera/rgb/image_mono
在端行rosrun image_view image_view image:=/camera/rgb/image_mono,果如下
|