Skip to content
Snippets Groups Projects
Commit fc5d357f authored by Tobias Gröger's avatar Tobias Gröger
Browse files

Fix costmap conversion

Convert armarx costmap from mm to m to teb.
parent e9e34313
No related branches found
No related tags found
2 merge requests!56Provide costmap to homotopy class planner,!28Draft: Dev -> Main
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"pse": { "pse": {
"pse_costum_obstacle_penalties": true, "pse_costum_obstacle_penalties": true,
"pse_costum_obstacle_penalties_dynamic": true, "pse_costum_obstacle_penalties_dynamic": true,
"weight_costmap": 0.5, "weight_costmap": 1,
"weight_global_path_position": 0.3, "weight_global_path_position": 0.3,
"weight_global_path_orientation": 0.3, "weight_global_path_orientation": 0.3,
"lrk_use_alternative_approach": false, "lrk_use_alternative_approach": false,
......
...@@ -185,8 +185,10 @@ namespace armarx::navigation::conv ...@@ -185,8 +185,10 @@ namespace armarx::navigation::conv
teb_local_planner::Costmap::Pose2D teb_origin = costmap.origin(); teb_local_planner::Costmap::Pose2D teb_origin = costmap.origin();
teb_origin.translation() /= 1000; // [mm] to[m] teb_origin.translation() /= 1000; // [mm] to[m]
return teb_local_planner::Costmap{ algorithms::Costmap::Grid teb_grid = costmap.getGrid();
costmap.getGrid(), teb_params, teb_bounds, teb_mask, teb_origin}; teb_grid /= 1000; // [mm] to [m]
return teb_local_planner::Costmap{teb_grid, teb_params, teb_bounds, teb_mask, teb_origin};
} }
} // namespace armarx::navigation::conv } // namespace armarx::navigation::conv
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment