Skip to content

Commit

Permalink
ros2 lidar odometry launch: add ros argument for /tf reference_frame
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblancoc committed Jan 18, 2025
1 parent c5923ec commit 2e4b710
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ros2-launchs/ros2-lidar-odometry.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ def generate_launch_description():
start_active_env_var = SetEnvironmentVariable(
name='MOLA_START_ACTIVE', value=LaunchConfiguration('start_mapping_enabled'))
# ~~~~~~~~~~~~
mola_lo_reference_frame_arg = DeclareLaunchArgument(
"mola_lo_reference_frame", default_value="map", description="The /tf frame name to be used for MOLA-LO localization updates")
mola_lo_reference_frame_env_var = SetEnvironmentVariable(
name='MOLA_LO_PUBLISH_REF_FRAME', value=LaunchConfiguration('mola_lo_reference_frame'))
# ~~~~~~~~~~~~

# Namespace (Based on Nav2's bring-up launch file!)
# ---------------------------------------------------
Expand Down Expand Up @@ -143,6 +148,8 @@ def generate_launch_description():
start_mapping_enabled_env_var,
start_active_arg,
start_active_env_var,
mola_lo_reference_frame_arg,
mola_lo_reference_frame_env_var,
use_rviz_arg,
node_group
])

0 comments on commit 2e4b710

Please sign in to comment.