fixed compile errors
parent
bf21239e41
commit
e0686484b6
|
@ -66,8 +66,8 @@ struct VisualSLAMExampleData {
|
||||||
double theta = 0.0;
|
double theta = 0.0;
|
||||||
double r = 30.0;
|
double r = 30.0;
|
||||||
for (int i=0; i<n; ++i, theta += 2*M_PI/n) {
|
for (int i=0; i<n; ++i, theta += 2*M_PI/n) {
|
||||||
Point3 C = gtsam::Point3(r*cos(theta), r*sin(theta), 0.0);
|
gtsam::Point3 C = gtsam::Point3(r*cos(theta), r*sin(theta), 0.0);
|
||||||
SimpleCamera camera = SimpleCamera::lookat(C, Point3(), Point3(0,0,1));
|
gtsam::SimpleCamera camera = gtsam::SimpleCamera::lookat(C, gtsam::Point3(), gtsam::Point3(0,0,1));
|
||||||
data.poses.push_back(camera.pose());
|
data.poses.push_back(camera.pose());
|
||||||
}
|
}
|
||||||
data.odometry = data.poses[0].between(data.poses[1]);
|
data.odometry = data.poses[0].between(data.poses[1]);
|
||||||
|
|
Loading…
Reference in New Issue