Use "pose change" instead of "velocities" for (dxy_mm, dtheta_degrees, dt_seconds)

This commit is contained in:
Simon D. Levy
2018-06-03 14:38:07 -04:00
parent 8934a3370f
commit 081d33aedf
23 changed files with 113 additions and 135 deletions

View File

@@ -31,7 +31,7 @@ using namespace std;
#include "coreslam.h"
#include "Velocities.hpp"
#include "PoseChange.hpp"
#include "Laser.hpp"
#include "Scan.hpp"
@@ -76,22 +76,22 @@ void
Scan::update(
int * scanvals_mm,
double hole_width_millimeters,
Velocities & velocities)
PoseChange & poseChange)
{
scan_update(
this->scan,
scanvals_mm,
hole_width_millimeters,
velocities.dxy_mm,
velocities.dtheta_degrees);
poseChange.dxy_mm,
poseChange.dtheta_degrees);
}
void
Scan::update(
int * scanvals_mm,
double hole_width_millimeters)
{
Velocities zeroVelocities;
this->update(scanvals_mm, hole_width_millimeters, zeroVelocities);
PoseChange zeroPoseChange;
this->update(scanvals_mm, hole_width_millimeters, zeroPoseChange);
}
ostream& operator<< (ostream & out, Scan & scan)