Added autonomous exploration

This commit is contained in:
Tim Korjakow 2023-07-12 17:02:19 +08:00
parent c84efc2fc7
commit 7bb1b2bc29
2 changed files with 10 additions and 1 deletions

View File

@ -83,6 +83,14 @@ def generate_launch_description():
'slam_params_file': slam_params}.items()
)
exploration = IncludeLaunchDescription(
PythonLaunchDescriptionSource([os.path.join(
get_package_share_directory('explore_lite'),'launch','explore.launch.py'
)]),
launch_arguments={
'use_sim_time': 'true'}.items()
)
# Create the launch description and populate
ld = LaunchDescription([
declare_namespace_cmd,
@ -93,6 +101,7 @@ def generate_launch_description():
declare_use_sim_time_cmd,
start_ros2_navigation_cmd,
slam_toolbox,
exploration,
])
return ld

View File

@ -340,7 +340,7 @@ slam_toolbox:
ceres_loss_function: None
base_frame: base_link
map_update_interval: 1.0
map_update_interval: 0.1
scan_topic: /scan
odom_topic: /diff_cont/odom