Skip to content

Commit

Permalink
Add use_sim_time param to launchfile (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
imstevenpmwork authored Sep 26, 2023
1 parent 64ee329 commit 93ed02d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions launch/twist_mux_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,17 @@ def generate_launch_description():
'cmd_vel_out',
default_value='twist_mux/cmd_vel',
description='cmd vel output topic'),
DeclareLaunchArgument(
'use_sim_time',
default_value='False',
description='Use simulation time'),
Node(
package='twist_mux',
executable='twist_mux',
output='screen',
remappings={('/cmd_vel_out', LaunchConfiguration('cmd_vel_out'))},
parameters=[
{'use_sim_time': LaunchConfiguration('use_sim_time')},
LaunchConfiguration('config_locks'),
LaunchConfiguration('config_topics')]
),
Expand All @@ -63,6 +68,7 @@ def generate_launch_description():
output='screen',
remappings={('/twist', LaunchConfiguration('cmd_vel_out'))},
parameters=[{
'use_sim_time': LaunchConfiguration('use_sim_time'),
'frame_id': 'base_link',
'scale': 1.0,
'vertical_position': 2.0}]),
Expand Down

0 comments on commit 93ed02d

Please sign in to comment.