This commit is contained in:
Björn Ellensohn 2023-08-03 10:32:43 +02:00
parent 10bf420dc5
commit f4a9b98574
5 changed files with 8 additions and 3 deletions

View File

@ -10,7 +10,8 @@ def generate_launch_description():
package='segwayrmp', package='segwayrmp',
executable='SmartCar', executable='SmartCar',
name='SmartCar', name='SmartCar',
remappings=[('/cmd_vel','/cmd_vel_out')] remappings=[('/cmd_vel','/cmd_vel_out')],
namespace = "/rmp"
) )

View File

@ -34,6 +34,7 @@ def generate_launch_description():
executable="twist_mux", executable="twist_mux",
parameters=[twist_mux_params, {'use_sim_time': False}], parameters=[twist_mux_params, {'use_sim_time': False}],
#remappings=[('/cmd_vel_out','/diffbot_base_controller/cmd_vel_unstamped')] #remappings=[('/cmd_vel_out','/diffbot_base_controller/cmd_vel_unstamped')]
namespace = "/rmp"
) )
return LaunchDescription([ return LaunchDescription([

View File

@ -65,6 +65,7 @@ def generate_launch_description():
'serial_baudrate': serial_baudrate, 'serial_baudrate': serial_baudrate,
'inverted': inverted, 'inverted': inverted,
'angle_compensate': angle_compensate 'angle_compensate': angle_compensate
}] }],
namespace = "/rmp"
) )
]) ])

View File

@ -46,6 +46,7 @@ def generate_launch_description():
"mapper_params_online_async.yaml" "mapper_params_online_async.yaml"
] ]
) )
namespace = "/rmp"
mapper_node = Node( mapper_node = Node(
package="slam_toolbox", package="slam_toolbox",
executable="async_slam_toolbox_node", executable="async_slam_toolbox_node",
@ -55,6 +56,7 @@ def generate_launch_description():
slam_params_file, slam_params_file,
{'use_sim_time': use_sim_time} {'use_sim_time': use_sim_time}
], ],
namespace = namespace
) )
return LaunchDescription([ return LaunchDescription([

View File

@ -73,7 +73,7 @@ def generate_launch_description():
declare_namespace_cmd = DeclareLaunchArgument( declare_namespace_cmd = DeclareLaunchArgument(
'namespace', 'namespace',
default_value='', default_value='/rmp',
description='Top-level namespace') description='Top-level namespace')
declare_use_sim_time_cmd = DeclareLaunchArgument( declare_use_sim_time_cmd = DeclareLaunchArgument(