Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: config for awsim #290

Merged
merged 4 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 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
Loading