-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f37e3e3
commit 2359559
Showing
15 changed files
with
256 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
- 为刚开始的打印参数部分加上更好看的配置,例如条条之类的或者表情 | ||
- 为刚开始的打印参数部分加上更好看的配置,例如条条之类的或者表情 | ||
- 在单目模式下,若不通过后端优化进行过滤,会在关键帧比较多且视差很小的情况下轨迹突然出现尺度问题,该问题可通过调整关键帧判断条件或者开启后端优化来解决 | ||
- 上述问题产生的原因可能是在平移不足时,三角化的点的误差太大了,但是确实满足位姿约束的点 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#pragma once | ||
#include <atomic> | ||
#include <mutex> | ||
|
||
namespace viohw { | ||
|
||
enum TrackingStatus | ||
{ | ||
TrackLost, | ||
TrackBad, | ||
TrackGood | ||
}; | ||
|
||
enum InitStatus | ||
{ | ||
NotInit, | ||
InitSuccess, | ||
InitFailed | ||
}; | ||
|
||
class SystemState | ||
{ | ||
public: | ||
SystemState() = default; | ||
~SystemState() = default; | ||
|
||
TrackingStatus getTrackerStatus() const { | ||
std::lock_guard<std::mutex> lck( tracker_status_mutex_ ); | ||
return tracking_status_; | ||
} | ||
|
||
void setTrackerStatus( const TrackingStatus &status ) { | ||
std::lock_guard<std::mutex> lck( tracker_status_mutex_ ); | ||
tracking_status_ = status; | ||
} | ||
|
||
InitStatus getInitStatus() const { | ||
std::lock_guard<std::mutex> lck( init_status_mutex_ ); | ||
return init_status_; | ||
} | ||
|
||
void setInitStatus( const InitStatus &status ) { | ||
std::lock_guard<std::mutex> lck( init_status_mutex_ ); | ||
init_status_ = status; | ||
} | ||
|
||
std::atomic<bool> is_local_ba_{ false }; | ||
std::atomic<bool> is_request_reset_{ false }; | ||
|
||
private: | ||
mutable std::mutex tracker_status_mutex_; | ||
mutable std::mutex init_status_mutex_; | ||
TrackingStatus tracking_status_ = TrackGood; | ||
InitStatus init_status_ = NotInit; | ||
}; | ||
|
||
typedef std::shared_ptr<SystemState> SystemStatePtr; | ||
typedef std::shared_ptr<const SystemState> SystemStateConstPtr; | ||
|
||
} // namespace viohw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.