From f0225e21af81b2204933151a304c2d5a4abac884 Mon Sep 17 00:00:00 2001 From: bjoernellens1 <64093272+bjoernellens1@users.noreply.github.com> Date: Thu, 16 Nov 2023 13:50:04 +0100 Subject: [PATCH] Update robot_joy_teleop.launch.py --- launch/robot_joy_teleop.launch.py | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/launch/robot_joy_teleop.launch.py b/launch/robot_joy_teleop.launch.py index 5684649..0ec0a3a 100644 --- a/launch/robot_joy_teleop.launch.py +++ b/launch/robot_joy_teleop.launch.py @@ -107,14 +107,32 @@ def generate_launch_description(): remappings=[('/cmd_vel_out','/diffbot_base_controller/cmd_vel_unstamped')] ) + joy_node = Node( + package='joy', + executable='joy_node', + parameters=[joy_params, {'use_sim_time': use_sim_time}], + #namespace = namespace + ) + + teleop_node = Node( + package='teleop_twist_joy', + executable='teleop_node', + name='teleop_node', + parameters=[joy_params, {'use_sim_time': use_sim_time}], + remappings=[('cmd_vel', 'cmd_vel_joy')], + #namespace = namespace + ) + return LaunchDescription([ #control_node, #robot_state_pub_node, #joint_state_broadcaster_spawner, #robot_controller_spawner, - joystick_spawner, - teleop_spawner, + #joystick_spawner, + #teleop_spawner, #cam_node, #lidar_node, - twist_mux + twist_mux, + joy_node, + teleop_node ])