2023-07-28 09:07:50 +00:00
|
|
|
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',
|
2023-08-03 14:24:51 +00:00
|
|
|
remappings=[('cmd_vel','cmd_vel_out'), ('/odom','odom'), ('/imu','imu'), ('/bms_fb','bms_fb'), ('/joint_states','joint_states'), ('/tf','tf'), ('/tf_static','tf_static')],
|
2023-08-03 08:32:43 +00:00
|
|
|
namespace = "/rmp"
|
2023-07-28 09:07:50 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
return LaunchDescription([
|
|
|
|
DeclareLaunchArgument(
|
|
|
|
'use_sim_time',
|
|
|
|
default_value='false',
|
|
|
|
description='Use sim time if true'),
|
|
|
|
control_node
|
|
|
|
])
|