Skip to content

Commit

Permalink
feat: add PTP params
Browse files Browse the repository at this point in the history
Signed-off-by: David Wong <[email protected]>
  • Loading branch information
drwnz committed Mar 19, 2024
1 parent 39a8559 commit abf8174
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
8 changes: 6 additions & 2 deletions common_sensor_launch/launch/hesai_OT128.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
<arg name="cloud_min_angle" default="0"/>
<arg name="cloud_max_angle" default="360"/>
<arg name="dual_return_distance_threshold" default="0.1"/>
<arg name="ptp_switch_type" default="TSN"/>
<arg name="ptp_domain" default="0"/>
<arg name="vehicle_mirror_param_file"/>
<arg name="container_name" default="hesai_node_container"/>

Expand All @@ -28,11 +30,13 @@
<arg name="cloud_min_angle" value="$(var cloud_min_angle)"/>
<arg name="cloud_max_angle" value="$(var cloud_max_angle)"/>
<arg name="dual_return_distance_threshold" value="$(var dual_return_distance_threshold)"/>
<arg name="ptp_profile" value="automotive"/>
<arg name="ptp_transport_type" value="L2"/>
<arg name="ptp_switch_type" value="$(var ptp_switch_type)"/>
<arg name="ptp_domain" value="$(var ptp_domain)"/>
<arg name="vehicle_mirror_param_file" value="$(var vehicle_mirror_param_file)"/>
<arg name="use_intra_process" value="true"/>
<arg name="use_multithread" value="true"/>
<arg name="container_name" value="$(var container_name)"/>
<arg name="ptp_profile" value="802.1as"/>
<arg name="ptp_transport_type" value="L2"/>
</include>
</launch>
10 changes: 8 additions & 2 deletions common_sensor_launch/launch/hesai_QT128.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
<arg name="cloud_min_angle" default="0"/>
<arg name="cloud_max_angle" default="360"/>
<arg name="dual_return_distance_threshold" default="0.1"/>
<arg name="ptp_profile" default="1588v2"/>
<arg name="ptp_transport_type" default="UDP"/>
<arg name="ptp_switch_type" default="TSN"/>
<arg name="ptp_domain" default="0"/>
<arg name="vehicle_mirror_param_file"/>
<arg name="container_name" default="hesai_node_container"/>

Expand All @@ -28,11 +32,13 @@
<arg name="cloud_min_angle" value="$(var cloud_min_angle)"/>
<arg name="cloud_max_angle" value="$(var cloud_max_angle)"/>
<arg name="dual_return_distance_threshold" value="$(var dual_return_distance_threshold)"/>
<arg name="ptp_profile" value="$(var ptp_profile)"/>
<arg name="ptp_transport_type" value="$(var ptp_transport_type)"/>
<arg name="ptp_switch_type" value="$(var ptp_switch_type)"/>
<arg name="ptp_domain" value="$(var ptp_domain)"/>
<arg name="vehicle_mirror_param_file" value="$(var vehicle_mirror_param_file)"/>
<arg name="use_intra_process" value="true"/>
<arg name="use_multithread" value="true"/>
<arg name="container_name" value="$(var container_name)"/>
<arg name="ptp_profile" value="1588v2"/>
<arg name="ptp_transport_type" value="UDP"/>
</include>
</launch>
4 changes: 4 additions & 0 deletions common_sensor_launch/launch/nebula_node_container.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,10 @@ def create_parameter_dict(*args):
"packet_mtu_size",
"dual_return_distance_threshold",
"setup_sensor",
"ptp_profile",
"ptp_tranport_type",
"ptp_switch_type",
"ptp_domain",
),
}
],
Expand Down

0 comments on commit abf8174

Please sign in to comment.