Skip to content

Commit

Permalink
Throw errors when running dubins car demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
hongkai-dai committed Apr 21, 2023
1 parent 5c108c6 commit 32a44d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ def compute_delta_pos(model, network_input):


if __name__ == "__main__":
raise Exception("Dubins car cannot be stabilized by a continuous controller, refer" +
"to https://arxiv.org/pdf/math/9902026.pdf for a proof. Using" +
"neural-network controllers is doomed to fail for Dubins car.")
parser = argparse.ArgumentParser(
description="Acceleration car training demo")
parser.add_argument("--generate_dynamics_data", action="store_true")
Expand Down
3 changes: 3 additions & 0 deletions neural_network_lyapunov/examples/car/train_unicycle_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ def compute_v(model, x):


if __name__ == "__main__":
raise Exception("Dubins car cannot be stabilized by a continuous controller, refer" +
"to https://arxiv.org/pdf/math/9902026.pdf for a proof. Using" +
"neural-network controllers is doomed to fail for Dubins car.")
parser = argparse.ArgumentParser(description="Unicycle training demo")
parser.add_argument("--generate_dynamics_data", action="store_true")
parser.add_argument("--load_dynamics_data",
Expand Down

0 comments on commit 32a44d4

Please sign in to comment.