Commit f56f13f3 authored by oscar's avatar oscar

修改Xd为Xf因为需要用float,不能使用double

parent 4978d6a1
......@@ -13,7 +13,7 @@ void BaseTrack::Init(const std::vector<float>& data)
int size = data.size();
if (size > m_num_obs)
return;
Eigen::VectorXd observation = Eigen::VectorXd::Zero(size);
Eigen::VectorXf observation = Eigen::VectorXf::Zero(size);
for (int i = 0; i < data.size(); i++)
observation(i) = data[i];
kf_->x_.head(size) << observation;
......@@ -43,7 +43,7 @@ void BaseTrack::Update(const std::vector<float>& data)
// observation - center_x, center_y, area, ratio
int size = data.size();
Eigen::VectorXd observation = Eigen::VectorXd::Zero(size);
Eigen::VectorXf observation = Eigen::VectorXf::Zero(size);
for (int i = 0; i < data.size(); i++)
observation(i) = data[i];
kf_->Update(observation);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment