Skip to content

Commit

Permalink
fix: config for awsim (#289)
Browse files Browse the repository at this point in the history
* delete unnecessary arg passing

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

* fix gnss_poser param

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

* Adjust gnss launching condition

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

* fix invalid tag usage

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

* ci(pre-commit): autofix

---------

Signed-off-by: Autumn60 <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
Autumn60 and pre-commit-ci[bot] committed Oct 8, 2024
1 parent ede3ee0 commit c062e11
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
8 changes: 8 additions & 0 deletions aip_x1_launch/config/gnss_poser.param.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**:
ros__parameters:
base_frame: base_link
gnss_base_frame: gnss_link
map_frame: map
buff_epoch: 1
use_gnss_ins_orientation: false
gnss_pose_pub_method: 0 # 0: Median, 1: Average
12 changes: 5 additions & 7 deletions aip_x1_launch/launch/gnss.launch.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<launch>

<arg name="use_gnss" default="false" />
<arg name="launch_driver" default="true" />

<group if="$(var use_gnss)">
<push-ros-namespace namespace="gnss"/>
<group>
<push-ros-namespace namespace="gnss" />

<!-- Ublox Driver -->
<node pkg="ublox_gps" name="ublox" exec="ublox_gps_node" if="$(var launch_driver)" respawn="true" respawn_delay="1.0">
Expand All @@ -14,14 +13,13 @@

<!-- NavSatFix to MGRS Pose -->
<include file="$(find-pkg-share autoware_gnss_poser)/launch/gnss_poser.launch.xml">
<arg name="param_file" value="$(find-pkg-share aip_x1_launch)/config/gnss_poser.param.yaml" />
<arg name="input_topic_fix" value="ublox/nav_sat_fix" />
<arg name="input_topic_navpvt" value="ublox/navpvt" />

<!-- Required if use_gnss_ins_orientation in gnss_poser.param.yaml is true -->
<!-- <arg name="input_topic_orientation" value="" /> -->
<arg name="output_topic_gnss_pose" value="pose" />
<arg name="output_topic_gnss_pose_cov" value="pose_with_covariance" />
<arg name="output_topic_gnss_fixed" value="fixed" />

<arg name="use_ublox_receiver" value="true" />
</include>

</group>
Expand Down
3 changes: 1 addition & 2 deletions aip_x1_launch/launch/sensing.launch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
<arg name="launch_driver" value="$(var launch_driver)" />
<arg name="vehicle_mirror_param_file" value="$(var vehicle_mirror_param_file)" />
<arg name="pointcloud_container_name" value="$(var pointcloud_container_name)"/>
<arg name="use_awsim" value="$(var use_awsim)"/>
</include>

<!-- IMU Driver -->
Expand All @@ -21,7 +20,7 @@
</include>

<!-- GNSS Driver -->
<include file="$(find-pkg-share aip_x1_launch)/launch/gnss.launch.xml" unless="$(var use_awsim)">
<include file="$(find-pkg-share aip_x1_launch)/launch/gnss.launch.xml" if="$(var use_awsim)" >
<arg name="launch_driver" value="$(var launch_driver)" />
</include>

Expand Down

0 comments on commit c062e11

Please sign in to comment.