Particle filter is now using a fixed time interval as step

This commit is contained in:
2019-09-25 16:49:57 +02:00
parent 24bbc56f28
commit deb318e115
5 changed files with 185 additions and 83 deletions

View File

@@ -184,6 +184,20 @@ public:
splot.getObjects().set(id, obj);
}
void addCircle(int id, const Point2& center, float radius, const K::GnuplotColor& strokeColor)
{
auto c = K::GnuplotCoordinate2(center.x, center.y, K::GnuplotCoordinateSystem::FIRST);
auto r = K::GnuplotCoordinate1(radius, K::GnuplotCoordinateSystem::FIRST);
K::GnuplotFill fill(K::GnuplotFillStyle::EMPTY, K::GnuplotColor::fromRGB(0, 0, 0));
K::GnuplotStroke stroke(K::GnuplotDashtype::SOLID, 1, strokeColor);
K::GnuplotObjectCircle* obj = new K::GnuplotObjectCircle(c, r, fill, stroke);
splot.getObjects().set(id, obj);
}
void addBBoxes(const BBoxes3& boxes, const K::GnuplotColor& c) {