class MclPainter : public Painter
{
public:
- MclPainter(struct mcl_model *mcl, int *displayCount);
+ MclPainter(struct mcl_laser *mcl, int *displayCount);
~MclPainter();
public:
void SimMcl::initPaintElements()
{
- mclPainter = new MclPainter(&mcl, &displayCount);
+ mclPainter = new MclPainter(&laser, &displayCount);
mclPainter->setSize(610, 425);
mclPainterInitialized = true;
widgetInitialized = false;
#define SIM_MCL_H
#include <QDialog>
-#include <mcl.h>
+#include <mcl_laser.h>
#include <robomath.h>
#include "PlaygroundScene.h"
#define ANGLE_FREQ_COUNT 360
#define LAS_CNT 12
- struct mcl_angles measuredAngles;
+ struct mcl_laser_measurement measuredAngles;
struct angles_freq measuredAnglesFreq[ANGLE_FREQ_COUNT];
struct angles_freq estimatedAnglesFreq[ANGLE_FREQ_COUNT];
void updateMcl();
bool mclInitialized;
- struct mcl_model mcl;
- struct mcl_particle measPos;
- struct mcl_particle est_pos;
+ struct mcl_model *mcl;
+ struct mcl_laser mcl_laser;
+ struct mcl_laser_state measPos;
+ struct mcl_robot_pos est_pos;
double measuredPosition[3];
};