Closed omarwalid96 closed 3 years ago
Also here is the output after running these yaml files on single thread locomotor
` [ INFO] [1614252590.606480311, 2526.479000000]: Loading Global Costmap nav_core_adapter::CostmapAdapter [ INFO] [1614252590.615748742, 2526.482000000]: Initializing Global Costmap [ WARN] [1614252591.076588863, 2526.568000000]: global_costmap: Pre-Hydro parameter "static_map" unused since "plugins" is provided [ INFO] [1614252591.079119293, 2526.568000000]: global_costmap: Using plugin "static_layer" [ INFO] [1614252591.171387035, 2526.589000000]: Requesting the map... [ INFO] [1614252591.190760756, 2526.595000000]: odom received! [ INFO] [1614252591.551259043, 2526.695000000]: Resizing costmap to 384 X 384 at 0.050000 m/pix [ INFO] [1614252591.914400616, 2526.795000000]: Received a 384 X 384 map at 0.050000 m/pix [ INFO] [1614252591.914453211, 2526.795000000]: Subscribing to updates [ INFO] [1614252591.932839267, 2526.799000000]: global_costmap: Using plugin "obstacle_layer" [ INFO] [1614252591.953351716, 2526.801000000]: Subscribed to Topics: scan_sensor [ INFO] [1614252592.021757818, 2526.814000000]: global_costmap: Using plugin "inflation_layer" [ INFO] [1614252592.202923476, 2526.848000000]: Initializing global planner DluxGlobalPlanner [ INFO] [1614252592.219289554, 2526.851000000]: Using PotentialCalculator "dlux_plugins::Dijkstra" [ INFO] [1614252592.228079217, 2526.852000000]: Using Traceback "dlux_plugins::GradientPath" [ INFO] [1614252592.269000524, 2526.858000000]: Loading Local Costmap nav_core_adapter::CostmapAdapter [ INFO] [1614252592.269132721, 2526.858000000]: Initializing Local Costmap [ INFO] [1614252592.302623445, 2526.874000000]: local_costmap: Using plugin "obstacle_layer" [ INFO] [1614252592.335038595, 2526.886000000]: Subscribed to Topics: scan_sensor [ INFO] [1614252592.465927155, 2526.918000000]: local_costmap: Using plugin "inflation_layer" [ INFO] [1614252592.522880762, 2526.935000000]: local_costmap: Using plugin "rgbd_obstacle_layer" [ INFO] [1614252593.833541136, 2527.314000000]: local_costmap/rgbd_obstacle_layer being initialized as SpatioTemporalVoxelLayer! [ INFO] [1614252593.835184635, 2527.315000000]: local_costmap/rgbd_obstacle_layer's global frame is map. [ INFO] [1614252593.910852827, 2527.339000000]: local_costmap/rgbd_obstacle_layer loaded parameters from parameter server. [ INFO] [1614252593.924620643, 2527.341000000]: local_costmap/rgbd_obstacle_layer created underlying voxel grid. [ INFO] [1614252594.220034589, 2527.430000000]: local_costmap/rgbd_obstacle_layer initialization complete! [ INFO] [1614252594.444322534, 2527.508000000]: Initializing local planner DWBLocalPlanner [ INFO] [1614252594.493997430, 2527.530000000]: Using Trajectory Generator "dwb_plugins::StandardTrajectoryGenerator" [ INFO] [1614252594.693522635, 2527.604000000]: Using Goal Checker "dwb_plugins::SimpleGoalChecker" [ INFO] [1614252594.708579461, 2527.607000000]: Using critic "RotateToGoal" (dwb_critics::RotateToGoalCritic) [ INFO] [1614252594.728087212, 2527.612000000]: Using critic "Oscillation" (dwb_critics::OscillationCritic) [ INFO] [1614252594.739595864, 2527.616000000]: Using critic "ObstacleFootprint" (dwb_critics::ObstacleFootprintCritic) [ INFO] [1614252594.749518133, 2527.620000000]: Using critic "GoalAlign" (dwb_critics::GoalAlignCritic) [ INFO] [1614252594.769192692, 2527.624000000]: Using critic "PathAlign" (dwb_critics::PathAlignCritic) [ INFO] [1614252594.783321823, 2527.625000000]: Using critic "PathDist" (dwb_critics::PathDistCritic) [ INFO] [1614252594.789528615, 2527.628000000]: Using critic "GoalDist" (dwb_critics::GoalDistCritic)
`
Please post in only one location. Continuing the conversation here: https://answers.ros.org/question/372912/dwb-local-planner-and-locomotor-high-cpu-usage/
Hi,
I've been using Locomotor for a while now tuning every parameter i can tune. Tested in simulation and in real life robot.
Tested same robot with the standard move base all running well , but i need the flexibility of this repo.
Tested with:
Here are the parameters that i'm using with tuned parameters to get low cpu usage ( behavior is very bad )
global_costmap: global_frame: map robot_base_frame: base_footprint rolling_window: false track_unknown_space: true always_send_full_costmap: false footprint_topic: "footprint" width: 15 height: 15 origin_x: -7.5 origin_y: -7.5 resolution: 0.05 update_frequency: 2.0 publish_frequency: 2.0
footprint: [[0.22,0.22],[-0.22,0.22],[-0.22,-0.22],[0.22,-0.22]] robot_radius: 0.22 footprint_padding: 0.0
static_layer: map_topic: map first_map_only: false subscribe_to_updates: true use_maximum: false lethal_cost_threshold: 70 unknown_cost_value: -1 trinary_costmap: true
obstacle_layer: transform_tolerance: 0.2 observation_sources: scan_sensor scan_sensor: { topic: scan, sensor_frame: base_scan, observation_persistence: 0.0, expected_update_rate: 0.0, data_type: LaserScan, min_obstacle_height: -3.0, max_obstacle_height: 3.0, inf_is_valid: true, clearing: true, marking: true } obstacle_range: 6.0 raytrace_range: 6.5
inflation_layer: cost_scaling_factor: 10.0 inflation_radius: 0.88 inflate_unknown: false
plugins:
{name: inflation_layer, type: "costmap_2d::InflationLayer"}
`
Please @DLu if you can help out or give A simple guide of how to get it working better tell me. Thanks in advanced.