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
ea76c6f2
Commit
ea76c6f2
authored
8 years ago
by
Dinesh Atchuthan
Browse files
Options
Downloads
Patches
Plain Diff
[WIP] gtest_constraint_odom - initial
parent
5e3537bc
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
+4
-0
4 additions, 0 deletions
src/test/CMakeLists.txt
src/test/gtest_constraint_odom_3D.cpp
+49
-0
49 additions, 0 deletions
src/test/gtest_constraint_odom_3D.cpp
with
53 additions
and
0 deletions
src/test/CMakeLists.txt
+
4
−
0
View file @
ea76c6f2
...
...
@@ -45,6 +45,10 @@ target_link_libraries(gtest_example ${PROJECT_NAME}) #
# ==== IN ALPHABETICAL ORDER! ==== #
# #
# Constraint_odom_3D classes test
wolf_add_gtest
(
gtest_constraint_odom_3D gtest_constraint_odom_3D.cpp
)
target_link_libraries
(
gtest_constraint_odom_3D
${
PROJECT_NAME
}
)
# FrameBase classes test
wolf_add_gtest
(
gtest_frame_base gtest_frame_base.cpp
)
target_link_libraries
(
gtest_frame_base
${
PROJECT_NAME
}
)
...
...
This diff is collapsed.
Click to expand it.
src/test/gtest_constraint_odom_3D.cpp
+
49
−
0
View file @
ea76c6f2
/**
* \file gtest_constraint_odom_3D.cpp
*
* Created on: Jan 06, 2016
* \author: Dinesh
*/
#include
"wolf.h"
#include
"problem.h"
#include
"sensor_odom_3D.h"
#include
"capture_motion.h"
#include
"state_block.h"
#include
"state_quaternion.h"
#include
"processor_odom_3D.h"
#include
"utils_gtest.h"
#include
"../src/logging.h"
TEST
(
ConstraintOdom3D
,
constructors
)
{
using
namespace
wolf
;
using
std
::
shared_ptr
;
using
std
::
make_shared
;
using
std
::
static_pointer_cast
;
// Wolf problem
wolf
::
ProblemPtr
wolf_problem_ptr_
=
Problem
::
create
(
FRM_PQVBB_3D
);
Eigen
::
VectorXs
IMU_extrinsics
(
7
);
wolf
::
TimeStamp
ts
;
Eigen
::
VectorXs
state_vec
;
Eigen
::
VectorXs
delta_preint
;
Eigen
::
Vector6s
data_
;
state_vec
.
resize
(
16
);
ts
.
set
(
0
);
Eigen
::
VectorXs
x0
(
16
);
x0
<<
0
,
0
,
0
,
0
,
0
,
0
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
;
// Try some non-zero biases
//create a feature
FeatureBasePtr
last_feature
=
std
::
make_shared
<
FeatureBase
>
(
"ODOM_3D"
,
x0
.
head
(
7
),
Eigen
::
Matrix7s
::
Identity
());
}
int
main
(
int
argc
,
char
**
argv
)
{
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