Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add frame_publisher::get_tracking_time_elapsed_ms #579

Merged
merged 1 commit into from
Apr 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/stella_vslam/publish/frame_publisher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ cv::Mat frame_publisher::get_image() {
return img;
}

double frame_publisher::get_tracking_time_elapsed_ms() {
return elapsed_ms_;
}

unsigned int frame_publisher::draw_tracked_points(cv::Mat& img, const std::vector<cv::KeyPoint>& curr_keypts,
const std::vector<std::shared_ptr<data::landmark>>& curr_lms,
const bool mapping_is_enabled,
Expand Down
2 changes: 2 additions & 0 deletions src/stella_vslam/publish/frame_publisher.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ class frame_publisher {

cv::Mat get_image();

double get_tracking_time_elapsed_ms();

protected:
unsigned int draw_tracked_points(cv::Mat& img, const std::vector<cv::KeyPoint>& curr_keypts,
const std::vector<std::shared_ptr<data::landmark>>& curr_lms,
Expand Down
Loading