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
c36d401f
Commit
c36d401f
authored
7 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
[WIP] start gtest with odom and iMU
parent
8558780e
No related branches found
No related tags found
1 merge request
!146
Imu tests
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/gtest_IMU.cpp
+21
-3
21 additions, 3 deletions
src/test/gtest_IMU.cpp
with
21 additions
and
3 deletions
src/test/gtest_IMU.cpp
+
21
−
3
View file @
c36d401f
...
@@ -9,7 +9,8 @@
...
@@ -9,7 +9,8 @@
#include
"wolf.h"
#include
"wolf.h"
#include
"sensor_imu.h"
#include
"sensor_imu.h"
#include
"processor_imu.h"
#include
"processor_imu.h"
//#include "processor_odom_3D.h"
#include
"sensor_odom_3D.h"
#include
"processor_odom_3D.h"
#include
"ceres_wrapper/ceres_manager.h"
#include
"ceres_wrapper/ceres_manager.h"
#include
"utils_gtest.h"
#include
"utils_gtest.h"
...
@@ -63,7 +64,7 @@ class Process_Constraint_IMU : public testing::Test
...
@@ -63,7 +64,7 @@ class Process_Constraint_IMU : public testing::Test
VectorXs
D_preint
,
x1_preint
;
// preintegrated with processor_imu
VectorXs
D_preint
,
x1_preint
;
// preintegrated with processor_imu
VectorXs
D_corrected
,
x1_corrected
;
// corrected with processor_imu
VectorXs
D_corrected
,
x1_corrected
;
// corrected with processor_imu
VectorXs
D_optim
,
x1_optim
;
// optimized using constraint_imu
VectorXs
D_optim
,
x1_optim
;
// optimized using constraint_imu
VectorXs
D_optim_imu
,
x1_optim_imu
;
// corrected with imu_tools
o
sing optimized bias
VectorXs
D_optim_imu
,
x1_optim_imu
;
// corrected with imu_tools
u
sing optimized bias
VectorXs
x0_optim
;
// optimized using constraint_imu
VectorXs
x0_optim
;
// optimized using constraint_imu
// Delta correction Jacobian and step
// Delta correction Jacobian and step
...
@@ -382,6 +383,23 @@ class Process_Constraint_IMU : public testing::Test
...
@@ -382,6 +383,23 @@ class Process_Constraint_IMU : public testing::Test
};
};
class
Process_Constraint_IMU_ODO
:
public
Process_Constraint_IMU
{
public:
// Wolf objects
SensorOdom3DPtr
sensor_odo
;
ProcessorOdom3DPtr
processor_odo
;
virtual
void
SetUp
(
)
{
Process_Constraint_IMU
::
SetUp
();
// SensorBasePtr sensor = problem->installSensor("ODOM 3D", "Odometer", (Vector7s()<<0,0,0,0,0,0,1).finished(),_WOLF_ROOT_DIR+"/src/examples/sensor_odom_3D.yaml");
// ProcessorBasePtr processor = problem->installProcessor("ODOM 3D", "Odometer", "Odometer", _WOLF_ROOT_DIR+"/src/examples/processor_odom_3D.yaml");
}
};
TEST_F
(
Process_Constraint_IMU
,
Var_B1_B2_Invar_P1_Q1_V1_P2_Q2_V2
)
TEST_F
(
Process_Constraint_IMU
,
Var_B1_B2_Invar_P1_Q1_V1_P2_Q2_V2
)
{
{
...
@@ -430,7 +448,7 @@ TEST_F(Process_Constraint_IMU, Var_B1_B2_Invar_P1_Q1_V1_P2_Q2_V2)
...
@@ -430,7 +448,7 @@ TEST_F(Process_Constraint_IMU, Var_B1_B2_Invar_P1_Q1_V1_P2_Q2_V2)
// ===================================== PRINT RESULTS
// ===================================== PRINT RESULTS
//
print();
print
();
// ===================================== CHECK ALL (SEE CLASS DEFINITION FOR THE MEANING OF ALL VARIABLES)
// ===================================== CHECK ALL (SEE CLASS DEFINITION FOR THE MEANING OF ALL VARIABLES)
...
...
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