Skip to content

Commit

Permalink
added custom config
Browse files Browse the repository at this point in the history
  • Loading branch information
petrlmat committed Feb 26, 2024
1 parent bc324f3 commit 348e013
Showing 1 changed file with 23 additions and 17 deletions.
40 changes: 23 additions & 17 deletions launch/liosam.launch
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<arg name="RUN_TYPE" default="$(env RUN_TYPE)" />

<arg name="node_prefix" default=""/>
<arg name="custom_config" default=""/>

<arg if="$(eval arg('RUN_TYPE') == 'simulation')" name="is_simulation" value="true" />
<arg if="$(eval arg('RUN_TYPE') == 'realworld')" name="is_simulation" value="false" />
Expand Down Expand Up @@ -31,6 +32,7 @@
<!-- config file -->
<rosparam file="$(arg config_file)" command="load" />
<rosparam file="$(arg imu_config_file)" command="load" />
<rosparam if="$(eval not arg('custom_config') == '')" file="$(arg custom_config)" command="load" />

<!-- parameters -->
<param name="uavName" type="string" value="$(arg UAV_NAME)" />
Expand All @@ -52,28 +54,29 @@
<!--//}-->

<!--//{ transform fusion nodelet -->
<node pkg="nodelet" type="nodelet" name="$(arg node_prefix)transform_fusion" args="$(arg nodelet) liosam/TransformFusion $(arg nodelet_manager)" output="screen" launch-prefix="bash -c 'sleep $(arg launch_delay); $0 $@'; $(arg launch_prefix)">
<node pkg="nodelet" type="nodelet" name="$(arg node_prefix)transform_fusion" args="$(arg nodelet) liosam/TransformFusion $(arg nodelet_manager)" output="screen" launch-prefix="bash -c 'sleep $(arg launch_delay); $0 $@'; $(arg launch_prefix)">

<!-- config file -->
<rosparam file="$(arg config_file)" command="load" />
<rosparam file="$(arg imu_config_file)" command="load" />
<!-- config file -->
<rosparam file="$(arg config_file)" command="load" />
<rosparam file="$(arg imu_config_file)" command="load" />
<rosparam if="$(eval not arg('custom_config') == '')" file="$(arg custom_config)" command="load" />

<!-- parameters -->
<param name="uavName" type="string" value="$(arg UAV_NAME)" />
<param name="lidarFrame" type="string" value="$(arg frame_lidar)" />
<param name="baselinkFrame" type="string" value="$(arg frame_baselink)" />
<param name="odometryFrame" type="string" value="$(arg frame_odom)" />
<param name="mapFrame" type="string" value="$(arg frame_map)" />
<!-- parameters -->
<param name="uavName" type="string" value="$(arg UAV_NAME)" />
<param name="lidarFrame" type="string" value="$(arg frame_lidar)" />
<param name="baselinkFrame" type="string" value="$(arg frame_baselink)" />
<param name="odometryFrame" type="string" value="$(arg frame_odom)" />
<param name="mapFrame" type="string" value="$(arg frame_map)" />

<!-- publishers -->
<remap from="~liosam/fusion/odometry_out" to="$(arg node_prefix)liosam/fusion/odometry" />
<remap from="~liosam/fusion/path_out" to="$(arg node_prefix)liosam/fusion/path" />
<!-- publishers -->
<remap from="~liosam/fusion/odometry_out" to="$(arg node_prefix)liosam/fusion/odometry" />
<remap from="~liosam/fusion/path_out" to="$(arg node_prefix)liosam/fusion/path" />

<!-- subscribers -->
<remap from="~liosam/fusion/odom_preintegrated_in" to="$(arg node_prefix)liosam/preintegration/odometry" />
<remap from="~liosam/fusion/odom_mapping_in" to="$(arg node_prefix)liosam/mapping/odometry" />
<!-- subscribers -->
<remap from="~liosam/fusion/odom_preintegrated_in" to="$(arg node_prefix)liosam/preintegration/odometry" />
<remap from="~liosam/fusion/odom_mapping_in" to="$(arg node_prefix)liosam/mapping/odometry" />

</node>
</node>
<!-- //} -->

<!--//{ image_projection nodelet -->
Expand All @@ -82,6 +85,7 @@
<!-- config file -->
<rosparam file="$(arg config_file)" command="load" />
<rosparam file="$(arg imu_config_file)" command="load" />
<rosparam if="$(eval not arg('custom_config') == '')" file="$(arg custom_config)" command="load" />

<!-- parameters -->
<param name="uavName" type="string" value="$(arg UAV_NAME)" />
Expand All @@ -105,6 +109,7 @@

<!-- config file -->
<rosparam file="$(arg config_file)" command="load" />
<rosparam if="$(eval not arg('custom_config') == '')" file="$(arg custom_config)" command="load" />

<!-- parameters -->
<param name="uavName" type="string" value="$(arg UAV_NAME)" />
Expand All @@ -128,6 +133,7 @@
<!-- config file -->
<rosparam file="$(arg config_file)" command="load" />
<rosparam file="$(arg imu_config_file)" command="load" />
<rosparam if="$(eval not arg('custom_config') == '')" file="$(arg custom_config)" command="load" />

<!-- parameters -->
<param name="uavName" type="string" value="$(arg UAV_NAME)" />
Expand Down

0 comments on commit 348e013

Please sign in to comment.