## For instruction on writing tutorials ## http://www.ros.org/wiki/WritingTutorials #################################### ##FILL ME IN #################################### ## for a custom note with links: ## note = ## 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 HDL-32E ## multi-line description to be displayed in search ## description = Using the Velodyne stack to connect to and display data from a Velodyne HDL-32E LIDAR ## the next tutorial description (optional) ## next = ## links to next tutorial (optional) ## next.0.link=[[velodyne/Tutorials/Getting Started with the HDL-64E|Getting Started with the Velodyne HDL-64E]] ## next.1.link= ## what level user is this tutorial for ## level= BeginnerCategory ## keywords = Velodyne, HDL-32, LIDAR, point cloud, #################################### <> <> Before starting this turorial, 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]] == Install Driver == Install the [[velodyne|Velodyne stack]] from the repositories by running {{{ sudo apt-get install ros-VERSION-velodyne }}} == Connect to the LIDAR == 1. Power the LIDAR via the included adapter 1. Connect the LIDAR to an Ethernet port on your computer. 1. Statically assign an IP to this port in the 192.168.3.x range. {{{ sudo ifconfig eth0 192.168.3.100 }}} 1.#4 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 }}} == View Data == 1. Convert the provided calibration data from the standard Velodyne XML format to the node's YAML format. It is usually kept in the "DSR Viewer" folder on the CD which was included with the LIDAR. {{{ rosrun velodyne_pointcloud gen_calibration.py 32db.xml }}} 1.#2 Launch the provided pointcloud generation launchfile, specifying the absolute path of the calibration file that was generated in the previous step. {{{ roslaunch velodyne_pointcloud 32e_points.launch calibration:=/home/user/32db.yaml }}} 1.#3 Launch rviz, with the "velodyne" frame as the fixed frame. {{{ rosrun rviz rviz -f velodyne }}} 1.#4 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" {{attachment:velodyne.png|Velodyne data in rviz|width=750}} == Troubleshooting == * All LIDARs we have seen multicast in the 192.168.3.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. ## AUTOGENERATED DO NOT DELETE ## TutorialCategory ## VelodyneTutorialCategory