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
8915b072
Commit
8915b072
authored
5 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Fix small detail in gtest
parent
baf293a7
No related branches found
No related tags found
1 merge request
!345
Resolve "StateBlock perturbation helper function for gtests"
Pipeline
#5028
passed
5 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/gtest_problem.cpp
+8
-9
8 additions, 9 deletions
test/gtest_problem.cpp
with
8 additions
and
9 deletions
test/gtest_problem.cpp
+
8
−
9
View file @
8915b072
...
...
@@ -338,19 +338,18 @@ TEST(Problem, perturb)
Vector3d
pose
;
pose
<<
0
,
0
,
0
;
int
i
=
0
;
for
(
TimeStamp
t
=
0.0
;
t
<
2.0
;
t
+=
1.0
)
{
for
(
int
i
=
0
;
i
<
2
;
i
++
)
auto
F
=
problem
->
emplaceFrame
(
KEY
,
pose
,
t
);
if
(
i
==
0
)
F
->
fix
();
for
(
int
j
=
0
;
j
<
2
;
j
++
)
{
auto
F
=
problem
->
emplaceFrame
(
KEY
,
pose
,
t
);
if
(
i
==
0
)
F
->
fix
();
for
(
int
j
=
0
;
j
<
2
;
j
++
)
{
auto
sb
=
std
::
make_shared
<
StateBlock
>
(
Vector3d
(
1
,
1
,
1
));
auto
cap
=
CaptureBase
::
emplace
<
CaptureBase
>
(
F
,
"CaptureBase"
,
t
,
sensor
,
nullptr
,
nullptr
,
sb
);
}
auto
sb
=
std
::
make_shared
<
StateBlock
>
(
Vector3d
(
1
,
1
,
1
));
auto
cap
=
CaptureBase
::
emplace
<
CaptureBase
>
(
F
,
"CaptureBase"
,
t
,
sensor
,
nullptr
,
nullptr
,
sb
);
}
i
++
;
}
for
(
int
l
=
0
;
l
<
2
;
l
++
)
...
...
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