Skip to content
Snippets Groups Projects
Commit 8915b072 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Fix small detail in gtest

parent baf293a7
No related branches found
No related tags found
1 merge request!345Resolve "StateBlock perturbation helper function for gtests"
Pipeline #5028 passed
......@@ -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++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment