new maps and launch files added

This commit is contained in:
Rooholla-KhorramBakht 2024-02-16 15:33:53 -05:00
parent a9be7e0ad9
commit caeaeca1dd
6 changed files with 37 additions and 3 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,7 @@
image: Feb16_hallway_map.pgm
mode: trinary
resolution: 0.05
origin: [-21.1, -27.3, 0]
negate: 0
occupied_thresh: 0.65
free_thresh: 0.25

View File

@ -0,0 +1,27 @@
import os
from ament_index_python.packages import get_package_share_directory
from launch import LaunchDescription
from launch.actions import IncludeLaunchDescription
from launch.launch_description_sources import PythonLaunchDescriptionSource
from launch_ros.actions import Node
def generate_launch_description():
robot_localization = IncludeLaunchDescription(
PythonLaunchDescriptionSource([os.path.join(
get_package_share_directory('sportmode_nav2'), 'launch'),
'/ros_ekf.launch.py'])
)
async_mapping = IncludeLaunchDescription(
PythonLaunchDescriptionSource([os.path.join(
get_package_share_directory('sportmode_nav2'), 'launch'),
'/localization_async.launch.py'])
)
return LaunchDescription([
robot_localization,
async_mapping,
])

View File

@ -19,9 +19,9 @@ slam_toolbox:
# if you'd like to immediately start continuing a map at a given pose
# or at the dock, but they are mutually exclusive, if pose is given
# will use pose
map_file_name: /home/unitree/locomotion/Go2Py/deploy/nav2_ws/lab_and_hallway
# map_start_pose: [0.0, 0.0, 0.0]
map_start_at_dock: true
map_file_name: /home/rstaion/projects/rooholla/locomotion/Go2Py/deploy/nav2_ws/Feb16_hallway_map
map_start_pose: [0.33, 1.49, 0.0]
# map_start_at_dock: true
debug_logging: false
throttle_scans: 1