Skip to content
Snippets Groups Projects
Commit 414e8cbc authored by Dinesh Atchuthan's avatar Dinesh Atchuthan
Browse files

compiling

parent 5d763ca0
No related branches found
No related tags found
No related merge requests found
...@@ -3,20 +3,23 @@ ...@@ -3,20 +3,23 @@
#include "problem.h" #include "problem.h"
#include "sensor_imu.h" #include "sensor_imu.h"
#include "capture_imu.h" #include "capture_imu.h"
#include "constraint_odom_3D.h"
#include "state_block.h" #include "state_block.h"
#include "state_quaternion.h" #include "state_quaternion.h"
#include "processor_imu.h" #include "processor_imu.h"
#include "utils_gtest.h"
#include "../src/logging.h"
//#define DEBUG_RESULTS //#define DEBUG_RESULTS
class FeatureIMU : public testing::Test class FeatureIMU_test : public testing::Test
{ {
public: //These can be accessed in fixtures public: //These can be accessed in fixtures
wolf::ProblemPtr wolf_problem_ptr_; wolf::ProblemPtr wolf_problem_ptr_;
wolf::TimeStamp ts; wolf::TimeStamp ts;
wolf::CaptureIMUPtr imu_ptr;
//a new of this will be created for each new test //a new of this will be created for each new test
virtual void SetUp() virtual void SetUp()
...@@ -52,7 +55,7 @@ class FeatureIMU : public testing::Test ...@@ -52,7 +55,7 @@ class FeatureIMU : public testing::Test
wolf_problem_ptr_->getTrajectoryPtr()->addFrame(origin_frame); wolf_problem_ptr_->getTrajectoryPtr()->addFrame(origin_frame);
// Create one capture to store the IMU data arriving from (sensor / callback / file / etc.) // Create one capture to store the IMU data arriving from (sensor / callback / file / etc.)
CaptureIMUPtr imu_ptr( std::make_shared<CaptureIMU>(t, sensor_ptr, data_) ); imu_ptr = std::make_shared<CaptureIMU>(t, sensor_ptr, data_);
imu_ptr->setFramePtr(origin_frame); imu_ptr->setFramePtr(origin_frame);
//process data //process data
...@@ -83,10 +86,10 @@ class FeatureIMU : public testing::Test ...@@ -83,10 +86,10 @@ class FeatureIMU : public testing::Test
} }
}; };
TEST_F(FeatureIMU, test0) TEST_F(FeatureIMU_test, test0)
{ {
// set variables // set variables
using namespace std; using namespace wolf;
Eigen::VectorXs state_vec; Eigen::VectorXs state_vec;
Eigen::VectorXs delta_preint; Eigen::VectorXs delta_preint;
//FrameIMUPtr last_frame; //FrameIMUPtr last_frame;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment