mirror of
https://github.com/bjoernellens1/cps_rmp220_support.git
synced 2024-11-23 07:35:09 +00:00
26 lines
942 B
Python
Executable File
26 lines
942 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'), ('/odom','odom'), ('/imu','imu'), ('/bms_fb','bms_fb'), ('/joint_states','joint_states'), ('/tf','tf'), ('/tf_static','tf_static')],
|
|
remappings=[('cmd_vel','cmd_vel_out')],
|
|
#namespace = "/rmp"
|
|
parameters=[{'serial_full_name': /dev/ttyUSB0}],
|
|
)
|
|
|
|
|
|
return LaunchDescription([
|
|
DeclareLaunchArgument(
|
|
'use_sim_time',
|
|
default_value='false',
|
|
description='Use sim time if true'),
|
|
control_node
|
|
]) |