add function computeCost file layer.h

This commit is contained in:
2026-07-10 11:27:20 +07:00
parent 2fcd211ccf
commit a2a021c114
10 changed files with 1355 additions and 26 deletions

View File

@@ -85,6 +85,8 @@ public:
*/
virtual void updateCosts(Costmap2D& master_grid, int min_i, int min_j, int max_i, int max_j) {}
virtual unsigned char computeCost(double distance) const { throw std::runtime_error("Function computeCost is not Support."); };
/** @brief Stop publishers. */
virtual void deactivate() {}