Skip to content

Latest commit

 

History

History
81 lines (53 loc) · 2.52 KB

How_to_implement_velodyne.md

File metadata and controls

81 lines (53 loc) · 2.52 KB

How to implement velodyne_visualization

last update 2023 1.10 by Minjae Lee.
last update 2022 8.16 by Minjae Lee.
last update 2022 7.25 by Minjae Lee.
last update 2022 7.22 by Minjae Lee.


Reference YouTube video link
Reference wikiros link

  1. If ipconfig is not installed, install it. (for check ridar name later)
$ sudo apt-get install net-tools
  1. Download package. (It should be installed according to its own situation, such as melodic, kinetic, etc.) Our lab use melodic, so we installed melodic.
$ sudo apt-get install ros-melodic-velodyne
  1. Make 2 folders using mkdir command.
$ mkdir -p /catkin_ws/src
  1. In the src folder, download velodyne using git clone.
$ git clone https://github.com/ros-drivers/velodyne.git
  1. Change directory to catkin_ws from src.
$ cd ..
  1. Build at catkin_ws folder using catkin_make.
$ catkin_make

  1. After that, it disconnects Ethernet and local with LAN and connects Velodine and desktop with LAN.

  2. Enter the command to verify that the Velodine and local are connected well. (Enp5s0 is a unique name for each rider. It is possible to check the name of the rider by 'sudo ifconfig' after the LAN connection.)
    Before checking the connection, you should set up an ip for communication on the desktop. It allows you to enter the network settings, ipv4. The same is allowed until address 192.168.1, and then not the same.(192.168.1.x (x is not same with 201)) The netmask is 255.255.255.0 and the gateway is 0.0.0.0 (So, because velodyne 16 ip adress is 192.168.1.201 we set local ip adress 102.168.1.xxx)

$ sudo ifconfig enp5s0 192.168.1.201
  1. You can also check the connection through your browser, and you can enter the window by typing 192.168.1.201 at the browser address.

  2. After that, open a new terminal and roslaunch in catkin_ws/src. (Be careful with spacing!)

$ cd src
$ roslaunch velodyne_pointcloud VLP16_points.launch
  1. Enter the command to float the visualization tool by command. (If it doesn't work, open another terminal, run roscore or roslaunch, and retype the command)
$ rosrun rviz rviz -f velodyne
  1. Add pointcloud2 topic in rviz.

  2. It can be seen that Velodyne receives laboratory data and visualizes it well. first_test