We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afcd31c commit 06ef808Copy full SHA for 06ef808
cppsrc/core/include/CoverageControl/coverage_system.h
@@ -330,13 +330,12 @@ class CoverageSystem {
330
if (params_.pCheckOscillations == false) {
331
return false;
332
}
333
- if (robot_positions_history_[robot_id].size() < 2) {
+ if (robot_positions_history_[robot_id].size() < 3) {
334
335
336
auto const &history = robot_positions_history_[robot_id];
337
Point2 const last_pos = history.back();
338
- auto it_end = std::next(history.crbegin(),
339
- std::max(6, static_cast<int>(history.size()) - 1));
+ auto it_end = std::next(history.crbegin(), static_cast<int>(history.size()) - 1);
340
bool flag = false;
341
int count = 0;
342
std::for_each(history.crbegin(), it_end,
0 commit comments