43 explicit WorldModel();
51 QPoint fieldTL = QPoint(390,0);
52 QSize fieldSize = QSize(1000,1200);
54 QPoint fieldTL = QPoint(135,120);
55 QSize fieldSize = QSize(1000,1000);
66 int arenaWidth = 1030;
67 int arenaHeight = 1030;
68 QPoint marker0_pos = QPoint(395, 0);
73 int arenaWidth = 1560;
74 int arenaHeight = 930;
75 QPoint marker0_pos = QPoint(140, 140);
84 QPoint marker1_pos = QPoint(marker0_pos.x(), marker0_pos.y() + arenaHeight);
85 QPoint marker2_pos = QPoint(marker0_pos.x() + arenaWidth, marker0_pos.y());
86 QPoint marker3_pos = QPoint(marker0_pos.x() + arenaWidth, marker0_pos.y() + arenaHeight);
88 int marker_length = 50;
89 QPoint marker0_BR = QPoint(marker0_pos + QPoint(marker_length,marker_length));
92 QPolygon expFieldPoints;
93 BrushType expFieldType, robBrushType;
95 int noiseTileNo = 50, noiseTimeIntv = -1;
96 double noiseStrength = 0.2;
98 QPixmap arenaImg, arenaProcessedImg;
100 QRect insideRect = QRect(0,0,0,0);
103 cv::Size capSize = cv::Size(960,600);
105 QList<QPoint> pointsToDraw;
109 QList<QPoint> rob_Type0_pos;
110 QList<bool> rob_toEnlight;
112 QVector<QPoint> kiloPosVec, kiloPosVecOnFrame;
113 QVector<cv::Scalar> kiloColor;
114 QVector<QVector <QPoint>> rob_traces;
116 QBrush *brush_robotCustom_0 =
new QBrush(QColor::fromRgb(3, 252, 248), Qt::SolidPattern);
117 bool boolNullBrushForRobots =
false;
120 QPoint ballPos = QPoint(0,0);
121 QPointF ballVel = QPointF(1.0,1.0);
122 int ballSpeed = 10, ballRad = 60;
132 int bias_X = 0, bias_Y = 0;
138 bool loadImgBackground;
140 void setFieldColorHSV(
int H,
int S,
int V);
141 void setFieldColor(QColor color);
142 void setFieldSize(QSize size);
143 void setRobotCustomColor(QColor color);
144 void setNullRobotCustomBrush(
bool boolNullBrush);
148 bool drawTrace =
false, drawBoundary =
true, drawHeatMap =
false, drawColCircles =
false, drawRobCircles =
false, drawInitPoint =
false;
149 bool drawNetwork =
false, drawVoronoii =
false, drawCentroid =
false, drawWithColors =
true, spatialNetwork=
false, drawBall=
false;
151 int dummy_var = 0, dummy_var2=0;
153 QVector <wmCircle> circles2Draw;