Wyatt  1.0.1
MockIRRangeFinderSensor.cpp
1 #include "include/MockIRRangeFinderSensor.h"
2 #include "include/MockIRRangeFinderSensorMessage.h"
3 
4 MockIRRangeFinderSensor::MockIRRangeFinderSensor() {
5  // Constructor
6 }
7 
8 MockIRRangeFinderSensor::~MockIRRangeFinderSensor() {
9  // Destructor
10 }
11 
13  this->data = ((MockIRRangeFinderSensorMessage*)msg)->getData();
14  delete msg;
15 }
16 
18  // No-Op
19  return -1;
20 }
21 
22 std::string MockIRRangeFinderSensor::getData() {
23  return this->data;
24 }
void updateSensor(IMessage *msg) override