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
41b61dcc
Commit
41b61dcc
authored
8 years ago
by
Dinesh Atchuthan
Browse files
Options
Downloads
Patches
Plain Diff
set to compile processorIMU_jacobians fixtures
parent
39bf5d69
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/test/CMakeLists.txt
+3
-0
3 additions, 0 deletions
src/test/CMakeLists.txt
src/test/gtest_processorIMU_jacobians.cpp
+59
-1
59 additions, 1 deletion
src/test/gtest_processorIMU_jacobians.cpp
with
62 additions
and
1 deletion
src/test/CMakeLists.txt
+
3
−
0
View file @
41b61dcc
...
@@ -85,3 +85,6 @@ target_link_libraries(gtest_time_stamp ${PROJECT_NAME})
...
@@ -85,3 +85,6 @@ target_link_libraries(gtest_time_stamp ${PROJECT_NAME})
wolf_add_gtest
(
gtest_trajectory gtest_trajectory.cpp
)
wolf_add_gtest
(
gtest_trajectory gtest_trajectory.cpp
)
target_link_libraries
(
gtest_trajectory
${
PROJECT_NAME
}
)
target_link_libraries
(
gtest_trajectory
${
PROJECT_NAME
}
)
# ProcessorIMU_jacobians test
wolf_add_gtest
(
gtest_processorIMU_jacobians gtest_processorIMU_jacobians.cpp
)
target_link_libraries
(
gtest_processorIMU_jacobians
${
PROJECT_NAME
}
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/test/gtest_processorIMU_jacobians.cpp
+
59
−
1
View file @
41b61dcc
...
@@ -5,4 +5,62 @@
...
@@ -5,4 +5,62 @@
* \author: AtDinesh
* \author: AtDinesh
*/
*/
//Wolf
\ No newline at end of file
#include
"wolf.h"
#include
"problem.h"
#include
"sensor_imu.h"
#include
"capture_imu.h"
#include
"state_block.h"
#include
"state_quaternion.h"
#include
"processor_imu_UnitTester.h"
//std
#include
<iostream>
#include
<fstream>
#include
<iomanip>
#include
<ctime>
#include
<cmath>
//google test
#include
"utils_gtest.h"
//#define DEBUG_RESULTS
//#define WRITE_RESULTS
using
namespace
wolf
;
// A new one of these is created for each test
class
ProcessorIMU_jacobians
:
public
testing
::
Test
{
public:
TimeStamp
t
;
Eigen
::
Vector6s
data_
;
virtual
void
SetUp
()
{
wolf
::
Scalar
deg_to_rad
=
M_PI
/
180.0
;
data_
<<
10
,
0.5
,
3
,
100
*
deg_to_rad
,
110
*
deg_to_rad
,
30
*
deg_to_rad
;
// Wolf problem
ProblemPtr
wolf_problem_ptr_
=
Problem
::
create
(
FRM_PQVBB_3D
);
Eigen
::
VectorXs
IMU_extrinsics
(
7
);
IMU_extrinsics
<<
0
,
0
,
0
,
0
,
0
,
0
,
1
;
// IMU pose in the robot
//SensorBase* sensor_ptr = wolf_problem_ptr_->installSensor("IMU", "Main IMU", IMU_extrinsics, nullptr);
//wolf_problem_ptr_->installProcessor("IMU", "IMU pre-integrator", "Main IMU", "");
}
virtual
void
TearDown
(){}
};
TEST_F
(
ProcessorIMU_jacobians
,
Dummy
)
{
ASSERT_TRUE
(
data_
.
size
()
==
6
);
}
int
main
(
int
argc
,
char
**
argv
)
{
using
namespace
wolf
;
testing
::
InitGoogleTest
(
&
argc
,
argv
);
return
RUN_ALL_TESTS
();
}
\ No newline at end of file
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