Skip to content

Commit 3e55e96

Browse files
author
robotvision
committed
VERSION 1.0.2
- bugfixes
1 parent 1f20b5a commit 3e55e96

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

VERSION.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.1
1+
1.0.2

rss2010_demo.cpp

+11-10
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,7 @@ void figure2()
512512
RobotVision::BundleAdjuster<SE3<> ,6,3,3,IdObs<2>,2> ba;
513513

514514
// map points into updated frames
515+
cor7_point_vec = point_vec;
515516
for (uint i=0; i<obs_vec.size(); ++i)
516517
{
517518
int frame_id = obs_vec[i].frame_id;
@@ -522,14 +523,16 @@ void figure2()
522523
Vector<3> rel_point = transform(sim_vec[frame_id], point_vec[point_id]);
523524
Vector<3> cor_point
524525
= transform(updated_trans7_list[id].inverse(),rel_point);
525-
cor7_point_vec.push_back(cor_point);
526-
}
527-
else{
528-
cor7_point_vec.push_back(point_vec[point_id]);
526+
527+
528+
cor7_point_vec[point_id] = cor_point;
529529
}
530+
530531
}
531532

532533
// map points into updated frames
534+
cor_point_vec = point_vec;
535+
533536
for (uint i=0; i<obs_vec.size(); ++i)
534537
{
535538
int frame_id = obs_vec[i].frame_id;
@@ -540,11 +543,9 @@ void figure2()
540543
Vector<3> rel_point = transform(sim_vec[frame_id], point_vec[point_id]);
541544
Vector<3> cor_point
542545
= transform(updated_trans6_list[id].inverse(),rel_point);
543-
cor_point_vec.push_back(cor_point);
544-
}
545-
else{
546-
cor_point_vec.push_back(point_vec[point_id]);
546+
cor_point_vec[point_id] = cor_point;
547547
}
548+
548549
}
549550

550551
cor7_point_vec_vorher =cor7_point_vec;
@@ -1325,8 +1326,8 @@ void figure3()
13251326
median_scale = 1./median_scale;
13261327

13271328
double scale_drift = median_scale-1;
1328-
double rmse_sim3 = v1/num_frames;
1329-
double rmse_se3 = v2/num_frames;
1329+
double rmse_sim3 = sqrt(v1/num_frames);
1330+
double rmse_se3 = sqrt(v2/num_frames);
13301331

13311332
sum_rmse_se3 += rmse_se3;
13321333
sum_rmse_sim3 += rmse_sim3;

0 commit comments

Comments
 (0)