build ROS VLP16 Velodyne driver for kinetic using Catkin

Velodyne ros wiki:
http://wiki.ros.org/velodyne

Velodyne driver github:
https://github.com/ros-drivers/velodyne

mkdir -p ~/catkin_ws_velodyne/src
cd ~/catkin_ws_velodyne/src
git clone https://github.com/ros-drivers/velodyne.git
$ cd ..
$ rosdep install --from-paths src --ignore-src --rosdistro indigo -y
$ catkin_make

编译成功之后, 设置环境变量
$ source devel/setup.bash

测试如下:

其中, 执行rosdep install --from-paths src --ignore-src --rosdistro indigo -y之后, 新安装了libpcap package.
不执行该步骤, 编译的时候会报错pcap.h not found

安装:

catkin_make install

直接安装velodyne ros package:
ros中很多的第三方插件的安装格式是:
$ sudo apt-get install ros-kinetic-...
例如: $ sudo apt-get install ros-kinetic-turtlebot*


Install the Velodyne stack from the repositories by running

sudo apt-get install ros-kinetic-velodyne

参考: https://answers.ros.org/question/226594/how-do-i-build-ros-vlp16-velodyne-driver-for-indigo-using-catkin/

猜你喜欢

转载自blog.csdn.net/chengde6896383/article/details/86481831