From e441c1aab7b15c85741ed7ea40cd1432842fec0d Mon Sep 17 00:00:00 2001 From: bjoernellens1 <64093272+bjoernellens1@users.noreply.github.com> Date: Thu, 16 Nov 2023 13:56:18 +0100 Subject: [PATCH] Update robot_joy_teleop.launch.py --- launch/robot_joy_teleop.launch.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/launch/robot_joy_teleop.launch.py b/launch/robot_joy_teleop.launch.py index aebba47..e2692e0 100644 --- a/launch/robot_joy_teleop.launch.py +++ b/launch/robot_joy_teleop.launch.py @@ -14,7 +14,7 @@ import os from launch import LaunchDescription -from launch.substitutions import Command, FindExecutable, PathJoinSubstitution +from launch.substitutions import Command, FindExecutable, PathJoinSubstitution, LaunchConfiguration from launch_ros.actions import Node from launch_ros.substitutions import FindPackageShare from ament_index_python.packages import get_package_share_directory @@ -23,6 +23,8 @@ from launch_ros.descriptions import ParameterValue def generate_launch_description(): + use_sim_time = LaunchConfiguration('use_sim_time') + robot_description_content = Command( [ PathJoinSubstitution([FindExecutable(name="xacro")]), @@ -107,7 +109,6 @@ def generate_launch_description(): remappings=[('/cmd_vel_out','/diffbot_base_controller/cmd_vel_unstamped')] ) - use_sim_time = false joy_params = os.path.join(get_package_share_directory('bot_mini_bringup'),'config','joystick.yaml') joy_node = Node( package='joy',