Skip to content

Commit

Permalink
feat(nebula_ros): all sensors json schema support (#155)
Browse files Browse the repository at this point in the history
* ci(nebula): json-schema workflow

Signed-off-by: amadeuszsz <[email protected]>

* feat(velodyne): add json schema

Signed-off-by: amadeuszsz <[email protected]>

* feat(robosense): add json schema

Signed-off-by: amadeuszsz <[email protected]>

* chore(nebula_ros): remove deprecated config

Signed-off-by: amadeuszsz <[email protected]>

* feat(continental): add radar json schema

Signed-off-by: amadeuszsz <[email protected]>

* refactor(json-schema): change schema abstraction

Signed-off-by: amadeuszsz <[email protected]>

* feat(json-schema): add schema templates

Signed-off-by: amadeuszsz <[email protected]>

* fix(json-schema): remove deprecated script

Signed-off-by: amadeuszsz <[email protected]>

* ci(nebula): use latest param-schema action

Signed-off-by: amadeuszsz <[email protected]>

* feat(json-schema): extend schema template

Signed-off-by: amadeuszsz <[email protected]>

* fix(json-schema): calibration default value

Signed-off-by: amadeuszsz <[email protected]>

* add hesai parameter schema

Signed-off-by: vividf <[email protected]>

* move calibration file below the sensor_model

Signed-off-by: vividf <[email protected]>

* remove python file

Signed-off-by: vividf <[email protected]>

* set default value for pandar yaml

Signed-off-by: vividf <[email protected]>

* remove default parameters in nebula_ros

Signed-off-by: vividf <[email protected]>

* remove default parameter in decoder_wrapper

Signed-off-by: vividf <[email protected]>

* fix(json-schema): typo

Co-authored-by: Max Schmeller <[email protected]>

* fix(json-schema): typo

Co-authored-by: Max Schmeller <[email protected]>

* fix(json-schema): typo

Co-authored-by: Max Schmeller <[email protected]>

* fix(json-schema): typo

Co-authored-by: Max Schmeller <[email protected]>

* fix(json-schema): typo

Co-authored-by: Max Schmeller <[email protected]>

* fix(json-schema): typo

Co-authored-by: Max Schmeller <[email protected]>

* fix(json-schema): typo

Co-authored-by: Max Schmeller <[email protected]>

* fix(json-schema): typo

Co-authored-by: Max Schmeller <[email protected]>

* fix(hesai): remove unused var

Signed-off-by: amadeuszsz <[email protected]>

* fix(AT128): correct cloud min/max angles

* fix(ARS548): correct data port default value

* add boundary for AT128

Signed-off-by: vividf <[email protected]>

* docs(json-schema): retry_hw description

Co-authored-by: Max Schmeller <[email protected]>

* docs(json-schema): launch_hw description

Co-authored-by: Max Schmeller <[email protected]>

* fix(json-schema): diag_span minimum

Co-authored-by: Max Schmeller <[email protected]>

* fix(json-schema): ptp_profile enum

Co-authored-by: Max Schmeller <[email protected]>

* fix(json-schema): ptp_transport_type enum

Co-authored-by: Max Schmeller <[email protected]>

* fix(json-schema): ptp_profile default value

Co-authored-by: Max Schmeller <[email protected]>

* fix(json-schema): ptp_transport_type default value

Co-authored-by: Max Schmeller <[email protected]>

---------

Signed-off-by: amadeuszsz <[email protected]>
Signed-off-by: vividf <[email protected]>
Co-authored-by: vividf <[email protected]>
Co-authored-by: Max Schmeller <[email protected]>
  • Loading branch information
3 people authored Jun 6, 2024
1 parent ddc7e50 commit 46171bf
Show file tree
Hide file tree
Showing 66 changed files with 2,524 additions and 435 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/json-schema-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: json-schema-check

on:
pull_request:
workflow_dispatch:

jobs:
check-if-relevant-files-changed:
runs-on: ubuntu-latest
outputs:
run-check: ${{ steps.paths_filter.outputs.json_or_yaml }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: paths_filter
with:
filters: |
json_or_yaml:
- '**/schema/*.schema.json'
- '**/config/**/*.param.yaml'
json-schema-check:
needs: check-if-relevant-files-changed
if: needs.check-if-relevant-files-changed.outputs.run-check == 'true'
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Run json-schema-check
uses: autowarefoundation/autoware-github-actions/json-schema-check@main

no-relevant-changes:
needs: check-if-relevant-files-changed
if: needs.check-if-relevant-files-changed.outputs.run-check == 'false'
runs-on: ubuntu-latest
steps:
- name: Dummy step
run: echo "No relevant changes, passing check"
10 changes: 0 additions & 10 deletions nebula_ros/config/BaseParams.yaml

This file was deleted.

19 changes: 0 additions & 19 deletions nebula_ros/config/hesai/Pandar128E4X.yaml

This file was deleted.

19 changes: 0 additions & 19 deletions nebula_ros/config/hesai/Pandar40P.yaml

This file was deleted.

20 changes: 0 additions & 20 deletions nebula_ros/config/hesai/PandarAT128.yaml

This file was deleted.

18 changes: 0 additions & 18 deletions nebula_ros/config/hesai/PandarQT128.yaml

This file was deleted.

19 changes: 0 additions & 19 deletions nebula_ros/config/hesai/PandarQT64.yaml

This file was deleted.

19 changes: 0 additions & 19 deletions nebula_ros/config/hesai/PandarXT32.yaml

This file was deleted.

19 changes: 0 additions & 19 deletions nebula_ros/config/hesai/PandarXT32M.yaml

This file was deleted.

26 changes: 26 additions & 0 deletions nebula_ros/config/lidar/hesai/Pandar128E4X.param.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/**:
ros__parameters:
host_ip: "255.255.255.255"
sensor_ip: "192.168.1.201"
data_port: 2368
gnss_port: 10110
packet_mtu_size: 1500
launch_hw: true
setup_sensor: true
frame_id: hesai
diag_span: 1000
min_range: 0.3
max_range: 300.0
cloud_min_angle: 0
cloud_max_angle: 360
scan_phase: 0.0
sensor_model: Pandar128E4X
calibration_file: $(find-pkg-share nebula_decoders)/calibration/hesai/$(var sensor_model).csv
rotation_speed: 600
return_mode: Dual
ptp_profile: automotive
ptp_domain: 0
ptp_transport_type: L2
ptp_switch_type: TSN
retry_hw: true
dual_return_distance_threshold: 0.1
26 changes: 26 additions & 0 deletions nebula_ros/config/lidar/hesai/Pandar40P.param.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/**:
ros__parameters:
host_ip: "255.255.255.255"
sensor_ip: "192.168.1.201"
data_port: 2368
gnss_port: 10110
packet_mtu_size: 1500
launch_hw: true
setup_sensor: true
frame_id: hesai
diag_span: 1000
min_range: 0.3
max_range: 300.0
cloud_min_angle: 0
cloud_max_angle: 360
scan_phase: 0.0
sensor_model: Pandar40P
calibration_file: $(find-pkg-share nebula_decoders)/calibration/hesai/$(var sensor_model).csv
rotation_speed: 600
return_mode: Dual
ptp_profile: "1588v2"
ptp_domain: 0
ptp_transport_type: UDP
ptp_switch_type: TSN
retry_hw: true
dual_return_distance_threshold: 0.1
25 changes: 25 additions & 0 deletions nebula_ros/config/lidar/hesai/Pandar64.param.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/**:
ros__parameters:
host_ip: "255.255.255.255"
sensor_ip: "192.168.1.201"
data_port: 2368
gnss_port: 10110
packet_mtu_size: 1500
launch_hw: true
setup_sensor: true
frame_id: hesai
diag_span: 1000
min_range: 0.3
max_range: 300.0
cloud_min_angle: 0
cloud_max_angle: 360
scan_phase: 0.0
sensor_model: Pandar64
rotation_speed: 600
return_mode: Dual
ptp_profile: "1588v2"
ptp_domain: 0
ptp_transport_type: UDP
ptp_switch_type: TSN
retry_hw: true
dual_return_distance_threshold: 0.1
27 changes: 27 additions & 0 deletions nebula_ros/config/lidar/hesai/PandarAT128.param.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/**:
ros__parameters:
host_ip: "255.255.255.255"
sensor_ip: "192.168.1.201"
data_port: 2368
gnss_port: 10110
packet_mtu_size: 1500
launch_hw: true
setup_sensor: true
frame_id: hesai
diag_span: 1000
correction_file: $(find-pkg-share nebula_decoders)/calibration/hesai/$(var sensor_model).dat
min_range: 0.3
max_range: 300.0
cloud_min_angle: 30
cloud_max_angle: 150
scan_phase: 30.0
sensor_model: PandarAT128
calibration_file: $(find-pkg-share nebula_decoders)/calibration/hesai/$(var sensor_model).csv
rotation_speed: 200
return_mode: Dual
ptp_profile: "1588v2"
ptp_domain: 0
ptp_transport_type: UDP
ptp_switch_type: TSN
retry_hw: true
dual_return_distance_threshold: 0.1
26 changes: 26 additions & 0 deletions nebula_ros/config/lidar/hesai/PandarQT128.param.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/**:
ros__parameters:
host_ip: "255.255.255.255"
sensor_ip: "192.168.1.201"
data_port: 2368
gnss_port: 10110
packet_mtu_size: 1500
launch_hw: true
setup_sensor: true
frame_id: hesai
diag_span: 1000
min_range: 0.3
max_range: 300.0
cloud_min_angle: 0
cloud_max_angle: 360
scan_phase: 0.0
sensor_model: PandarQT128
calibration_file: $(find-pkg-share nebula_decoders)/calibration/hesai/$(var sensor_model).csv
rotation_speed: 600
return_mode: LastStrongest
ptp_profile: "1588v2"
ptp_domain: 0
ptp_transport_type: UDP
ptp_switch_type: TSN
retry_hw: true
dual_return_distance_threshold: 0.1
26 changes: 26 additions & 0 deletions nebula_ros/config/lidar/hesai/PandarQT64.param.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/**:
ros__parameters:
host_ip: "255.255.255.255"
sensor_ip: "192.168.1.201"
data_port: 2368
gnss_port: 10110
packet_mtu_size: 1500
launch_hw: true
setup_sensor: true
frame_id: hesai
diag_span: 1000
min_range: 0.3
max_range: 300.0
cloud_min_angle: 0
cloud_max_angle: 360
scan_phase: 0.0
sensor_model: PandarQT64
calibration_file: $(find-pkg-share nebula_decoders)/calibration/hesai/$(var sensor_model).csv
rotation_speed: 600
return_mode: Dual
ptp_profile: "1588v2"
ptp_domain: 0
ptp_transport_type: UDP
ptp_switch_type: TSN
retry_hw: true
dual_return_distance_threshold: 0.1
26 changes: 26 additions & 0 deletions nebula_ros/config/lidar/hesai/PandarXT32.param.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/**:
ros__parameters:
host_ip: "255.255.255.255"
sensor_ip: "192.168.1.201"
data_port: 2368
gnss_port: 10110
packet_mtu_size: 1500
launch_hw: true
setup_sensor: true
frame_id: hesai
diag_span: 1000
min_range: 0.3
max_range: 300.0
cloud_min_angle: 0
cloud_max_angle: 360
scan_phase: 0.0
sensor_model: PandarXT32
calibration_file: $(find-pkg-share nebula_decoders)/calibration/hesai/$(var sensor_model).csv
rotation_speed: 600
return_mode: Dual
ptp_profile: "1588v2"
ptp_domain: 0
ptp_transport_type: UDP
ptp_switch_type: TSN
retry_hw: true
dual_return_distance_threshold: 0.1
Loading

0 comments on commit 46171bf

Please sign in to comment.