Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
wolf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile_robotics
wolf_projects
wolf_lib
wolf
Commits
414e8cbc
Commit
414e8cbc
authored
8 years ago
by
Dinesh Atchuthan
Browse files
Options
Downloads
Patches
Plain Diff
compiling
parent
5d763ca0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/gtest_feature_imu.cpp
+8
-5
8 additions, 5 deletions
src/test/gtest_feature_imu.cpp
with
8 additions
and
5 deletions
src/test/gtest_feature_imu.cpp
+
8
−
5
View file @
414e8cbc
...
@@ -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;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment