return std::get<0>(::collide(bc, ps));
}
+bool PSPlanner::forward()
+{
+ double heading = this->ps().heading();
+ while (heading < 0) heading += 2 * M_PI;
+ if (!this->ps().parallel())
+ heading -= M_PI / 2;
+ double h = this->gc().h();
+ while (h < 0) h += 2 * M_PI;
+ if (-0.00001 < heading - h && heading - h < 0.00001)
+ return true;
+ else
+ return false;
+}
+
+void PSPlanner::guess_gc()
+{
+}
+
bool PSPlanner::left()
{
double lfx = this->cc().lfx();
}
}
-bool PSPlanner::forward()
-{
- double heading = this->ps().heading();
- while (heading < 0) heading += 2 * M_PI;
- if (!this->ps().parallel())
- heading -= M_PI / 2;
- double h = this->gc().h();
- while (h < 0) h += 2 * M_PI;
- if (-0.00001 < heading - h && heading - h < 0.00001)
- return true;
- else
- return false;
-}
-
PSPlanner::PSPlanner()
{
}