Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zha0ming1e committed Mar 16, 2021
1 parent 4b4be1a commit 61ab6ad
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ There are two examples which are implemented by LEGO (one of non-linear data fit
**Run**

```bash
./bin/example_pose_graph_lie_algebra ./lego/examples/pose_graph/sphere.g2o 0
./bin/example_pose_graph_lie_algebra ./lego/examples/pose_graph/sphere_with_noise.g2o 0
```

**Output**
Expand Down
4 changes: 2 additions & 2 deletions lego/examples/pose_graph/example_pose_graph_SE3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class EdgeSE3 : public lego::BaseEdge {
/// main
int main(int argc, char **argv) {
if (argc != 3) {
cout << "Usage: [RUN_FILE_example_pose_graph] [sphere.g2o] [STRATEGY_NO.] \nError: argc is not 3. " << endl;
cout << "Usage: [RUN_FILE_example_pose_graph] [sphere_with_noise.g2o] [STRATEGY_NO.] \nError: argc is not 3. " << endl;
return 1;
}

Expand All @@ -168,7 +168,7 @@ int main(int argc, char **argv) {
problem.setStrategyType(lego::Problem::StrategyType::STRATEGY1);
strategy_no = "1";
} else {
std::cerr << "Usage: [RUN_FILE_example_pose_graph] [sphere.g2o] [STRATEGY_NO.] "
std::cerr << "Usage: [RUN_FILE_example_pose_graph] [sphere_with_noise.g2o] [STRATEGY_NO.] "
<< "\nError: strategy index: " << argv[2] << " dose not exist. " << std::endl;
return 2;
}
Expand Down
4 changes: 2 additions & 2 deletions lego/examples/pose_graph/example_pose_graph_lie_algebra.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class EdgeLieAlgebra : public lego::BaseEdge {
/// main
int main(int argc, char **argv) {
if (argc != 3) {
cout << "Usage: [RUN_FILE_example_pose_graph] [sphere.g2o] [STRATEGY_NO.] \nError: argc is not 3. " << endl;
cout << "Usage: [RUN_FILE_example_pose_graph] [sphere_with_noise.g2o] [STRATEGY_NO.] \nError: argc is not 3. " << endl;
return 1;
}

Expand All @@ -169,7 +169,7 @@ int main(int argc, char **argv) {
problem.setStrategyType(lego::Problem::StrategyType::STRATEGY1);
strategy_no = "1";
} else {
std::cerr << "Usage: [RUN_FILE_example_pose_graph] [sphere.g2o] [STRATEGY_NO.] "
std::cerr << "Usage: [RUN_FILE_example_pose_graph] [sphere_with_noise.g2o] [STRATEGY_NO.] "
<< "\nError: strategy index: " << argv[2] << " dose not exist. " << std::endl;
return 2;
}
Expand Down
File renamed without changes.

0 comments on commit 61ab6ad

Please sign in to comment.