Skip to content

Commit

Permalink
Add an empty config file + the HERON_CONFIG_EXTRAS envar, same as on …
Browse files Browse the repository at this point in the history
…the Husky.
  • Loading branch information
civerachb-cpr committed Aug 5, 2021
1 parent 51fa5b4 commit d9c7af5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions heron_control/config/empty.yaml
@@ -0,0 +1,8 @@
# The empty Heron extras configuration has nothing in it and should not.
# It is meant to override the default to add custom control parameters
# file in your own Heron customization package and setting HERON_CONFIG_EXTRAS
# to your customization file in the launch file control.launch.
# Each parameter will need to be loaded in the correct namespace to
# be used. For example, for a Heron with a modified EKF configuration
# This can be used to change ekf_localization_node/odom0 and odom0_config
# parameters to use a different IMU
6 changes: 6 additions & 0 deletions heron_control/launch/control.launch
@@ -1,4 +1,7 @@
<launch>
<arg name="config_extras"
default="$(eval optenv('HERON_CONFIG_EXTRAS', find('heron_control') + '/config/empty.yaml'))"/>

<node pkg="robot_localization" type="ekf_localization_node" name="ekf_localization_node">
<rosparam command="load" file="$(find heron_control)/config/robot_localization.yaml" />
</node>
Expand All @@ -12,4 +15,7 @@

<node pkg="heron_control" type="vel_cov" name="navsat_vel_cov" />

<!-- Override the default control parameters, see config/empty.yaml for default. -->
<rosparam command="load" file="$(arg config_extras)" />

</launch>

0 comments on commit d9c7af5

Please sign in to comment.