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

removed unused variables #370 #377

Closed
wants to merge 1 commit into from
Closed
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
2 changes: 1 addition & 1 deletion src/socket_publisher/data_serializer.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class data_serializer {
std::unique_ptr<std::unordered_map<unsigned int, double>> point_hash_map_;

double current_pose_hash_ = 0;
int frame_hash_ = 0;


inline double get_vec_hash(const stella_vslam::Vec3_t& point) {
return point[0] + point[1] + point[2];
Expand Down
3 changes: 0 additions & 3 deletions src/stella_vslam/mapping_module.h
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,6 @@ class mapping_module {
//! map database
data::map_database* map_db_ = nullptr;

//! BoW database
data::bow_database* bow_db_ = nullptr;

//! BoW vocabulary
data::bow_vocabulary* bow_vocab_ = nullptr;

Expand Down
3 changes: 1 addition & 2 deletions src/stella_vslam/module/initializer.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ class initializer {
private:
//! map database
data::map_database* map_db_ = nullptr;
//! BoW database
data::bow_database* bow_db_ = nullptr;

//! initializer status
initializer_state_t state_ = initializer_state_t::NotReady;

Expand Down
2 changes: 1 addition & 1 deletion src/stella_vslam/module/local_map_updater.cc
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ auto local_map_updater::find_second_local_keyframes(const std::vector<std::share
second_local_keyfrms.reserve(4 * first_local_keyframes.size());

// add the second-order keyframes to the local landmarks
auto add_second_local_keyframe = [this, &second_local_keyfrms, &already_found_keyfrm_ids](const std::shared_ptr<data::keyframe>& keyfrm) {
auto add_second_local_keyframe = [&second_local_keyfrms, &already_found_keyfrm_ids](const std::shared_ptr<data::keyframe>& keyfrm) {
if (!keyfrm) {
return false;
}
Expand Down
4 changes: 0 additions & 4 deletions src/stella_vslam/module/loop_detector.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,6 @@ class loop_detector {

//! BoW database
data::bow_database* bow_db_;
//! BoW vocabulary
data::bow_vocabulary* bow_vocab_;

//! transform optimizer
const optimize::transform_optimizer transform_optimizer_;
Expand All @@ -133,8 +131,6 @@ class loop_detector {
//! flag which indicates the loop detector is enabled or not
std::atomic<bool> loop_detector_is_enabled_{true};

//! for stereo/RGBD models, fix scale when estimating Sim3
const bool fix_scale_in_Sim3_estimation_;

//! the threshold of the number of mutual matches after the Sim3 estimation
const unsigned int num_final_matches_thr_;
Expand Down
2 changes: 1 addition & 1 deletion src/stella_vslam/system.cc
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ data::frame system::create_stereo_frame(const cv::Mat& left_img, const cv::Mat&
std::thread thread_left([this, &frm_obs, &img_gray, &mask]() {
extractor_left_->extract(img_gray, mask, keypts_, frm_obs.descriptors_);
});
std::thread thread_right([this, &frm_obs, &right_img_gray, &mask, &keypts_right, &descriptors_right]() {
std::thread thread_right([this,&right_img_gray, &mask, &keypts_right, &descriptors_right]() {
extractor_right_->extract(right_img_gray, mask, keypts_right, descriptors_right);
});
thread_left.join();
Expand Down
2 changes: 0 additions & 2 deletions src/stella_vslam/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,6 @@ class system {
feature::orb_extractor* extractor_left_ = nullptr;
//! ORB extractor for right image
feature::orb_extractor* extractor_right_ = nullptr;
//! ORB extractor only when used in initializing
feature::orb_extractor* ini_extractor_left_ = nullptr;

//! marker detector
marker_detector::base* marker_detector_ = nullptr;
Expand Down