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

Update landmark_base.cpp

parent 4b609458
No related branches found
No related tags found
1 merge request!316Arrange factories
Pipeline #4240 passed
......@@ -3,6 +3,7 @@
#include "core/factor/factor_base.h"
#include "core/map/map_base.h"
#include "core/state_block/state_block.h"
#include "core/state_block/state_angle.h"
#include "core/state_block/state_quaternion.h"
#include "core/common/factory.h"
#include "core/yaml/yaml_conversion.h"
......@@ -216,7 +217,7 @@ LandmarkBasePtr LandmarkBase::create(const YAML::Node& _node)
if (ori.size() == 4)
ori_sb = std::make_shared<StateQuaternion>(ori, ori_fixed);
else
ori_sb = std::make_shared<StateBlock>(ori, ori_fixed);
ori_sb = std::make_shared<StateAngle>(ori(0), ori_fixed);
}
LandmarkBasePtr lmk = std::make_shared<LandmarkBase>("BASE", pos_sb, ori_sb);
......@@ -228,7 +229,7 @@ LandmarkBasePtr LandmarkBase::create(const YAML::Node& _node)
// Register landmark creator
namespace
{
const bool WOLF_UNUSED registered_lmk_ahp = LandmarkFactory::get().registerCreator("BASE", LandmarkBase::create);
const bool WOLF_UNUSED registered_lmk_base = LandmarkFactory::get().registerCreator("BASE", LandmarkBase::create);
}
} // namespace wolf
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