Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wolf_ros_vision
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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_ros
wolf_ros_vision
Commits
25ea5d43
Commit
25ea5d43
authored
3 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
remove old function projectLandmarkHp
parent
31d522a7
No related branches found
Branches containing commit
No related tags found
2 merge requests
!3
After cmake and const refactor
,
!1
Resolve "Publisher for visual odometry"
Pipeline
#9700
canceled
3 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/publisher_vision.h
+0
-1
0 additions, 1 deletion
include/publisher_vision.h
src/publisher_vision.cpp
+1
-12
1 addition, 12 deletions
src/publisher_vision.cpp
with
1 addition
and
13 deletions
include/publisher_vision.h
+
0
−
1
View file @
25ea5d43
...
@@ -93,7 +93,6 @@ class PublisherVisionDebug : public Publisher
...
@@ -93,7 +93,6 @@ class PublisherVisionDebug : public Publisher
*/
*/
void
showTracks
(
cv
::
Mat
_image
,
const
TrackMatrix
&
_track_matrix
,
CaptureBasePtr
_cap_img
,
COLORFEATURES
_color_of_features
,
bool
_show_track_ID
);
void
showTracks
(
cv
::
Mat
_image
,
const
TrackMatrix
&
_track_matrix
,
CaptureBasePtr
_cap_img
,
COLORFEATURES
_color_of_features
,
bool
_show_track_ID
);
Eigen
::
Vector2d
projectLandmarkHp
(
const
LandmarkBasePtr
_lmk
,
const
CaptureBasePtr
_capture
)
const
;
Eigen
::
Vector2d
projectLandmarkHp
(
const
CaptureBasePtr
&
_capture
,
const
LandmarkBasePtr
_lmk
);
Eigen
::
Vector2d
projectLandmarkHp
(
const
CaptureBasePtr
&
_capture
,
const
LandmarkBasePtr
_lmk
);
LandmarkBasePtr
getAssociatedLandmark
(
const
TrackMatrix
&
_track_matrix
,
const
FeatureBasePtr
&
_ftr
);
LandmarkBasePtr
getAssociatedLandmark
(
const
TrackMatrix
&
_track_matrix
,
const
FeatureBasePtr
&
_ftr
);
Eigen
::
Matrix
<
double
,
3
,
4
>
getProjectionMatrix
(
const
CaptureBasePtr
_capture
)
const
;
Eigen
::
Matrix
<
double
,
3
,
4
>
getProjectionMatrix
(
const
CaptureBasePtr
_capture
)
const
;
...
...
This diff is collapsed.
Click to expand it.
src/publisher_vision.cpp
+
1
−
12
View file @
25ea5d43
...
@@ -353,17 +353,6 @@ Eigen::Matrix<double, 3, 4> PublisherVisionDebug::getProjectionMatrix(const Capt
...
@@ -353,17 +353,6 @@ Eigen::Matrix<double, 3, 4> PublisherVisionDebug::getProjectionMatrix(const Capt
return
P
;
return
P
;
}
}
// Eigen::Vector2d PublisherVisionDebug::projectLandmarkHp(const LandmarkBasePtr _lmk, const CaptureBasePtr _capture) const
// {
// auto pos = _lmk->getP()->getState();
// Eigen::Vector3d pixel_position3 = getProjectionMatrix(_capture) * getTcwMatrix(_capture) * pos;
// Eigen::Vector2d pixel_position;
// pixel_position << pixel_position3(0) / pixel_position3(2), pixel_position3(1) / pixel_position3(2);
// return pixel_position;
// }
LandmarkBasePtr
PublisherVisionDebug
::
getAssociatedLandmark
(
const
TrackMatrix
&
_track_matrix
,
const
FeatureBasePtr
&
_ftr
)
LandmarkBasePtr
PublisherVisionDebug
::
getAssociatedLandmark
(
const
TrackMatrix
&
_track_matrix
,
const
FeatureBasePtr
&
_ftr
)
{
{
const
auto
&
track_at_kfs
=
_track_matrix
.
trackAtKeyframes
(
_ftr
->
trackId
());
const
auto
&
track_at_kfs
=
_track_matrix
.
trackAtKeyframes
(
_ftr
->
trackId
());
...
@@ -423,4 +412,4 @@ void PublisherVisionDebug::showLandmarks(cv::Mat _image, const TrackMatrix& _tra
...
@@ -423,4 +412,4 @@ void PublisherVisionDebug::showLandmarks(cv::Mat _image, const TrackMatrix& _tra
}
}
}
}
}
}
\ No newline at end of file
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