Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nav2 path planner issues #4759

Open
BrainBoxTayo opened this issue Nov 21, 2024 · 4 comments
Open

Nav2 path planner issues #4759

BrainBoxTayo opened this issue Nov 21, 2024 · 4 comments
Labels
question Further information is requested

Comments

@BrainBoxTayo
Copy link

Required Info:

  • Operating System:
    • Ubuntu 24.04
  • ROS2 Version:
    • Jazzy binaries

Expected behavior

The robot is meant to move to the desired location

Actual behavior

The robot does nothing; these are the log files


[rviz2-17] [INFO] [1732224052.795018475] [rviz2]: Setting goal pose: Frame:map, Position(1.38254, -2.50791, 0), Orientation(0, 0, -0.804285, 0.594243) = Angle: -1.86894
[bt_navigator-22] [INFO] [1732224052.802246292] [bt_navigator]: Begin navigating from current location (-0.00, -0.00) to (1.38, -2.51)
[controller_server-18] [INFO] [1732224052.831471224] [controller_server]: Received a goal, begin computing control effort.
[controller_server-18] [WARN] [1732224052.831619991] [controller_server]: No goal checker was specified in parameter 'current_goal_checker'. Server will use only plugin loaded general_goal_checker . This warning will appear once.
[controller_server-18] [WARN] [1732224052.831641991] [controller_server]: No progress checker was specified in parameter 'current_progress_checker'. Server will use only plugin loaded progress_checker . This warning will appear once.
[controller_server-18] [WARN] [1732224053.134075888] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 37.0370 Hz.
[controller_server-18] [WARN] [1732224053.192542308] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 33.3333 Hz.
[controller_server-18] [WARN] [1732224053.262441328] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 25.0000 Hz.
[controller_server-18] [WARN] [1732224053.329031935] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 30.3030 Hz.
[controller_server-18] [WARN] [1732224053.367981937] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 62.5000 Hz.
[controller_server-18] [WARN] [1732224053.390512937] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 100.0000 Hz.
[controller_server-18] [WARN] [1732224053.483967700] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 45.4545 Hz.
[controller_server-18] [WARN] [1732224053.591123368] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 31.2500 Hz.
[controller_server-18] [WARN] [1732224053.837647469] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 31.2500 Hz.
[controller_server-18] [WARN] [1732224053.882163992] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 52.6316 Hz.
[controller_server-18] [INFO] [1732224053.882380157] [controller_server]: Passing new path to controller.
[controller_server-18] [WARN] [1732224053.934579177] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 31.2500 Hz.
[controller_server-18] [WARN] [1732224053.993899712] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 28.5714 Hz.
[controller_server-18] [WARN] [1732224054.041685048] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 47.6190 Hz.
[controller_server-18] [WARN] [1732224054.090370876] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 35.7143 Hz.
[controller_server-18] [WARN] [1732224054.537343387] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 35.7143 Hz.
[controller_server-18] [INFO] [1732224054.883022464] [controller_server]: Passing new path to controller.
[controller_server-18] [WARN] [1732224055.541958201] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 30.3030 Hz.
[controller_server-18] [WARN] [1732224055.589491963] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 37.0370 Hz.
[controller_server-18] [WARN] [1732224055.932063858] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 34.4828 Hz.
[controller_server-18] [INFO] [1732224055.932154235] [controller_server]: Passing new path to controller.
[controller_server-18] [WARN] [1732224056.134384424] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 38.4615 Hz.
[controller_server-18] [INFO] [1732224056.932500337] [controller_server]: Passing new path to controller.
[controller_server-18] [WARN] [1732224057.439105356] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 33.3333 Hz.
[controller_server-18] [WARN] [1732224057.483830018] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 43.4783 Hz.
[controller_server-18] [WARN] [1732224057.741355192] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 35.7143 Hz.
[controller_server-18] [INFO] [1732224057.982144344] [controller_server]: Passing new path to controller.
[controller_server-18] [WARN] [1732224058.435693373] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 38.4615 Hz.
[controller_server-18] [INFO] [1732224059.032194389] [controller_server]: Passing new path to controller.
[controller_server-18] [WARN] [1732224059.082658299] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 40.0000 Hz.
[controller_server-18] [WARN] [1732224059.183879602] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 34.4828 Hz.
[controller_server-18] [WARN] [1732224059.287310471] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 40.0000 Hz.
[controller_server-18] [WARN] [1732224059.632438054] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 31.2500 Hz.
[controller_server-18] [WARN] [1732224059.684076801] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 34.4828 Hz.
[controller_server-18] [INFO] [1732224060.032362077] [controller_server]: Passing new path to controller.
[controller_server-18] [WARN] [1732224060.140030561] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 25.6410 Hz.
[controller_server-18] [WARN] [1732224060.184843440] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 40.0000 Hz.
[controller_server-18] [WARN] [1732224061.031863213] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 35.7143 Hz.
[controller_server-18] [INFO] [1732224061.082081348] [controller_server]: Passing new path to controller.
[controller_server-18] [WARN] [1732224061.335453038] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 31.2500 Hz.
[controller_server-18] [WARN] [1732224061.383205000] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 34.4828 Hz.
[controller_server-18] [WARN] [1732224061.450022267] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 26.3158 Hz.
[controller_server-18] [WARN] [1732224061.984948525] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 37.0370 Hz.
[controller_server-18] [WARN] [1732224062.083627536] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 45.4545 Hz.
[controller_server-18] [INFO] [1732224062.083747666] [controller_server]: Passing new path to controller.
[controller_server-18] [WARN] [1732224062.136554690] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 47.6190 Hz.
[controller_server-18] [WARN] [1732224062.211730474] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 32.2581 Hz.
[controller_server-18] [WARN] [1732224062.264889089] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 45.4545 Hz.
[controller_server-18] [WARN] [1732224062.306051813] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 66.6667 Hz.
[controller_server-18] [WARN] [1732224062.336937213] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 66.6667 Hz.
[controller_server-18] [WARN] [1732224062.745980595] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 32.2581 Hz.
[controller_server-18] [WARN] [1732224062.791061885] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 52.6316 Hz.
[controller_server-18] [INFO] [1732224063.131889177] [controller_server]: Passing new path to controller.
[controller_server-18] [WARN] [1732224063.184868157] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 38.4615 Hz.
[controller_server-18] [WARN] [1732224063.713578174] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 35.7143 Hz.
[controller_server-18] [WARN] [1732224063.752769288] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 71.4286 Hz.
[controller_server-18] [WARN] [1732224063.783037832] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 111.1111 Hz.
[controller_server-18] [WARN] [1732224064.035719348] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 41.6667 Hz.
[controller_server-18] [INFO] [1732224064.182345406] [controller_server]: Passing new path to controller.
[controller_server-18] [WARN] [1732224064.392518109] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 37.0370 Hz.
[controller_server-18] [WARN] [1732224064.513273804] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 14.0845 Hz.
[controller_server-18] [WARN] [1732224064.631858555] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 17.5439 Hz.
[controller_server-18] [WARN] [1732224064.678878703] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 52.6316 Hz.
[controller_server-18] [WARN] [1732224064.715247934] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 47.6190 Hz.
[controller_server-18] [WARN] [1732224064.772756752] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 55.5556 Hz.
[controller_server-18] [WARN] [1732224064.815243920] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 43.4783 Hz.
[controller_server-18] [WARN] [1732224064.883257822] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 41.6667 Hz.
[controller_server-18] [WARN] [1732224064.930689278] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 40.0000 Hz.
[controller_server-18] [WARN] [1732224065.004642108] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 40.0000 Hz.
[controller_server-18] [WARN] [1732224065.052276391] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 50.0000 Hz.
[controller_server-18] [WARN] [1732224065.104112596] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 37.0370 Hz.
[controller_server-18] [WARN] [1732224065.131013430] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 83.3333 Hz.
[controller_server-18] [WARN] [1732224065.169873839] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 66.6667 Hz.
[controller_server-18] [INFO] [1732224065.170033291] [controller_server]: Passing new path to controller.
[controller_server-18] [WARN] [1732224065.363537303] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 47.6190 Hz.
[controller_server-18] [WARN] [1732224065.520525411] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 38.4615 Hz.
[controller_server-18] [WARN] [1732224065.673296720] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 38.4615 Hz.
[controller_server-18] [WARN] [1732224065.728477728] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 33.3333 Hz.
[controller_server-18] [WARN] [1732224065.776191423] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 43.4783 Hz.
[controller_server-18] [WARN] [1732224066.064793723] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 35.7143 Hz.
[controller_server-18] [INFO] [1732224066.213399155] [controller_server]: Passing new path to controller.
[controller_server-18] [WARN] [1732224066.619988083] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 45.4545 Hz.
[controller_server-18] [WARN] [1732224066.679100162] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 41.6667 Hz.
[controller_server-18] [INFO] [1732224067.213764883] [controller_server]: Passing new path to controller.
[controller_server-18] [WARN] [1732224068.220142071] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 40.0000 Hz.
[controller_server-18] [INFO] [1732224068.263438940] [controller_server]: Passing new path to controller.
[controller_server-18] [WARN] [1732224068.363500593] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 38.4615 Hz.
[controller_server-18] [WARN] [1732224068.415214297] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 37.0370 Hz.
[controller_server-18] [WARN] [1732224068.563432387] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 40.0000 Hz.
[controller_server-18] [WARN] [1732224068.637441032] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 31.2500 Hz.
[controller_server-18] [WARN] [1732224068.701498520] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 30.3030 Hz.
[controller_server-18] [WARN] [1732224068.746280541] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 52.6316 Hz.
[controller_server-18] [WARN] [1732224068.804231266] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 32.2581 Hz.
[controller_server-18] [WARN] [1732224068.848526548] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 52.6316 Hz.
[controller_server-18] [WARN] [1732224068.882860894] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 76.9231 Hz.
[controller_server-18] [WARN] [1732224068.922994344] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 62.5000 Hz.
[controller_server-18] [INFO] [1732224069.263454053] [controller_server]: Passing new path to controller.
[bt_navigator-22] [WARN] [1732224070.261939138] [bt_navigator_navigate_to_pose_rclcpp_node]: Timed out while waiting for action server to acknowledge goal request for compute_path_to_pose
[bt_navigator-22] [ERROR] [1732224070.297730072] [bt_navigator_navigate_to_pose_rclcpp_node]: Failed to get result for follow_path in node halt!
[bt_navigator-22] [ERROR] [1732224070.299198810] [bt_navigator]: Goal failed
[bt_navigator-22] [WARN] [1732224070.302454703] [bt_navigator]: [navigate_to_pose] [ActionServer] Aborting handle.
[controller_server-18] [WARN] [1732224070.339921881] [controller_server]: Control loop missed its desired rate of 20.0000 Hz. Current loop rate is 23.8095 Hz.
[controller_server-18] [INFO] [1732224070.340033421] [controller_server]: Cancellation was successful. Stopping the robot.
[controller_server-18] [WARN] [1732224070.340054374] [controller_server]: [follow_path] [ActionServer] Client requested to cancel the goal. Cancelling.
[controller_server-18] [INFO] [1732224070.360008931] [controller_server]: Optimizer reset

