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
8027e231
Commit
8027e231
authored
5 years ago
by
Pep Martí Saumell
Browse files
Options
Downloads
Patches
Plain Diff
Fixed gest_odom2d
parent
7d8ac7dd
No related branches found
No related tags found
1 merge request
!298
WIP: Resolve "New factorRelativePose2DWithExtrinsics"
Pipeline
#3860
failed
5 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/gtest_odom_2D.cpp
+5
-3
5 additions, 3 deletions
test/gtest_odom_2D.cpp
with
5 additions
and
3 deletions
test/gtest_odom_2D.cpp
+
5
−
3
View file @
8027e231
...
...
@@ -113,6 +113,7 @@ TEST(Odom2D, FactorFix_and_FactorOdom2D)
// GND
// `absolute` is made with FactorFix
// `motion` is made with FactorOdom2D
// Odom sensor extrinsics: Tr_s = identity
std
::
cout
<<
std
::
setprecision
(
4
);
...
...
@@ -126,20 +127,22 @@ TEST(Odom2D, FactorFix_and_FactorOdom2D)
ProblemPtr
Pr
=
Problem
::
create
(
"PO"
,
2
);
CeresManager
ceres_manager
(
Pr
);
SensorBasePtr
sensor_odom2d
=
Pr
->
installSensor
(
"ODOM 2D"
,
"odom"
,
Vector3s
(
0
,
0
,
0
));
// KF0 and absolute prior
FrameBasePtr
F0
=
Pr
->
setPrior
(
x0
,
P0
,
t0
,
dt
/
2
);
// KF1 and motion from KF0
t
+=
dt
;
FrameBasePtr
F1
=
Pr
->
emplaceFrame
(
KEY
,
Vector3s
::
Zero
(),
t
);
auto
C1
=
CaptureBase
::
emplace
<
CaptureBase
>
(
F1
,
"ODOM 2D"
,
t
);
auto
C1
=
CaptureBase
::
emplace
<
CaptureBase
>
(
F1
,
"ODOM 2D"
,
t
,
sensor_odom2d
);
auto
f1
=
FeatureBase
::
emplace
<
FeatureBase
>
(
C1
,
"ODOM 2D"
,
delta
,
delta_cov
);
auto
c1
=
FactorBase
::
emplace
<
FactorOdom2D
>
(
f1
,
f1
,
F0
,
nullptr
);
// KF2 and motion from KF1
t
+=
dt
;
FrameBasePtr
F2
=
Pr
->
emplaceFrame
(
KEY
,
Vector3s
::
Zero
(),
t
);
auto
C2
=
CaptureBase
::
emplace
<
CaptureBase
>
(
F2
,
"ODOM 2D"
,
t
);
auto
C2
=
CaptureBase
::
emplace
<
CaptureBase
>
(
F2
,
"ODOM 2D"
,
t
,
sensor_odom2d
);
auto
f2
=
FeatureBase
::
emplace
<
FeatureBase
>
(
C2
,
"ODOM 2D"
,
delta
,
delta_cov
);
auto
c2
=
FactorBase
::
emplace
<
FactorOdom2D
>
(
f2
,
f2
,
F1
,
nullptr
);
...
...
@@ -486,4 +489,3 @@ int main(int argc, char **argv)
testing
::
InitGoogleTest
(
&
argc
,
argv
);
return
RUN_ALL_TESTS
();
}
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