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
6ce1a070
There was a problem fetching the pipeline metadata.
Commit
6ce1a070
authored
7 years ago
by
Dinesh Atchuthan
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into hotfix_ConstraintFixBias
parents
dfb69c1b
d49485bf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!155
Hotfix constraint fix bias
Pipeline
#
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/logging.h
+2
-0
2 additions, 0 deletions
src/logging.h
src/test/CMakeLists.txt
+4
-4
4 additions, 4 deletions
src/test/CMakeLists.txt
src/test/gtest_problem.cpp
+8
-3
8 additions, 3 deletions
src/test/gtest_problem.cpp
with
14 additions
and
7 deletions
src/logging.h
+
2
−
0
View file @
6ce1a070
...
@@ -9,6 +9,8 @@
...
@@ -9,6 +9,8 @@
#define WOLF_LOGGING_H_
#define WOLF_LOGGING_H_
// third_party include
// third_party include
#include
<map>
// spdlog include
// spdlog include
#include
"spdlog/spdlog.h"
#include
"spdlog/spdlog.h"
// enable the use of ostream operator<<
// enable the use of ostream operator<<
...
...
This diff is collapsed.
Click to expand it.
src/test/CMakeLists.txt
+
4
−
4
View file @
6ce1a070
...
@@ -72,6 +72,10 @@ target_link_libraries(gtest_local_param ${PROJECT_NAME})
...
@@ -72,6 +72,10 @@ target_link_libraries(gtest_local_param ${PROJECT_NAME})
wolf_add_gtest
(
gtest_motion_buffer gtest_motion_buffer.cpp
)
wolf_add_gtest
(
gtest_motion_buffer gtest_motion_buffer.cpp
)
target_link_libraries
(
gtest_motion_buffer
${
PROJECT_NAME
}
)
target_link_libraries
(
gtest_motion_buffer
${
PROJECT_NAME
}
)
# Problem class test
wolf_add_gtest
(
gtest_problem gtest_problem.cpp
)
target_link_libraries
(
gtest_problem
${
PROJECT_NAME
}
)
# ProcessorMotion class test
# ProcessorMotion class test
wolf_add_gtest
(
gtest_processor_motion gtest_processor_motion.cpp
)
wolf_add_gtest
(
gtest_processor_motion gtest_processor_motion.cpp
)
target_link_libraries
(
gtest_processor_motion
${
PROJECT_NAME
}
)
target_link_libraries
(
gtest_processor_motion
${
PROJECT_NAME
}
)
...
@@ -144,10 +148,6 @@ target_link_libraries(gtest_constraint_autodiff ${PROJECT_NAME})
...
@@ -144,10 +148,6 @@ target_link_libraries(gtest_constraint_autodiff ${PROJECT_NAME})
# ROI test
# ROI test
IF
(
OpenCV_FOUND
)
IF
(
OpenCV_FOUND
)
# Problem class test
wolf_add_gtest
(
gtest_problem gtest_problem.cpp
)
target_link_libraries
(
gtest_problem
${
PROJECT_NAME
}
)
wolf_add_gtest
(
gtest_roi_ORB gtest_roi_ORB.cpp
)
wolf_add_gtest
(
gtest_roi_ORB gtest_roi_ORB.cpp
)
target_link_libraries
(
gtest_roi_ORB
${
PROJECT_NAME
}
)
target_link_libraries
(
gtest_roi_ORB
${
PROJECT_NAME
}
)
ENDIF
(
OpenCV_FOUND
)
ENDIF
(
OpenCV_FOUND
)
...
...
This diff is collapsed.
Click to expand it.
src/test/gtest_problem.cpp
+
8
−
3
View file @
6ce1a070
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
#include
"../sensor_base.h"
#include
"../sensor_base.h"
#include
"../sensor_odom_3D.h"
#include
"../sensor_odom_3D.h"
#include
"../processor_odom_3D.h"
#include
"../processor_odom_3D.h"
#include
"../processor_tracker_feature_dummy.h"
#include
<iostream>
#include
<iostream>
...
@@ -78,7 +79,9 @@ TEST(Problem, Installers)
...
@@ -78,7 +79,9 @@ TEST(Problem, Installers)
SensorBasePtr
S
=
P
->
installSensor
(
"ODOM 3D"
,
"odometer"
,
xs
,
wolf_root
+
"/src/examples/sensor_odom_3D.yaml"
);
SensorBasePtr
S
=
P
->
installSensor
(
"ODOM 3D"
,
"odometer"
,
xs
,
wolf_root
+
"/src/examples/sensor_odom_3D.yaml"
);
// install processor tracker (dummy installation under an Odometry sensor -- it's OK for this test)
// install processor tracker (dummy installation under an Odometry sensor -- it's OK for this test)
ProcessorBasePtr
pt
=
P
->
installProcessor
(
"IMAGE LANDMARK"
,
"ORB landmark tracker"
,
"odometer"
,
wolf_root
+
"/src/examples/processor_image_ORB.yaml"
);
ProcessorBasePtr
pt
=
std
::
make_shared
<
ProcessorTrackerFeatureDummy
>
(
ProcessorTrackerFeatureDummy
(
5
,
10
));
S
->
addProcessor
(
pt
);
// check motion processor IS NOT set
// check motion processor IS NOT set
ASSERT_FALSE
(
P
->
getProcessorMotionPtr
());
ASSERT_FALSE
(
P
->
getProcessorMotionPtr
());
...
@@ -215,7 +218,8 @@ TEST(Problem, StateBlocks)
...
@@ -215,7 +218,8 @@ TEST(Problem, StateBlocks)
ASSERT_EQ
(
P
->
getStateBlockList
().
size
(),
2
+
3
);
ASSERT_EQ
(
P
->
getStateBlockList
().
size
(),
2
+
3
);
ASSERT_EQ
(
P
->
getStateBlockNotificationList
().
size
(),
2
+
3
);
ASSERT_EQ
(
P
->
getStateBlockNotificationList
().
size
(),
2
+
3
);
ProcessorBasePtr
pt
=
P
->
installProcessor
(
"IMAGE LANDMARK"
,
"ORB landmark tracker"
,
"camera"
,
wolf_root
+
"/src/examples/processor_image_ORB.yaml"
);
ProcessorBasePtr
pt
=
std
::
make_shared
<
ProcessorTrackerFeatureDummy
>
(
ProcessorTrackerFeatureDummy
(
5
,
10
));
St
->
addProcessor
(
pt
);
ProcessorBasePtr
pm
=
P
->
installProcessor
(
"ODOM 3D"
,
"odom integrator"
,
"odometer"
,
wolf_root
+
"/src/examples/processor_odom_3D.yaml"
);
ProcessorBasePtr
pm
=
P
->
installProcessor
(
"ODOM 3D"
,
"odom integrator"
,
"odometer"
,
wolf_root
+
"/src/examples/processor_odom_3D.yaml"
);
// 2 state blocks, estimated
// 2 state blocks, estimated
...
@@ -243,7 +247,8 @@ TEST(Problem, Covariances)
...
@@ -243,7 +247,8 @@ TEST(Problem, Covariances)
SensorBasePtr
Sm
=
P
->
installSensor
(
"ODOM 3D"
,
"odometer"
,
xs
,
wolf_root
+
"/src/examples/sensor_odom_3D.yaml"
);
SensorBasePtr
Sm
=
P
->
installSensor
(
"ODOM 3D"
,
"odometer"
,
xs
,
wolf_root
+
"/src/examples/sensor_odom_3D.yaml"
);
SensorBasePtr
St
=
P
->
installSensor
(
"CAMERA"
,
"camera"
,
xs
,
wolf_root
+
"/src/examples/camera_params_ueye_sim.yaml"
);
SensorBasePtr
St
=
P
->
installSensor
(
"CAMERA"
,
"camera"
,
xs
,
wolf_root
+
"/src/examples/camera_params_ueye_sim.yaml"
);
ProcessorBasePtr
pt
=
P
->
installProcessor
(
"IMAGE LANDMARK"
,
"ORB landmark tracker"
,
"camera"
,
wolf_root
+
"/src/examples/processor_image_ORB.yaml"
);
ProcessorBasePtr
pt
=
std
::
make_shared
<
ProcessorTrackerFeatureDummy
>
(
ProcessorTrackerFeatureDummy
(
5
,
10
));
St
->
addProcessor
(
pt
);
ProcessorBasePtr
pm
=
P
->
installProcessor
(
"ODOM 3D"
,
"odom integrator"
,
"odometer"
,
wolf_root
+
"/src/examples/processor_odom_3D.yaml"
);
ProcessorBasePtr
pm
=
P
->
installProcessor
(
"ODOM 3D"
,
"odom integrator"
,
"odometer"
,
wolf_root
+
"/src/examples/processor_odom_3D.yaml"
);
// 4 state blocks, estimated
// 4 state blocks, estimated
...
...
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