quadruped_ros2_control/commands/joystick_input/launch/joystick.launch.py

21 lines
486 B
Python
Raw Normal View History

2024-09-13 16:41:58 +08:00
from launch import LaunchDescription
from launch_ros.actions import Node
def generate_launch_description():
return LaunchDescription([
Node(
package='joy',
executable='joy_node',
name='joynode',
parameters=[{
'dev': '/dev/input/js0'
}]
),
Node(
package='joystick_input',
executable='joystick_input',
name='joystick_input_node'
)
])