cps_rmp220_support/launch/robot_controller.launch.py
2023-07-28 11:07:50 +02:00

23 lines
665 B
Python
Executable File

from launch import LaunchDescription
from launch_ros.actions import Node
from launch.substitutions import LaunchConfiguration
from launch.actions import DeclareLaunchArgument
def generate_launch_description():
use_sim_time = LaunchConfiguration('use_sim_time')
control_node = Node(
package='segwayrmp',
executable='SmartCar',
name='SmartCar',
remappings=[('/cmd_vel','/cmd_vel_out')]
)
return LaunchDescription([
DeclareLaunchArgument(
'use_sim_time',
default_value='false',
description='Use sim time if true'),
control_node
])