From 031dc6b062873216b5a24b73b20211cd02c94657 Mon Sep 17 00:00:00 2001 From: Vincent Belpois Date: Wed, 15 May 2024 17:53:06 +0200 Subject: [PATCH] Nav2 kind of works with slam IRL --- src/ezbot_robot/config/nav2_params.yaml | 14 +++++++------- src/ezbot_simulation/launch/launch_sim.launch.py | 3 ++- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/ezbot_robot/config/nav2_params.yaml b/src/ezbot_robot/config/nav2_params.yaml index 8beef94..b373900 100644 --- a/src/ezbot_robot/config/nav2_params.yaml +++ b/src/ezbot_robot/config/nav2_params.yaml @@ -110,7 +110,7 @@ controller_server: transform_tolerance: 0.1 temperature: 0.3 gamma: 0.015 - motion_model: "DiffDrive" + motion_model: "Omni" visualize: true regenerate_noises: true TrajectoryVisualizer: @@ -274,7 +274,7 @@ planner_server: planner_plugins: ["GridBased"] GridBased: plugin: "nav2_navfn_planner/NavfnPlanner" - tolerance: 0.5 + tolerance: 0.05 use_astar: false allow_unknown: true @@ -330,10 +330,10 @@ velocity_smoother: smoothing_frequency: 20.0 scale_velocities: False feedback: "OPEN_LOOP" - max_velocity: [0.5, 0.0, 2.0] - min_velocity: [-0.5, 0.0, -2.0] - max_accel: [2.5, 0.0, 3.2] - max_decel: [-2.5, 0.0, -3.2] + max_velocity: [0.5, 0.5, 2.0] + min_velocity: [-0.5, -0.5, -2.0] + max_accel: [2.5, 2.5, 3.2] + max_decel: [-2.5, -2.5, -3.2] odom_topic: "/omnidirectional_controller/odom" odom_duration: 0.1 deadband_velocity: [0.0, 0.0, 0.0] @@ -360,7 +360,7 @@ collision_monitor: time_before_collision: 1.2 simulation_time_step: 0.1 min_points: 6 - visualize: False + visualize: True enabled: True observation_sources: ["scan"] scan: diff --git a/src/ezbot_simulation/launch/launch_sim.launch.py b/src/ezbot_simulation/launch/launch_sim.launch.py index c509308..0adbebe 100644 --- a/src/ezbot_simulation/launch/launch_sim.launch.py +++ b/src/ezbot_simulation/launch/launch_sim.launch.py @@ -74,7 +74,8 @@ def generate_launch_description(): DeclareLaunchArgument( 'world', #default_value=[os.path.join('ezbot_simulation','worlds','table2024.world'), ''], - default_value=[os.path.join(get_package_share_directory("ezbot_simulation"), 'worlds', 'table_with_panneaux.world'), ''], + #default_value=[os.path.join(get_package_share_directory("ezbot_simulation"), 'worlds', 'table_with_panneaux.world'), ''], + default_value=[os.path.join(get_package_share_directory("ezbot_simulation"), 'worlds', 'table2024Poteaux.world'), ''], description='SDF world file'), rsp, spawn_entity,