728x90
1. IP setting
wired connected -> wired settings -> New Profile -> IPv4 -> Manual -> Address, Netmask setting.
2. install velodyne package.
$ sudo apt-get install ros-melodic-velodyne
$ cd /home/catkin_ws/src
$ git clone https://github.com/ros-drivers/velodyne.git
$ caatkin_make
3. run.
$ roslaunch velodyne_pointcloud VLP16_points.launch
$ rosrun rviz rviz -f velodyne
4. rviz
add -> PointCloud2 ->topic -> /velodyne_points
5. rosbag
record datas.
+ pointdata.bag = file name for saving.
$ rosbag record -O pointdata.bag/velodyne_points
rosbag play
$ rosbag play pointdata.bag
728x90
'ROS' 카테고리의 다른 글
[ROS] WSL에서 ros 이용하기 - WSLg 사용하는 방법 (0) | 2022.12.14 |
---|---|
[ros melodic] create new worksape (0) | 2022.12.07 |
[ROS] USB_CAM (0) | 2022.08.23 |
[ROS] RLException: [launch name] is neither a launch file in package [package name] nor is [package name] a launch file name error (0) | 2022.08.23 |
[ROS melodic] 3D Lidar (Velodyne) 2D Camera Calibration (0) | 2022.08.23 |