Skip to content

Commit

Permalink
feat(aip_xx1_gen2_launch): add aip xx1 gen2 launch again #326 (#327)
Browse files Browse the repository at this point in the history
* feat(aip_xx1_description): update for xx1 gen2 (#210)

* update for xx1 gen2

Signed-off-by: Yukihiro Saito <[email protected]>

* set network configs

Signed-off-by: Yuki Takagi <[email protected]>

* use angle param
add OT128 launch

Signed-off-by: Yuki Takagi <[email protected]>

* set lidar horizontal FOV angle

Signed-off-by: Yuki Takagi <[email protected]>

* update settings

Signed-off-by: Yuki Takagi <[email protected]>

* update

Signed-off-by: Yuki Takagi <[email protected]>

* add OT128 launch

Signed-off-by: Yuki Takagi <[email protected]>

* add ptp param

Signed-off-by: yuki.takagi@car_8 <[email protected]>

* complete to write lidar settings

Signed-off-by: yuki.takagi@car_8 <[email protected]>

* ci(pre-commit): autofix

* chore: generalized radar names

Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>

* feat(aip_xx1_description): update side lidar name

Signed-off-by: yuki.takagi@car_8 <[email protected]>

* feat(aip_xx1_launch): enable imu in adm ecus

Signed-off-by: yuki.takagi@car_8 <[email protected]>

* change concate lidars

* update for xx1 gen2

* rotate top lidar 180

* change imu_corrector param aip_x2 -> aip_xx1

* enable gnss

* fix wrong urdf model for OT128

* fix bug

Signed-off-by: Yukihiro Saito <[email protected]>

* change max_range

* feat: added the radars to the aip launcher and description

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

* add nebula argments

* fix: fixed naming and enabled the radars

Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>

* fix pointcloud preprocess for multi_lidar_ogm

* feat: enable radar launch and concatenation for all lidars

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

* fix(hesai_xt32): update ptp_transport_type from l2 to udp for xt32

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

* feat: added an option to select the frame of the radar objects

Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>

* feat: add ptp_switch_type to support latest nebula at 2024/03/15 (#222)

Signed-off-by: j4tfwm6z <[email protected]>
Co-authored-by: j4tfwm6z <[email protected]>

* feat: add radar feature

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

* fix: revert commenting out of radar.launch.xml

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

* add new folders

Signed-off-by: Yuxuan Liu <[email protected]>

* ci(pre-commit): autofix

* add folders for description

Signed-off-by: Yuxuan Liu <[email protected]>

* ci(pre-commit): autofix

* fix Spell-check

Signed-off-by: Yuxuan Liu <[email protected]>

* fix package name

Signed-off-by: Yuxuan Liu <[email protected]>

* fix: recover radar.xacro to make gen1 operational

Signed-off-by: N-Eiki <[email protected]>

* ci(pre-commit): autofix

* update aip_xx1 for gen2

Signed-off-by: N-Eiki <[email protected]>

* fix: packages name is aip_xx1_gen2_* but in these files written as aip_xx1_*

Signed-off-by: N-Eiki <[email protected]>

---------

Signed-off-by: Yukihiro Saito <[email protected]>
Signed-off-by: Yuki Takagi <[email protected]>
Signed-off-by: yuki.takagi@car_8 <[email protected]>
Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>
Signed-off-by: j4tfwm6z <[email protected]>
Signed-off-by: yoshiri <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: Yuxuan Liu <[email protected]>
Signed-off-by: N-Eiki <[email protected]>
Co-authored-by: Yuki Takagi <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Kenzo Lobos-Tsunekawa <[email protected]>
Co-authored-by: j4tfwm6z <[email protected]>
Co-authored-by: kminoda <[email protected]>
Co-authored-by: yoshiri <[email protected]>
Co-authored-by: kminoda <[email protected]>
Co-authored-by: Yuxuan Liu <[email protected]>
Co-authored-by: Yuxuan Liu <[email protected]>
Co-authored-by: N-Eiki <[email protected]>

* fix path to config file

Signed-off-by: Kento Yabuuchi <[email protected]>

* add launch_hw_monitor variable to enable/disable hw_monitor

Signed-off-by: Kento Yabuuchi <[email protected]>

* scan_phase is integer

Signed-off-by: Kento Yabuuchi <[email protected]>

* launch hw_monitor only when both launch_driver&launch_monitor are true

Signed-off-by: Kento Yabuuchi <[email protected]>

* fix Substition using context

Signed-off-by: Kento Yabuuchi <[email protected]>

* use septentrio driver for gnss

* fix OT128 & XT32 PTP profile

* ci(pre-commit): autofix

* cspell ignore some septentrio term

Signed-off-by: Kento Yabuuchi <[email protected]>

* remove not used files

Signed-off-by: Kento Yabuuchi <[email protected]>

* fix conflict resolution

Signed-off-by: Kento Yabuuchi <[email protected]>

* reflect revewer's point

Signed-off-by: Kento Yabuuchi <[email protected]>

---------

Signed-off-by: Yukihiro Saito <[email protected]>
Signed-off-by: Yuki Takagi <[email protected]>
Signed-off-by: yuki.takagi@car_8 <[email protected]>
Signed-off-by: Kenzo Lobos-Tsunekawa <[email protected]>
Signed-off-by: j4tfwm6z <[email protected]>
Signed-off-by: yoshiri <[email protected]>
Signed-off-by: kminoda <[email protected]>
Signed-off-by: Yuxuan Liu <[email protected]>
Signed-off-by: N-Eiki <[email protected]>
Signed-off-by: Kento Yabuuchi <[email protected]>
Co-authored-by: Yukihiro Saito <[email protected]>
Co-authored-by: Yuki Takagi <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Kenzo Lobos-Tsunekawa <[email protected]>
Co-authored-by: j4tfwm6z <[email protected]>
Co-authored-by: kminoda <[email protected]>
Co-authored-by: yoshiri <[email protected]>
Co-authored-by: kminoda <[email protected]>
Co-authored-by: Yuxuan Liu <[email protected]>
Co-authored-by: Yuxuan Liu <[email protected]>
Co-authored-by: N-Eiki <[email protected]>
  • Loading branch information
12 people authored Oct 8, 2024
1 parent 762520e commit 518c4d9
Show file tree
Hide file tree
Showing 13 changed files with 173 additions and 227 deletions.
18 changes: 0 additions & 18 deletions aip_xx1_gen2_description/urdf/sensors.xacro
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,6 @@
yaw="${calibration['base_link']['sensor_kit_base_link']['yaw']}"
/>
<!-- embedded lidar sensors -->
<!-- <xacro:include filename="$(find velodyne_description)/urdf/VLP-16.urdf.xacro"/>
<xacro:VLP-16
parent="base_link"
name="velodyne_rear"
topic="velodyne_rear/velodyne_points"
hz="10"
samples="220"
gpu="false"
>
<origin
xyz="${calibration['base_link']['velodyne_rear_base_link']['x']}
${calibration['base_link']['velodyne_rear_base_link']['y']}
${calibration['base_link']['velodyne_rear_base_link']['z']}"
rpy="${calibration['base_link']['velodyne_rear_base_link']['roll']}
${calibration['base_link']['velodyne_rear_base_link']['pitch']}
${calibration['base_link']['velodyne_rear_base_link']['yaw']}"
/>
</xacro:VLP-16> -->
<xacro:include filename="$(find pandar_description)/urdf/pandar_xt32.xacro"/>
<xacro:PandarXT-32
name="hesai_front_left"
Expand Down
2 changes: 1 addition & 1 deletion aip_xx1_gen2_launch/config/lidar_gen2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ launches:
sensor_frame: hesai_top
sensor_ip: 192.168.1.201
data_port: 2368
scan_phase: 160
scan_phase: 160.0
vertical_bins: 128
- sensor_type: hesai_XT32
namespace: front_left
Expand Down
70 changes: 0 additions & 70 deletions aip_xx1_gen2_launch/config/lidar_launch.yaml

This file was deleted.

97 changes: 97 additions & 0 deletions aip_xx1_gen2_launch/config/mosaic_x5_rover.param.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
/**:
# cspell: ignore ntrip
# cspell: ignore gpsfix
# cspell: ignore gpgga
# cspell: ignore gprmc
# cspell: ignore gpst
# cspell: ignore measepoch
# cspell: ignore pvtcartesian
# cspell: ignore basevectorcart
# cspell: ignore basevectorgeod
# cspell: ignore poscovcartesian
# cspell: ignore velcovgeodetic
# cspell: ignore atteuler
# cspell: ignore attcoveuler
# cspell: ignore gpgsa
# cspell: ignore gpgsv
ros__parameters:
device: tcp://192.168.20.102:28784

frame_id: gnss_link
aux1_frame_id: aux1
get_spatial_config_from_tf: false
use_ros_axis_orientation: false
receiver_type: gnss
multi_antenna: false

datum: Default

att_offset:
heading: 0.0
pitch: 0.0

ant_type: Unknown
ant_serial_nr: Unknown
ant_aux1_type: Unknown
ant_aux1_serial_nr: Unknown

polling_period:
pvt: 200
rest: 200

use_gnss_time: false

rtk_settings:
ntrip_1:
id: ""
caster: ""
caster_port: 2101
username: ""
password: ""
mountpoint: ""
version: "v2"
tls: false
fingerprint: ""
rtk_standard: "auto"
send_gga: "auto"
keep_open: true
ip_server_1:
id: "IPS1"
port: 28785
rtk_standard: "RTCMv3"
send_gga: "auto"
keep_open: true
serial_1:
port: ""
baud_rate: 115200
rtk_standard: "auto"
send_gga: "auto"
keep_open: true

publish:
# For both GNSS and INS Rxs
navsatfix: true
gpsfix: false
gpgga: false
gprmc: false
gpst: false
measepoch: false
pvtcartesian: false
pvtgeodetic: true
basevectorcart: false
basevectorgeod: false
poscovcartesian: false
poscovgeodetic: true
velcovgeodetic: false
atteuler: false
attcoveuler: false
pose: false
twist: false
diagnostics: true
# For GNSS Rx only
gpgsa: false
gpgsv: false

# logger

activate_debug_log: false
7 changes: 6 additions & 1 deletion aip_xx1_gen2_launch/launch/gnss.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@

<!-- Septentrio GNSS Driver -->
<group if="$(eval &quot;'$(var launch_driver)' and '$(var gnss_receiver)'=='septentrio'&quot;)">
<include file="$(find-pkg-share septentrio_gnss_driver)/launch/mosaic_x5_rover.launch.xml" />
<node pkg="septentrio_gnss_driver" name="septentrio" exec="septentrio_gnss_driver_node" if="$(var launch_driver)">
<param from="$(find-pkg-share aip_xx1_gen2_launch)/config/mosaic_x5_rover.param.yaml"/>
<remap from="navsatfix" to="~/nav_sat_fix"/>
<remap from="poscovgeodetic" to="~/poscovgeodetic"/>
<remap from="pvtgeodetic" to="~/pvtgeodetic"/>
</node>
</group>

<!-- NavSatFix to MGRS Pose -->
Expand Down
2 changes: 1 addition & 1 deletion aip_xx1_gen2_launch/launch/imu.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

<!-- IMU Correction launch-->
<arg name="imu_raw_name" default="tamagawa/imu_raw"/>
<arg name="imu_corrector_param_file" default="$(find-pkg-share individual_params)/config/$(var vehicle_id)/aip_xx1/imu_corrector.param.yaml"/>
<arg name="imu_corrector_param_file" default="$(find-pkg-share individual_params)/config/$(var vehicle_id)/aip_xx1_gen2/imu_corrector.param.yaml"/>
<include file="$(find-pkg-share autoware_imu_corrector)/launch/imu_corrector.launch.xml">
<arg name="input_topic" value="$(var imu_raw_name)"/>
<arg name="output_topic" value="imu_data"/>
Expand Down
8 changes: 5 additions & 3 deletions aip_xx1_gen2_launch/launch/lidar.launch.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024 Tier IV, Inc. All rights reserved.
# Copyright 2024 TIER IV, Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -92,11 +92,12 @@ def load_yaml(yaml_file_path):
path_dictionary = generate_launch_dictionary()

base_parameters = {}
base_parameters["host_ip"] = LaunchConfiguration("host_ip")
base_parameters["host_ip"] = LaunchConfiguration("host_ip").perform(context)
base_parameters["vehicle_mirror_param_file"] = LaunchConfiguration(
"vehicle_mirror_param_file"
).perform(context)
base_parameters["launch_driver"] = LaunchConfiguration("launch_driver").perform(context)
base_parameters["launch_hw_monitor"] = LaunchConfiguration("launch_hw_monitor").perform(context)
base_parameters["vehicle_id"] = LaunchConfiguration("vehicle_id").perform(context)
base_parameters["pointcloud_container_name"] = LaunchConfiguration(
"pointcloud_container_name"
Expand Down Expand Up @@ -159,7 +160,7 @@ def generate_launch_description():
config_file_arg = DeclareLaunchArgument(
"config_file",
default_value=os.path.join(
get_package_share_directory("aip_xx1_gen2_launch"), "config", "lidar_launch.yaml"
get_package_share_directory("aip_xx1_gen2_launch"), "config", "lidar_gen2.yaml"
),
description="Path to the configuration file",
)
Expand All @@ -169,6 +170,7 @@ def add_launch_arg(name: str, default_value=None, **kwargs):
launch_arguments.append(DeclareLaunchArgument(name, default_value=default_value, **kwargs))

add_launch_arg("launch_driver", "true")
add_launch_arg("launch_hw_monitor", "true", description="launch hardware monitor")
add_launch_arg("host_ip", "192.168.1.10")
add_launch_arg("use_concat_filter", "true")
add_launch_arg(
Expand Down
125 changes: 0 additions & 125 deletions aip_xx1_gen2_launch/launch/lidar.launch.xml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2020 Tier IV, Inc. All rights reserved.
# Copyright 2024 TIER IV, Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
Loading

0 comments on commit 518c4d9

Please sign in to comment.