Skip to content

Commit 01561bc

Browse files
formatting example
1 parent 119e43a commit 01561bc

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

examples/CreateSFMExampleData.cpp

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ void create5PointExample1() {
6363
Pose3 pose1, pose2(aRb, aTb);
6464

6565
// Create test data, we need at least 5 points
66-
vector<Point3> points = {{0, 0, 1}, {-0.1, 0, 1}, {0.1, 0, 1}, //
67-
{0, 0.5, 0.5}, {0, -0.5, 0.5}};
66+
vector<Point3> points = {
67+
{0, 0, 1}, {-0.1, 0, 1}, {0.1, 0, 1}, {0, 0.5, 0.5}, {0, -0.5, 0.5}};
6868

6969
// Assumes example is run in ${GTSAM_TOP}/build/examples
7070
const string filename = "../../examples/Data/5pointExample1.txt";
@@ -80,9 +80,9 @@ void create5PointExample2() {
8080
Pose3 pose1, pose2(aRb, aTb);
8181

8282
// Create test data, we need at least 5 points
83-
vector<Point3> points = {{0, 0, 100}, {-10, 0, 100}, {10, 0, 100}, //
84-
{0, 50, 50}, {0, -50, 50}, {-20, 0, 80},
85-
{20, -50, 80}};
83+
vector<Point3> points = {{0, 0, 100}, {-10, 0, 100}, {10, 0, 100}, //
84+
{0, 50, 50}, {0, -50, 50}, {-20, 0, 80}, //
85+
{20, -50, 80}};
8686

8787
// Assumes example is run in ${GTSAM_TOP}/build/examples
8888
const string filename = "../../examples/Data/5pointExample2.txt";
@@ -99,12 +99,13 @@ void create18PointExample1() {
9999
Pose3 pose1, pose2(aRb, aTb);
100100

101101
// Create test data, we need 15 points
102-
vector<Point3> points = {{0, 0, 1}, {-0.1, 0, 1}, {0.1, 0, 1}, //
103-
{0, 0.5, 0.5}, {0, -0.5, 0.5}, {-1, -0.5, 2}, //
104-
{-1, 0.5, 2}, {0.25, -0.5, 1.5}, {0.25, 0.5, 1.5}, //
105-
{-0.1, -0.5, 0.5}, {0.1, -0.5, 1}, {0.1, 0.5, 1}, //
106-
{-0.1, 0, 0.5}, {-0.1, 0.5, 0.5}, {0, 0, 0.5}, //
107-
{0.1, -0.5, 0.5}, {0.1, 0, 0.5}, {0.1, 0.5, 0.5}};
102+
vector<Point3> points = {
103+
{0, 0, 1}, {-0.1, 0, 1}, {0.1, 0, 1}, //
104+
{0, 0.5, 0.5}, {0, -0.5, 0.5}, {-1, -0.5, 2}, //
105+
{-1, 0.5, 2}, {0.25, -0.5, 1.5}, {0.25, 0.5, 1.5}, //
106+
{-0.1, -0.5, 0.5}, {0.1, -0.5, 1}, {0.1, 0.5, 1}, //
107+
{-0.1, 0, 0.5}, {-0.1, 0.5, 0.5}, {0, 0, 0.5}, //
108+
{0.1, -0.5, 0.5}, {0.1, 0, 0.5}, {0.1, 0.5, 0.5}};
108109

109110
// Assumes example is run in ${GTSAM_TOP}/build/examples
110111
const string filename = "../../examples/Data/18pointExample1.txt";

0 commit comments

Comments
 (0)