Skip to content

Commit

Permalink
feat: add Hesai TCP config script (#119)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
4 people authored Mar 6, 2024
1 parent 4651feb commit 910d12b
Show file tree
Hide file tree
Showing 4 changed files with 496 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
"gptp",
"Idat",
"Vdat",
"manc"
"manc",
"ipaddr",
"ntoa"
]
}
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,38 @@ Parameters shared by all supported models:
![DriverOrganization](docs/diagram.png)


## Hesai Sensor Setup

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.

The script requires the installation of dependencies via pip:

`$ pip3 install scripts/requirements.txt # first-time setup`

Once the dependencies are installed, the setup script can be invoked using the following command:

`$ python3 scripts/hesai_config --sensor-ip X.X.X.X`

To set the parameters, please use the corresponding arguments as defined below:

```
usage: hesai_config.py [-h] --sensor-ip SENSOR_IP [--destination-ip DESTINATION_IP]
[--data-port DATA_PORT] [--new-sensor-ip NEW_SENSOR_IP] [--mask MASK]
options:
-h, --help Show this help message and exit
--sensor-ip SENSOR_IP
The current sensor IP address
--destination-ip DESTINATION_IP
Change the current destination IP address to the given one
--data-port DATA_PORT
Change the current destination LiDAR data port to the given one
--new-sensor-ip NEW_SENSOR_IP
Change the current sensor IP address to the given one
--mask MASK Change the current net mask to the given one. You can pass it in either a
CIDR notation or dotted-decimal notation.
```

## How to evaluate performance

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

0 comments on commit 910d12b

Please sign in to comment.