Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Commit eb91c88

Browse files
author
hzb
committed
V2.0.4 support ET
1 parent 6bf69a9 commit eb91c88

File tree

4 files changed

+29
-22
lines changed

4 files changed

+29
-22
lines changed

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ project(hesai_ros_driver)
77
#=======================================
88
set(VERSION_MAJOR 2)
99
set(VERSION_MINOR 0)
10-
set(VERSION_TINY 2)
10+
set(VERSION_TINY 4)
1111
configure_file(
1212
"${CMAKE_CURRENT_SOURCE_DIR}/Version.h.in"
1313
"${CMAKE_CURRENT_BINARY_DIR}/Version.h"
@@ -169,6 +169,7 @@ if(CUDA_FOUND)
169169
source_lib
170170
container_lib
171171
ptcClient_lib
172+
ptcParser_lib
172173
log_lib
173174
${CUDA_LIBS}
174175
# libhesai
@@ -188,6 +189,7 @@ else(CUDA_FOUND)
188189
source_lib
189190
container_lib
190191
ptcClient_lib
192+
ptcParser_lib
191193
log_lib
192194
# libhesai
193195
)
@@ -210,6 +212,8 @@ endif(CUDA_FOUND)
210212
src/driver/HesaiLidar_SDK_2.0/libhesai/UdpParserGpu/include
211213
src/driver/HesaiLidar_SDK_2.0/libhesai/UdpParserGpu/src
212214
src/driver/HesaiLidar_SDK_2.0/libhesai/PtcClient/include
215+
src/driver/HesaiLidar_SDK_2.0/libhesai/PtcParser/include
216+
src/driver/HesaiLidar_SDK_2.0/libhesai/PtcParser
213217
src/driver/HesaiLidar_SDK_2.0/libhesai/Logger/include
214218
src/driver/HesaiLidar_SDK_2.0/libhesai/include
215219
src/driver/HesaiLidar_SDK_2.0/driver

README.md

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
1-
# Introduction to HesaiLidar_Ros_2.0
1+
# Introduction to HesaiLidar_ROS_2.0
22
This repository includes the ROS Driver for Hesai LiDAR sensor manufactured by Hesai Technology.
33
Developed based on [HesaiLidar_SDK_2.0](https://github.com/HesaiTechnology/HesaiLidar_SDK_2.0), After launched, the project will monitor UDP packets from Lidar,parse data and publish point cloud frames into ROS topic
44

55
## Support Lidar type
6-
- Pandar128E3X
7-
- Pandar90E3X
8-
- Pandar64E3X
9-
- Pandar40E3X
10-
- Pandr64
11-
- Pandar40P
12-
- AT128E2X
13-
- AT128E3X
14-
- PandarQT
15-
- QT128C2X
16-
- FT120C1X
17-
- PandarXT-16
18-
- PandarXT-32
19-
- XT32M2X
6+
- Pandar
7+
- AT128
8+
- QT
9+
- FT120
10+
- XT16/XT32
2011

2112
### Installation dependencies
2213

@@ -39,6 +30,11 @@ Install ROS related dependency libraries, please refer to: http://wiki.ros.org
3930
sudo apt-get update
4031
sudo apt-get install -y libyaml-cpp-dev
4132

33+
### Clone
34+
```
35+
$ git clone --recurse-submodules https://github.com/HesaiTechnology/HesaiLidar_ROS_2.0.git
36+
```
37+
4238
### Compile and run
4339

4440
- ros1
@@ -55,18 +51,25 @@ Install ROS related dependency libraries, please refer to: http://wiki.ros.org
5551

5652
colcon build --symlink-install
5753
. install/local_setup.bash
54+
55+
For ROS2-Dashing
56+
57+
ros2 launch hesai_ros_driver dashing_start.py
58+
59+
For other ROS2 version
60+
5861
ros2 launch hesai_ros_driver start.py
5962

6063
### Introduction to the configuration file `config.yaml` parameters
6164

6265
lidar:
6366
- driver:
64-
udp_port: 2368 #Udp port of lidar
65-
ptc_port: 9347 #Ptc port of lidar
66-
device_ip_address: 192.168.1.201 #ip address of lidar
67+
udp_port: 2368 #UDP port of lidar
68+
ptc_port: 9347 #PTC port of lidar
69+
device_ip_address: 192.168.1.201 #IP address of lidar
6770
pcap_path: "<Your PCAP file path>" #The path of pcap file (set during offline playback)
6871
correction_file_path: "<Your correction file path>" #LiDAR angle file, required for offline playback of pcap/packet rosbag
69-
firetimes_path: "<Your firetime file path>" #The path of firetimes file
72+
firetimes_path: "<Your firetime file path>" #The path of firetimes file
7073
source_type: 2 #The type of data source, 1: real-time lidar connection, 2: pcap, 3: packet rosbag
7174
pcap_play_synchronization: true #Pcap play rate synchronize with the host time
7275
x: 0 #Calibration parameter

rviz/rviz2.rviz

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Visualization Manager:
7171
Filter size: 10
7272
History Policy: Keep Last
7373
Reliability Policy: Reliable
74-
Value: /lidar_points3
74+
Value: /lidar_points
7575
Use Fixed Frame: true
7676
Use rainbow: true
7777
Value: true

src/driver/HesaiLidar_SDK_2.0

Submodule HesaiLidar_SDK_2.0 updated from 1538701 to 141c0c5

0 commit comments

Comments
 (0)