Skip to content
Snippets Groups Projects
Commit 7ba1c5a8 authored by Mederic Fourmy's avatar Mederic Fourmy
Browse files

Merge branch 'devel' into 24-improve-visual-system

parents 3066aa55 32dec670
No related branches found
No related tags found
1 merge request!38Draft: Resolve "Improve visual odometry"
...@@ -20,15 +20,15 @@ ...@@ -20,15 +20,15 @@
// //
//--------LICENSE_END-------- //--------LICENSE_END--------
#include "vision/landmark/landmark_point_3d.h" #include "vision/landmark/landmark_point_3d.h"
#include <core/state_block/state_block_derived.h>
namespace wolf { namespace wolf {
LandmarkPoint3d::LandmarkPoint3d(Eigen::Vector3d _position, cv::Mat _2d_descriptor) : LandmarkPoint3d::LandmarkPoint3d(Eigen::Vector3d _position, cv::Mat _2d_descriptor) :
LandmarkBase("LandmarkPoint3d", std::make_shared<StateBlock>(_position, false)), LandmarkBase("LandmarkPoint3d", std::make_shared<StatePoint3d>(_position, false)),
descriptor_(_2d_descriptor) descriptor_(_2d_descriptor)
{ {
//LandmarkPoint3d* landmark_ptr = (LandmarkPoint3d*)_p_ptr; getStateBlock('P')->setTransformable();
// position_ =
// descriptor_ = _2d_descriptor; // descriptor_ = _2d_descriptor;
} }
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include "vision/sensor/sensor_camera.h" #include "vision/sensor/sensor_camera.h"
#include "vision/math/pinhole_tools.h" #include "vision/math/pinhole_tools.h"
#include "core/state_block/state_block.h" #include "core/state_block/state_block_derived.h"
#include "core/state_block/state_quaternion.h" #include "core/state_block/state_quaternion.h"
namespace wolf namespace wolf
...@@ -31,9 +31,9 @@ namespace wolf ...@@ -31,9 +31,9 @@ namespace wolf
SensorCamera::SensorCamera(const Eigen::VectorXd& _extrinsics, const ParamsSensorCamera& _intrinsics) : SensorCamera::SensorCamera(const Eigen::VectorXd& _extrinsics, const ParamsSensorCamera& _intrinsics) :
SensorBase("SensorCamera", SensorBase("SensorCamera",
std::make_shared<StateBlock>(_extrinsics.head(3), true), std::make_shared<StatePoint3d>(_extrinsics.head(3), true),
std::make_shared<StateQuaternion>(_extrinsics.tail(4), true), std::make_shared<StateQuaternion>(_extrinsics.tail(4), true),
std::make_shared<StateBlock>(_intrinsics.pinhole_model_raw, true), std::make_shared<StateParams4>(_intrinsics.pinhole_model_raw, true),
1), 1),
img_width_(_intrinsics.width), // img_width_(_intrinsics.width), //
img_height_(_intrinsics.height), // img_height_(_intrinsics.height), //
......
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