formatting example
parent
119e43aeac
commit
01561bc217
|
@ -63,8 +63,8 @@ void create5PointExample1() {
|
||||||
Pose3 pose1, pose2(aRb, aTb);
|
Pose3 pose1, pose2(aRb, aTb);
|
||||||
|
|
||||||
// Create test data, we need at least 5 points
|
// Create test data, we need at least 5 points
|
||||||
vector<Point3> points = {{0, 0, 1}, {-0.1, 0, 1}, {0.1, 0, 1}, //
|
vector<Point3> points = {
|
||||||
{0, 0.5, 0.5}, {0, -0.5, 0.5}};
|
{0, 0, 1}, {-0.1, 0, 1}, {0.1, 0, 1}, {0, 0.5, 0.5}, {0, -0.5, 0.5}};
|
||||||
|
|
||||||
// Assumes example is run in ${GTSAM_TOP}/build/examples
|
// Assumes example is run in ${GTSAM_TOP}/build/examples
|
||||||
const string filename = "../../examples/Data/5pointExample1.txt";
|
const string filename = "../../examples/Data/5pointExample1.txt";
|
||||||
|
@ -81,7 +81,7 @@ void create5PointExample2() {
|
||||||
|
|
||||||
// Create test data, we need at least 5 points
|
// Create test data, we need at least 5 points
|
||||||
vector<Point3> points = {{0, 0, 100}, {-10, 0, 100}, {10, 0, 100}, //
|
vector<Point3> points = {{0, 0, 100}, {-10, 0, 100}, {10, 0, 100}, //
|
||||||
{0, 50, 50}, {0, -50, 50}, {-20, 0, 80},
|
{0, 50, 50}, {0, -50, 50}, {-20, 0, 80}, //
|
||||||
{20, -50, 80}};
|
{20, -50, 80}};
|
||||||
|
|
||||||
// Assumes example is run in ${GTSAM_TOP}/build/examples
|
// Assumes example is run in ${GTSAM_TOP}/build/examples
|
||||||
|
@ -99,7 +99,8 @@ void create18PointExample1() {
|
||||||
Pose3 pose1, pose2(aRb, aTb);
|
Pose3 pose1, pose2(aRb, aTb);
|
||||||
|
|
||||||
// Create test data, we need 15 points
|
// Create test data, we need 15 points
|
||||||
vector<Point3> points = {{0, 0, 1}, {-0.1, 0, 1}, {0.1, 0, 1}, //
|
vector<Point3> points = {
|
||||||
|
{0, 0, 1}, {-0.1, 0, 1}, {0.1, 0, 1}, //
|
||||||
{0, 0.5, 0.5}, {0, -0.5, 0.5}, {-1, -0.5, 2}, //
|
{0, 0.5, 0.5}, {0, -0.5, 0.5}, {-1, -0.5, 2}, //
|
||||||
{-1, 0.5, 2}, {0.25, -0.5, 1.5}, {0.25, 0.5, 1.5}, //
|
{-1, 0.5, 2}, {0.25, -0.5, 1.5}, {0.25, 0.5, 1.5}, //
|
||||||
{-0.1, -0.5, 0.5}, {0.1, -0.5, 1}, {0.1, 0.5, 1}, //
|
{-0.1, -0.5, 0.5}, {0.1, -0.5, 1}, {0.1, 0.5, 1}, //
|
||||||
|
|
Loading…
Reference in New Issue