## For instruction on writing tutorials ## http://www.ros.org/wiki/WritingTutorials #################################### ##FILL ME IN #################################### ## for a custom note with links: ## note = This tutorial pretends to use the [[http://wiki.ros.org/indigo/Installation|INDIGO]] ROS distribuition, make sure you have it installed in your system. ## for the canned note of "This tutorial assumes that you have completed the previous tutorials:" just add the links ## note.0= ## descriptive title for the tutorial ## title = Getting Started with the Velodyne VLP16 ## multi-line description to be displayed in search ## description = Using the Velodyne stack to connect to and display data from a Velodyne VLP16 ## the next tutorial description (optional) ## next = ## links to next tutorial (optional) ## next.0.link=[[velodyne/Tutorials/Getting Started with the HDL-32E|Getting Started with the Velodyne HDL-32E]] ## next.1.link= ## what level user is this tutorial for ## level= BeginnerCategory ## keywords = Velodyne, VLP16, LIDAR, point cloud, Rviz, Installation. #################################### <> <> Before starting this tutorial, please complete installation as described in the [[ROS/Installation|ROS installation instructions]]. This tutorial assumes that Ubuntu is being used. Otherwise, check out and install the code manually from the [[https://github.com/ros-drivers/velodyne|source control repository]] == Setting up your computer to communicate with the Velodyne sensor == 1. Power the LIDAR via the included adapter 1. Connect the LIDAR to an Ethernet port on your computer. 1. For now, disable the WiFi connection on your computer. === Configure your computer’s IP address through the Gnome interface === 1. Access the Gnome Menu (Super key), type "Networks Connections" then run it. Select the connection's name and click on "edit". Choose the IPV4 Settings tab and change the “Method” field to "Manual". 1. Click on "add" and set the IP address field to 192.168.1.100 (“100” can be any number except in a range between 1 and 254, except 201). 1. Set the “Netmask” to 255.255.255 and the "Gateway" to 0.0.0.0. 1. To finish it click on "save". {{attachment:gnome_page.png|Gnome Network Interface width=750}} === Connecting your computer to LIDAR through terminal === Power the LIDAR via the included adapter Connect the LIDAR to an Ethernet port on your computer. Statically assign an IP to this port in the 192.168.3.x range. {{{ sudo ifconfig eth0 192.168.3.100 }}} Add a static route to the LIDAR's IP address. The IP address can be found on the CD case which was included with the LIDAR. {{{ sudo route add 192.168.XX.YY eth0 }}} === Checking the configurations === To check the connection open your web browser and access the following sensor’s network address: 192.168.XX.YY. The following page should appear: {{attachment:velo.png|Velodyne Web Browser|width="750"}} == Installing ROS dependencies == {{{ sudo apt-get install ros-VERSION-velodyne }}} == Installing the VLP16 driver == 1. On terminal, inside your ROS workspace, find the “src” folder and execute the following command: {{{ $ cd ~/catkin_ws/src/ && git clone https://github.com/ros-drivers/velodyne.git }}} 2. After that, on terminal, inside your workspace, update all dependecies: {{{ $rosdep install --from-paths src --ignore-src --rosdistro YOURDISTRO -y }}} 3. Then build your workspace: {{{ $ cd ~/catkin_ws/ && catkin_make }}} 4. Now, your Velodyne package is ready to run. == Viewing the Data == 1. Run the following command on terminal: {{{ $ roslaunch velodyne_pointcloud VLP16_points.launch }}} 1. Now, the necessary nodes are running. You can check this with the following command {{{ $ rosnode list }}} 1. You'll be able to see the messages being published and subscribed to the following topic: {{{ $ rostopic echo /velodyne_points }}} 1. After That, launch rviz, with the "velodyne" as a fixed frame: {{{ $ rosrun rviz rviz -f velodyne }}} 1. In the "displays" panel, click "Add", then select "Point Cloud2", then press "OK". 1. In the "Topic" field of the new "Point Cloud2" tab, enter "/velodyne_points". 1. Congratulations. Now, your Velodyne is ready to build the "real" world inside your system. Enjoy it. {{attachment:velodyne.png|Velodyne data in rviz|width="750"}} == Troubleshooting == * All LIDARs we have seen multicast in the 192.168.YY.XX subnet. If this doesn't work, you can use [[http://www.wireshark.org/|Wireshark]] to verify the subnet the packets are being sent to. * If you have an error about no fixed frame, use: rosrun tf static_transform_publisher 0 0 0 0 0 0 1 map velodyne 10 * ## AUTOGENERATED DO NOT DELETE ## TutorialCategory ## VelodyneTutorialCategory