diff --git a/FriedLiver/Source/FriedLiver.cpp b/FriedLiver/Source/FriedLiver.cpp index 0287773c..981de9b4 100644 --- a/FriedLiver/Source/FriedLiver.cpp +++ b/FriedLiver/Source/FriedLiver.cpp @@ -70,7 +70,7 @@ RGBDSensor* getRGBDSensor() #ifdef REAL_SENSE //static RealSenseSensor s_realSenseSensor; //return &s_realSenseSensor; - g_sensor = RealSenseSensor; + g_sensor = new RealSenseSensor; return g_sensor; #else throw MLIB_EXCEPTION("Requires Real Sense SDK and REAL_SENSE macro"); diff --git a/FriedLiver/Source/PrimeSenseSensor.h b/FriedLiver/Source/PrimeSenseSensor.h index 9d4daeb7..5c999b9f 100644 --- a/FriedLiver/Source/PrimeSenseSensor.h +++ b/FriedLiver/Source/PrimeSenseSensor.h @@ -31,6 +31,9 @@ class PrimeSenseSensor : public RGBDSensor //! Processes the depth data (and color) bool processDepth(); + std::string getSensorName() const { + return "PrimeSense"; + } //! Processes the Kinect color data bool processColor() diff --git a/FriedLiver/test.txt b/FriedLiver/test.txt new file mode 100644 index 00000000..e84630d7 --- /dev/null +++ b/FriedLiver/test.txt @@ -0,0 +1,4 @@ +adasda +asdasdasd + +asdadasd \ No newline at end of file