We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 829b30c commit 49f8464Copy full SHA for 49f8464
nav2_collision_monitor/src/polygon.cpp
@@ -238,7 +238,12 @@ double Polygon::getCollisionTime(
238
Velocity vel = velocity;
239
240
// Array of points transformed to the frame concerned with pose on each simulation step
241
- std::vector<Point> points_transformed;
+ std::vector<Point> points_transformed = collision_points;
242
+
243
+ // Check static polygon
244
+ if (getPointsInside(points_transformed) >= min_points_) {
245
+ return 0.0;
246
+ }
247
248
// Robot movement simulation
249
for (double time = 0.0; time <= time_before_collision_; time += simulation_time_step_) {
0 commit comments