@SteveMacenski
Copy link
Member

Please provide more information about your setup, configuration files, launch files, etc

@BrainBoxTayo
Copy link
Author

Ok, My setup is the pavillion gaming laptop as seen here

For files, this is my launch file which I use to bringup my robot and slam:
bumperbot_bringup.launch.py

import os
from launch import LaunchDescription
from launch.actions import IncludeLaunchDescription, TimerAction
from ament_index_python.packages import get_package_share_directory
from launch.actions import DeclareLaunchArgument
from launch.conditions import IfCondition
from launch.conditions import UnlessCondition
from launch_ros.actions import Node
from launch.substitutions import LaunchConfiguration


def generate_launch_description():

    use_slam_arg = DeclareLaunchArgument(
        "use_slam",
        default_value="True",
        description="Whether to use SLAM or not"
    )

    use_slam = LaunchConfiguration("use_slam")

    gazebo = IncludeLaunchDescription(
        os.path.join(
            get_package_share_directory("bumperbot_description"),
            "launch",
            "gazebo.launch.py"
        ),
    )

    controller = IncludeLaunchDescription(
        os.path.join(
            get_package_share_directory("bumperbot_controller"),
            "launch",
            "controller.launch.py"
        ),
        launch_arguments={
            "use_simple_controller": "False",
            "use_python": "True"
        }.items(),
    )

    joystick = IncludeLaunchDescription(
        os.path.join(
            get_package_share_directory("bumperbot_controller"),
            "launch",
            "joystick_teleop.launch.py"
        ),
    )

    localization = IncludeLaunchDescription(
        os.path.join(
            get_package_share_directory("bumperbot_localization"),
            "launch",
            "global_localization.launch.py"
        ),
        condition=UnlessCondition(use_slam)
    )
    slam = IncludeLaunchDescription(
        os.path.join(
            get_package_share_directory("bumperbot_mapping"),
            "launch",
            "slam.launch.py"
        ),
        condition=IfCondition(use_slam)
    )

    # safety_stop = Node(
    #     package="bumperbot_utils",
    #     executable="safety_stop",
    #     output="screen"
    # )

    local_or_slam = TimerAction(
        period=15.0,
        actions=[
            Node(
                package="rviz2",
                executable="rviz2",
                name="rviz_localization",
                output="screen",
                arguments=[
                    "-d", os.path.abspath("bumperbot_ws/src/bumperbot_localization/rviz/global_localization.rviz")],
                parameters=[{"use_sim_time": True}],
                condition=UnlessCondition(use_slam)
            ),
            Node(
                package="rviz2",
                executable="rviz2",
                name="rviz_slam",
                output="screen",
                arguments=[
                    "-d", os.path.abspath("bumperbot_ws/src/bumperbot_mapping/rviz/slam.rviz")],
                parameters=[{"use_sim_time": True}],
                condition=IfCondition(use_slam)),
           # Nav2 Bringup Launch File
            IncludeLaunchDescription(
                os.path.join(get_package_share_directory("nav2_bringup"),
                             "launch", "navigation_launch.py"),
                launch_arguments={"use_sim_time": "True"}.items()
            )

        ]
    )

    return LaunchDescription([
        use_slam_arg,
        gazebo,
        controller,
        joystick,
        # safety_stop,
        localization,

        slam,
        local_or_slam,
    ])

