-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
teleop_twist_joy_node: | ||
ros__parameters: | ||
axis_linear: | ||
x: 1 | ||
y: 0 | ||
scale_linear: | ||
x: 1.0 | ||
y: -1.0 | ||
axis_angular: | ||
yaw: 3 | ||
scale_angular: | ||
yaw: 1.0 | ||
enable_button: 5 | ||
enable_turbo_button: 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
|
||
from launch import LaunchDescription | ||
from launch_ros.actions import Node | ||
from launch.substitutions import LaunchConfiguration | ||
from launch.actions import DeclareLaunchArgument | ||
|
||
import os | ||
from ament_index_python.packages import get_package_share_directory | ||
|
||
def generate_launch_description(): | ||
use_sim_time = LaunchConfiguration('use_sim_time') | ||
|
||
joy_params = os.path.join(get_package_share_directory('ezbot_descr_simul'),'config','joystick.yaml') | ||
|
||
joy_node = Node( | ||
package='joy', | ||
executable='joy_node', | ||
parameters=[joy_params, {'use_sim_time': use_sim_time}], | ||
) | ||
|
||
teleop_node = Node( | ||
package='teleop_twist_joy', | ||
executable='teleop_twist_joy', | ||
name='teleop_twist_joy', | ||
parameters=[joy_params, {'use_sim_time': use_sim_time}] | ||
) | ||
|
||
# twist_stamper = Node( | ||
# package='twist_stamper', | ||
# executable='twist_stamper', | ||
# parameters=[{'use_sim_time': use_sim_time}], | ||
# remappings=[('/cmd_vel_in','/diff_cont/cmd_vel_unstamped'), | ||
# ('/cmd_vel_out','/diff_cont/cmd_vel')] | ||
# ) | ||
|
||
|
||
return LaunchDescription([ | ||
DeclareLaunchArgument( | ||
'use_sim_time', | ||
default_value='true', | ||
description='Use sim time if true'), | ||
joy_node, | ||
teleop_node, | ||
# twist_stamper | ||
]) |