Skip to content

Commit

Permalink
after adding main from ramana
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthanpr committed May 23, 2016
1 parent 60d133f commit 8663299
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 0 deletions.
34 changes: 34 additions & 0 deletions Sensor.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#include <Sensor.h>


LIDARSensor::LIDARSensor(int temp)
{
this.active = false;
this.samplingRate = temp;
}

Constraints* LIDARSensor::createFactor()
{
}

Odometry::Odometry(int temp)
{
this.active = false;
this.samplingRate = temp;
}


Constraints* Odometry::createFactor()
{
}


Camera::Camera(int temp)
{
this.active = false;
this.samplingRate = temp;
}

Constraints* Camera::createFactor()
{
}
34 changes: 34 additions & 0 deletions Sensor.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#include <OptimizerBase.h>

class SensorBase
{
public:
bool active;
float samplingRate
Constraints* createFactors();

};

class LIDARSensor: public SensorBase
{

public:
LIDARSensor(float temp);

};

class Odometry: public SensorBase
{

public:
Odometry(float temp);

};

class Camera: public SensorBase
{

public:
Camera(float temp);

};
20 changes: 20 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#include <Sensor.h>

int main()
{
LIDARSensor l1(2);
Odometry o1(4);
Camera c1(8);
int time = 0;
while(1)
{
time = time + 1;
if (time % l1.samplingRate == 0)
{
l1.active = true;
l1. createFactor();

}

}
}

0 comments on commit 8663299

Please sign in to comment.