This file is the slam.launch.py file

import os
from launch import LaunchDescription
from ament_index_python.packages import get_package_share_directory
from launch_ros.actions import Node
from launch.actions import DeclareLaunchArgument
from launch.substitutions import LaunchConfiguration, PathJoinSubstitution


def generate_launch_description():

    use_sim_time = LaunchConfiguration("use_sim_time")
    slam_config = LaunchConfiguration("slam_config")
    lifecycle_nodes = ["map_saver_server", "slam_toolbox"]

    use_sim_time_arg = DeclareLaunchArgument(
        "use_sim_time",
        default_value="true"
    )

    slam_config_arg = DeclareLaunchArgument(
        "slam_config",
        default_value=os.path.join(
            get_package_share_directory("bumperbot_mapping"),
            "config",
            "slam_toolbox.yaml"
        ),
        description="Full path to slam yaml file to load"
    )
    
    nav2_map_saver = Node(
        package="nav2_map_server",
        executable="map_saver_server",
        name="map_saver_server",
        output="screen",
        parameters=[
            {"save_map_timeout": 5.0},
            {"use_sim_time": use_sim_time},
            {"free_thresh_default", "0.196"},
            {"occupied_thresh_default", "0.65"},
        ],
    )

    slam_toolbox = Node(
        package="slam_toolbox",
        executable="sync_slam_toolbox_node",
        name="slam_toolbox",
        output="screen",
        parameters=[
            slam_config,
            {"use_sim_time": use_sim_time},
        ],
    )

    nav2_lifecycle_manager = Node(
        package="nav2_lifecycle_manager",
        executable="lifecycle_manager",
        name="lifecycle_manager_slam",
        output="screen",
        parameters=[
            {"node_names": lifecycle_nodes},
            {"use_sim_time": use_sim_time},
            {"autostart": True}
        ],
    )

    return LaunchDescription([
        use_sim_time_arg,
        slam_config_arg,
        nav2_map_saver,
        slam_toolbox,
        nav2_lifecycle_manager,
    ])

