mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-12 04:29:49 +08:00
23 lines
851 B
Python
23 lines
851 B
Python
# rtabmap alone, mapping from odometry only, for test_shutdown.py.
|
|||
|
|
|
||
|
|
from launch import LaunchDescription
|
||
|
|
from launch.actions import DeclareLaunchArgument
|
||
|
|
from launch.substitutions import LaunchConfiguration
|
||
|
|
from launch_ros.actions import Node
|
||
|
|
|
||
|
|
|
||
|
|
def generate_launch_description():
|
||
|
|
return LaunchDescription([
|
||
|
|
DeclareLaunchArgument('database_path'),
|
||
|
|
DeclareLaunchArgument('working_directory'),
|
||
|
|
Node(
|
||
|
|
package='rtabmap_slam', executable='rtabmap', output='screen',
|
||
|
|
parameters=[{
|
||
|
|
'database_path': LaunchConfiguration('database_path'),
|
||
|
|
'Rtabmap/WorkingDirectory': LaunchConfiguration('working_directory'),
|
||
|
|
'subscribe_depth': False,
|
||
|
|
'subscribe_rgb': False,
|
||
|
|
'Rtabmap/DetectionRate': '0'}],
|
||
|
|
arguments=['-d']),
|
||
|
|
])
|