48 const double timestamp);
116 bool ConfirmTrack() {
return tracked_times_ > s_tracked_times_threshold_; }
124 s_tracked_times_threshold_ = threshold;
133 s_chosen_filter_ = chosen_filter;
141 static void SetUseFilter(
bool use_filter) { s_use_filter_ = use_filter; }
144 double timestamp_ = 0.0;
146 int tracked_times_ = 0;
147 double tracking_time_ = 0.0;
148 bool is_dead_ =
false;
149 bool is_assigned_ =
false;
152 std::shared_ptr<BaseFilter> filter_ =
nullptr;
154 static std::string s_chosen_filter_;
155 static int s_current_idx_;
156 static int s_tracked_times_threshold_;
157 static bool s_use_filter_;
double GetTimestamp()
Get the Timestamp object
base::ObjectPtr GetObs()
Get the Obs object
bool IsDead()
Track state is dead or not
void SetDead()
Set the Dead object
double GetTrackingTime()
Get the Tracking Time object
base::ObjectPtr GetObsCamera()
Get the Obs Camera object
bool ConfirmTrack()
If the target tracking time is greater than the set threshold, which means that the target has been t...
static void SetChosenFilter(const std::string &chosen_filter)
Set the Chosen Filter object
static void SetTrackedTimesThreshold(const int &threshold)
Set the Tracked Times Threshold object
void UpdataObsCamera(const base::ObjectPtr &obs_camera, const double timestamp)
update the object after association with a Camera obervation
static void SetUseFilter(bool use_filter)
Set the Use Filter object
int GetObsId() const
Get the Obs Id object
void SetObsCameraNullptr()
Set the Obs Camera Nullptr object
#define DISALLOW_COPY_AND_ASSIGN(classname)
std::shared_ptr< Object > ObjectPtr
std::shared_ptr< CameraTrack > CameraTrackPtr