This is my slam_toolbox param file:

slam_toolbox:
  ros__parameters:

    # Plugin params
    solver_plugin: solver_plugins::CeresSolver
    ceres_linear_solver: SPARSE_NORMAL_CHOLESKY
    ceres_preconditioner: SCHUR_JACOBI
    ceres_trust_strategy: LEVENBERG_MARQUARDT
    ceres_dogleg_type: TRADITIONAL_DOGLEG
    ceres_loss_function: None

    # ROS Parameters
    odom_frame: odom
    map_frame: map
    base_frame: base_footprint
    scan_topic: /scan
    use_map_saver: true
    mode: mapping #localization

    # 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: test_steve
    #map_start_pose: [0.0, 0.0, 0.0]
    #map_start_at_dock: true

    debug_logging: false
    throttle_scans: 1
    transform_publish_period: 0.02 #if 0 never publishes odometry
    map_update_interval: 5.0
    resolution: 0.05
    max_laser_range: 12.0 #for rastering images
    minimum_time_interval: 0.5
    transform_timeout: 0.2
    tf_buffer_duration: 30.
    stack_size_to_use: 40000000 #// program needs a larger stack size to serialize large maps
    enable_interactive_mode: true

    # General Parameters
    use_scan_matching: true
    use_scan_barycenter: true
    minimum_travel_distance: 0.5
    minimum_travel_heading: 0.5
    scan_buffer_size: 10
    scan_buffer_maximum_scan_distance: 10.0
    link_match_minimum_response_fine: 0.1  
    link_scan_maximum_distance: 1.5
    loop_search_maximum_distance: 3.0
    do_loop_closing: true 
    loop_match_minimum_chain_size: 10           
    loop_match_maximum_variance_coarse: 3.0  
    loop_match_minimum_response_coarse: 0.35    
    loop_match_minimum_response_fine: 0.45

    # Correlation Parameters - Correlation Parameters
    correlation_search_space_dimension: 0.5
    correlation_search_space_resolution: 0.01
    correlation_search_space_smear_deviation: 0.1 

    # Correlation Parameters - Loop Closure Parameters
    loop_search_space_dimension: 8.0
    loop_search_space_resolution: 0.05
    loop_search_space_smear_deviation: 0.03

    # Scan Matcher Parameters
    distance_variance_penalty: 0.5      
    angle_variance_penalty: 1.0    

    fine_search_angle_offset: 0.00349     
    coarse_search_angle_offset: 0.349   
    coarse_angle_resolution: 0.0349        
    minimum_angle_penalty: 0.9
    minimum_distance_penalty: 0.5
    use_response_expansion: true

And for nav2 navigation, I am using the default config files found in the package.

@SteveMacenski
Copy link
Member

Do you see the issue with our default bringups in nav2_bringup or can replicate it with your parameters?

You also don't show any navigation use, only sim/rviz and slam. It doesn't appear that you have any planner/controller or other navigation systems enabled. Please provide full details that we can work from to try to identify an issue.

Though, what I'm likely to ask is to check if nav2_bringup works for you, then basically change one thing at a time until you find your issue.

@SteveMacenski SteveMacenski added the question Further information is requested label Nov 22, 2024
@BrainBoxTayo
Copy link
Author

BrainBoxTayo commented Nov 22, 2024

Hi Steve, thanks for the help so far.
I am using nav2_bringup, it's in my bumperbot_bringup.launch.py

# Nav2 Bringup Launch File
            IncludeLaunchDescription(
                os.path.join(get_package_share_directory("nav2_bringup"),
                             "launch", "navigation_launch.py"),
                launch_arguments={"use_sim_time": "True"}.items()
            )

I tried modifying the controller frequency in the nav2_params.yaml file, in the controller server. I changed it to a 100 and the error just outputs something along the lines of:

Control loop missed its desired rate of 100.0000 Hz. Current loop rate is 111.1871 Hz.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants