Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
imu
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
plugins
imu
Commits
d74b6c94
Commit
d74b6c94
authored
1 year ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
[skip ci] wip
parent
7835610d
No related branches found
No related tags found
1 merge request
!49
Draft: Resolve "Adapt to new sensor constructors in core"
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/imu/sensor/sensor_imu.h
+9
-5
9 additions, 5 deletions
include/imu/sensor/sensor_imu.h
schema/sensor/SensorImu2d.schema
+5
-0
5 additions, 0 deletions
schema/sensor/SensorImu2d.schema
test/CMakeLists.txt
+9
-9
9 additions, 9 deletions
test/CMakeLists.txt
with
23 additions
and
14 deletions
include/imu/sensor/sensor_imu.h
+
9
−
5
View file @
d74b6c94
...
...
@@ -40,11 +40,15 @@ class SensorImu : public SensorBase
public:
SensorImu
(
const
YAML
::
Node
&
_params
)
:
SensorBase
(
"SensorImu"
+
std
::
to_string
(
DIM
)
+
"d"
,
DIM
,
(
DIM
==
2
?
TypeComposite
{{
'P'
,
"StatePoint2d"
},
{
'O'
,
"StateAngle"
},
{
'I'
,
"StateParams3"
},
{
'G'
,
"StateParams1"
}}
:
TypeComposite
{{
'P'
,
"StatePoint3d"
},
{
'O'
,
"StateQuaternion"
},
{
'I'
,
"StateParams6"
}}),
_params
)
:
SensorBase
(
"SensorImu"
+
std
::
to_string
(
DIM
)
+
"d"
,
DIM
,
(
DIM
==
2
?
TypeComposite
{{
'P'
,
"StatePoint2d"
},
{
'O'
,
"StateAngle"
},
{
'I'
,
"StateParams3"
},
{
'G'
,
"StateParams2"
}}
:
TypeComposite
{{
'P'
,
"StatePoint3d"
},
{
'O'
,
"StateQuaternion"
},
{
'I'
,
"StateParams6"
}}),
_params
)
{
static_assert
(
DIM
==
2
or
DIM
==
3
);
...
...
This diff is collapsed.
Click to expand it.
schema/sensor/SensorImu2d.schema
+
5
−
0
View file @
d74b6c94
...
...
@@ -92,4 +92,9 @@ states:
G:
_type: SensorImu2dGravity.schema
_mandatory: false
_default:
dynamic: false
value: [0, 0]
prior:
mode: "initial_guess"
_doc: "State for the projection of the gravity onto map XY plane. Only used if 'orthogonal_gravity' == false."
\ No newline at end of file
This diff is collapsed.
Click to expand it.
test/CMakeLists.txt
+
9
−
9
View file @
d74b6c94
...
...
@@ -13,16 +13,16 @@ target_link_libraries(dummy ${PLUGIN_NAME})
############# USE THIS TEST AS AN EXAMPLE #################
# #
# Create a specific test executable for gtest_example #
wolf_add_gtest
(
gtest_example gtest_example.cpp
)
#
#
wolf_add_gtest(gtest_example gtest_example.cpp) #
# #
###########################################################
wolf_add_gtest
(
gtest_factor_compass_3d gtest_factor_compass_3d.cpp
)
wolf_add_gtest
(
gtest_factor_imu_2d_with_gravity gtest_factor_imu_2d_with_gravity.cpp
)
wolf_add_gtest
(
gtest_factor_imu_2d gtest_factor_imu_2d.cpp
)
wolf_add_gtest
(
gtest_factor_imu_2d_with_gravity gtest_factor_imu_2d_with_gravity.cpp
)
# Has been excluded from tests for god knows how long, so thing is broken.
# Maybe call an archeologist to fix this thing?
# wolf_add_gtest(gtest_factor_imu_3d gtest_factor_imu_3d.cpp)
...
...
@@ -33,6 +33,8 @@ wolf_add_gtest(gtest_imu_2d_static_init gtest_imu_2d_static_init.cpp)
wolf_add_gtest
(
gtest_imu_2d_tools gtest_imu_2d_tools.cpp
)
wolf_add_gtest
(
gtest_imu_3d gtest_imu_3d.cpp
)
wolf_add_gtest
(
gtest_imu_3d_bootstrap gtest_imu_3d_bootstrap.cpp
)
wolf_add_gtest
(
gtest_imu_3d_mocap_fusion gtest_imu_3d_mocap_fusion.cpp
)
...
...
@@ -41,16 +43,14 @@ wolf_add_gtest(gtest_imu_3d_static_init gtest_imu_3d_static_init.cpp)
wolf_add_gtest
(
gtest_imu_3d_tools gtest_imu_3d_tools.cpp
)
wolf_add_gtest
(
gtest_imu_
3
d gtest_imu_
3
d.cpp
)
wolf_add_gtest
(
gtest_
processor_
imu_
2
d gtest_
processor_
imu_
2
d.cpp
)
wolf_add_gtest
(
gtest_processor_imu_3d_jacobians gtest_processor_imu_3d_jacobians.cpp
)
target_link_libraries
(
gtest_processor_imu_3d_jacobians PUBLIC dummy
)
wolf_add_gtest
(
gtest_processor_imu_2d_with_gravity gtest_processor_imu_2d_with_gravity.cpp
)
wolf_add_gtest
(
gtest_processor_imu_3d gtest_processor_imu_3d.cpp
)
wolf_add_gtest
(
gtest_processor_imu_2d_with_gravity gtest_processor_imu_2d_with_gravity.cpp
)
wolf_add_gtest
(
gtest_processor_imu_2d gtest_processor_imu_2d.cpp
)
wolf_add_gtest
(
gtest_processor_imu_3d_jacobians gtest_processor_imu_3d_jacobians.cpp
)
target_link_libraries
(
gtest_processor_imu_3d_jacobians PUBLIC dummy
)
wolf_add_gtest
(
gtest_processor_motion_intrinsics_update gtest_processor_motion_intrinsics_update.cpp
)
...
...
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