Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vision
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
plugins
vision
Commits
fea790f6
Commit
fea790f6
authored
3 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Update processor_visual_odometry.cpp
parent
73673fda
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!36
After cmake and const refactor
,
!28
Resolve "Building a new visual odometry system"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/processor/processor_visual_odometry.cpp
+5
-5
5 additions, 5 deletions
src/processor/processor_visual_odometry.cpp
with
5 additions
and
5 deletions
src/processor/processor_visual_odometry.cpp
+
5
−
5
View file @
fea790f6
...
@@ -486,16 +486,16 @@ LandmarkBasePtr ProcessorVisualOdometry::emplaceLandmark(FeatureBasePtr _feat)
...
@@ -486,16 +486,16 @@ LandmarkBasePtr ProcessorVisualOdometry::emplaceLandmark(FeatureBasePtr _feat)
Eigen
::
Vector3d
point3d
;
Eigen
::
Vector3d
point3d
;
point3d
=
pinhole
::
backprojectPoint
(
point3d
=
pinhole
::
backprojectPoint
(
getSensor
()
->
getIntrinsic
()
->
getState
(),
getSensor
()
->
getIntrinsic
()
->
getState
(),
(
std
::
static_pointer_cast
<
SensorCamera
>
(
getSensor
()))
->
getCorrectionVector
(),
(
std
::
static_pointer_cast
<
SensorCamera
>
(
getSensor
()))
->
getCorrectionVector
(),
point2d
);
point2d
);
//double distance = params_bundle_adjustment_->distance; // arbitrary value
//
double distance = params_bundle_adjustment_->distance; // arbitrary value
double
distance
=
1
;
double
distance
=
1
;
Eigen
::
Vector4d
vec_homogeneous_c
;
Eigen
::
Vector4d
vec_homogeneous_c
;
vec_homogeneous_c
=
{
point3d
(
0
),
point3d
(
1
),
point3d
(
2
),
point3d
.
norm
()
/
distance
};
vec_homogeneous_c
=
{
point3d
(
0
),
point3d
(
1
),
point3d
(
2
),
point3d
.
norm
()
/
distance
};
//
TODO:
lmk from camera to world coordinate frame.
// lmk from camera to world coordinate frame.
Transform
<
double
,
3
,
Isometry
>
T_w_r
Transform
<
double
,
3
,
Isometry
>
T_w_r
=
Translation
<
double
,
3
>
(
feat_pi
->
getFrame
()
->
getP
()
->
getState
())
=
Translation
<
double
,
3
>
(
feat_pi
->
getFrame
()
->
getP
()
->
getState
())
*
Quaterniond
(
_feat
->
getFrame
()
->
getO
()
->
getState
().
data
());
*
Quaterniond
(
_feat
->
getFrame
()
->
getO
()
->
getState
().
data
());
...
...
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