Skip to content
Snippets Groups Projects
Commit fc45b42f authored by Joaquim Casals Buñuel's avatar Joaquim Casals Buñuel
Browse files

Refactor emplace FrameBase

parent 81b6d42f
No related branches found
No related tags found
1 merge request!256WIP: emplace
This commit is part of merge request !256. Comments created here will be created in the context of that merge request.
...@@ -47,7 +47,6 @@ Problem::Problem(const std::string& _frame_structure, SizeEigen _dim) : ...@@ -47,7 +47,6 @@ Problem::Problem(const std::string& _frame_structure, SizeEigen _dim) :
dim_ = 3; dim_ = 3;
} else if (_frame_structure == "POV" and _dim == 3) } else if (_frame_structure == "POV" and _dim == 3)
{ {
std::cout << "HOLA" << std::endl;
state_size_ = 10; state_size_ = 10;
state_cov_size_ = 9; state_cov_size_ = 9;
dim_ = 3; dim_ = 3;
...@@ -326,10 +325,8 @@ Eigen::VectorXs Problem::zeroState() ...@@ -326,10 +325,8 @@ Eigen::VectorXs Problem::zeroState()
Eigen::VectorXs state = Eigen::VectorXs::Zero(getFrameStructureSize()); Eigen::VectorXs state = Eigen::VectorXs::Zero(getFrameStructureSize());
// Set the quaternion identity for 3D states. Set only the real part to 1: // Set the quaternion identity for 3D states. Set only the real part to 1:
if (trajectory_ptr_->getFrameStructure() == "PO 3D" || if(this->getDim() == 3)
trajectory_ptr_->getFrameStructure() == "POV 3D")
state(6) = 1.0; state(6) = 1.0;
return state; return state;
} }
......
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