Skip to content

Commit 910d12b

Browse files
amc-nuurasakikeisukedrwnz
authored
feat: add Hesai TCP config script (#119)
* scripts. wip. add hesai config script Signed-off-by: amc-nu <[email protected]> * scripts. update hesai config script Signed-off-by: urasakikeisuke <[email protected]> * Update hesai_config.py * scripts. add timeout seconds to socket Signed-off-by: urasakikeisuke <[email protected]> * README. add hesai_config script usage Signed-off-by: amc-nu <[email protected]> * scripts. add new dependencies for hesai_config.py Signed-off-by: amc-nu <[email protected]> * cspell. add python relative exceptions Signed-off-by: amc-nu <[email protected]> * fix: minor README changes for Hesai configuration script Signed-off-by: David Wong <[email protected]> --------- Signed-off-by: amc-nu <[email protected]> Signed-off-by: urasakikeisuke <[email protected]> Signed-off-by: David Wong <[email protected]> Co-authored-by: urasakikeisuke <[email protected]> Co-authored-by: urasakikeisuke <[email protected]> Co-authored-by: David Wong <[email protected]>
1 parent 4651feb commit 910d12b

File tree

4 files changed

+496
-2
lines changed

4 files changed

+496
-2
lines changed

.cspell.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
"gptp",
4040
"Idat",
4141
"Vdat",
42-
"manc"
42+
"manc",
43+
"ipaddr",
44+
"ntoa"
4345
]
4446
}

README.md

+32
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,38 @@ Parameters shared by all supported models:
229229
![DriverOrganization](docs/diagram.png)
230230

231231

232+
## Hesai Sensor Setup
233+
234+
New Hesai sensors do not provide a Web UI to verify and set up the sensor parameters. Instead, these offer a TCP-based protocol to obtain and set the configuration. Nebula sets these sensors at launch. However, settings such as Destination IP, Sensor IP, IP Mask, and Data Port might cause undesired sensor functioning if the driver gets mistakenly launched with inappropriate values. To overcome this problem, Nebula provides an additional setup script for these settings to avoid such scenarios.
235+
236+
The script requires the installation of dependencies via pip:
237+
238+
`$ pip3 install scripts/requirements.txt # first-time setup`
239+
240+
Once the dependencies are installed, the setup script can be invoked using the following command:
241+
242+
`$ python3 scripts/hesai_config --sensor-ip X.X.X.X`
243+
244+
To set the parameters, please use the corresponding arguments as defined below:
245+
246+
```
247+
usage: hesai_config.py [-h] --sensor-ip SENSOR_IP [--destination-ip DESTINATION_IP]
248+
[--data-port DATA_PORT] [--new-sensor-ip NEW_SENSOR_IP] [--mask MASK]
249+
250+
options:
251+
-h, --help Show this help message and exit
252+
--sensor-ip SENSOR_IP
253+
The current sensor IP address
254+
--destination-ip DESTINATION_IP
255+
Change the current destination IP address to the given one
256+
--data-port DATA_PORT
257+
Change the current destination LiDAR data port to the given one
258+
--new-sensor-ip NEW_SENSOR_IP
259+
Change the current sensor IP address to the given one
260+
--mask MASK Change the current net mask to the given one. You can pass it in either a
261+
CIDR notation or dotted-decimal notation.
262+
```
263+
232264
## How to evaluate performance
233265

234266
You can evaluate Nebula performance on a given rosbag and sensor model using the below tools.

0 commit comments

Comments
 (0)