cccat6 commited on
Commit
02c1355
·
verified ·
1 Parent(s): cc396fd

Remove obsolete MPC baseline names

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. experiments/current_estimator_mpc/README.md +0 -3
  2. experiments/current_estimator_mpc/__init__.py +0 -1
  3. experiments/current_estimator_mpc/checkpoint/.gitkeep +0 -0
  4. experiments/current_estimator_mpc/result/.gitkeep +0 -0
  5. experiments/current_estimator_mpc/src/__init__.py +0 -1
  6. experiments/current_estimator_mpc/src/config.py +0 -5
  7. experiments/current_estimator_mpc/src/estimator.py +0 -9
  8. experiments/current_estimator_mpc/src/evaluate.py +0 -10
  9. experiments/current_estimator_mpc/src/mpc.py +0 -19
  10. experiments/oracle_flow_mpc/README.md +0 -5
  11. experiments/oracle_flow_mpc/__init__.py +0 -1
  12. experiments/oracle_flow_mpc/checkpoint/.gitkeep +0 -0
  13. experiments/oracle_flow_mpc/result/.gitkeep +0 -0
  14. experiments/oracle_flow_mpc/src/__init__.py +0 -1
  15. experiments/oracle_flow_mpc/src/config.py +0 -5
  16. experiments/oracle_flow_mpc/src/evaluate.py +0 -8
  17. experiments/oracle_flow_mpc/src/mpc.py +0 -19
  18. experiments/physics_mpc_no_flow/README.md +0 -3
  19. experiments/physics_mpc_no_flow/__init__.py +0 -1
  20. experiments/physics_mpc_no_flow/checkpoint/.gitkeep +0 -0
  21. experiments/physics_mpc_no_flow/result/.gitkeep +0 -0
  22. experiments/physics_mpc_no_flow/src/__init__.py +0 -1
  23. experiments/physics_mpc_no_flow/src/config.py +0 -5
  24. experiments/physics_mpc_no_flow/src/evaluate.py +0 -8
  25. experiments/physics_mpc_no_flow/src/model.py +0 -12
  26. experiments/physics_mpc_no_flow/src/mpc.py +0 -11
  27. experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_double_gyre_ep000.gif +0 -3
  28. experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_double_gyre_ep001.gif +0 -0
  29. experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_double_gyre_ep002.gif +0 -3
  30. experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_gradient_ep000.gif +0 -0
  31. experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_gradient_ep001.gif +0 -0
  32. experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_gradient_ep002.gif +0 -0
  33. experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_noflow_ep000.gif +0 -0
  34. experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_noflow_ep001.gif +0 -0
  35. experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_noflow_ep002.gif +0 -0
  36. experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_random_fourier_ep000.gif +0 -0
  37. experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_random_fourier_ep001.gif +0 -0
  38. experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_random_fourier_ep002.gif +0 -0
  39. experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_shear_ep000.gif +0 -0
  40. experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_shear_ep001.gif +0 -0
  41. experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_shear_ep002.gif +0 -3
  42. experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_source_sink_ep000.gif +0 -0
  43. experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_source_sink_ep001.gif +0 -0
  44. experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_source_sink_ep002.gif +0 -0
  45. experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_source_sink_pair_ep000.gif +0 -3
  46. experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_source_sink_pair_ep001.gif +0 -0
  47. experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_source_sink_pair_ep002.gif +0 -3
  48. experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_turbulent_patch_ep000.gif +0 -0
  49. experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_turbulent_patch_ep001.gif +0 -0
  50. experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_turbulent_patch_ep002.gif +0 -0
experiments/current_estimator_mpc/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Current-Estimator MPC Baseline
2
-
3
- Traditional MPC baseline with an online estimator for approximately uniform current drift.
 
 
 
 
experiments/current_estimator_mpc/__init__.py DELETED
@@ -1 +0,0 @@
1
- """Current-estimator MPC experiment package."""
 
 
experiments/current_estimator_mpc/checkpoint/.gitkeep DELETED
File without changes
experiments/current_estimator_mpc/result/.gitkeep DELETED
File without changes
experiments/current_estimator_mpc/src/__init__.py DELETED
@@ -1 +0,0 @@
1
- """Current-estimator MPC source package."""
 
 
experiments/current_estimator_mpc/src/config.py DELETED
@@ -1,5 +0,0 @@
1
- """Current-estimator MPC config."""
2
-
3
-
4
- def default_config():
5
- return {"goal": [8.0, 8.0], "gain": 0.65, "current_gain": 0.5}
 
 
 
 
 
 
experiments/current_estimator_mpc/src/estimator.py DELETED
@@ -1,9 +0,0 @@
1
- """Online current estimator."""
2
-
3
- import numpy as np
4
-
5
- from experiments.shared.src.vision.pose_from_image import estimate_pose_from_clean_image
6
-
7
- def estimate_current(history, config):
8
- poses = np.stack([estimate_pose_from_clean_image(img) for img in history], axis=0)
9
- return poses[-1, :2] - poses[0, :2]
 
 
 
 
 
 
 
 
 
 
experiments/current_estimator_mpc/src/evaluate.py DELETED
@@ -1,10 +0,0 @@
1
- """Current-estimator MPC evaluation."""
2
-
3
- from experiments.current_estimator_mpc.src.config import default_config
4
- from experiments.current_estimator_mpc.src.estimator import estimate_current
5
- from experiments.current_estimator_mpc.src.mpc import plan
6
-
7
- def evaluate(config):
8
- cfg = default_config() | config
9
- current = estimate_current(config["history"], cfg)
10
- return plan(config["history"][-1], current, {"goal": cfg["goal"]}, cfg)
 
 
 
 
 
 
 
 
 
 
 
experiments/current_estimator_mpc/src/mpc.py DELETED
@@ -1,19 +0,0 @@
1
- """MPC with online current estimate."""
2
-
3
- import numpy as np
4
-
5
- from experiments.shared.src.control.geometric import goal_action
6
- from experiments.shared.src.vision.pose_from_image import estimate_pose_from_clean_image
7
-
8
- def plan(state, current_estimate, task, config):
9
- pose = estimate_pose_from_clean_image(state)
10
- goal = np.asarray(task["goal"], dtype=np.float32)
11
- return goal_action(
12
- pose,
13
- goal,
14
- int(config["action_dim"]),
15
- float(config["gain"]),
16
- 0.6,
17
- drift=np.asarray(current_estimate, dtype=np.float32),
18
- drift_gain=float(config["current_gain"]),
19
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
experiments/oracle_flow_mpc/README.md DELETED
@@ -1,5 +0,0 @@
1
- # Oracle-Flow MPC Upper Bound
2
-
3
- MPC baseline with access to the true simulator flow field.
4
-
5
- This is an upper bound, not a fair comparison method.
 
 
 
 
 
 
experiments/oracle_flow_mpc/__init__.py DELETED
@@ -1 +0,0 @@
1
- """Oracle-flow MPC experiment package."""
 
 
experiments/oracle_flow_mpc/checkpoint/.gitkeep DELETED
File without changes
experiments/oracle_flow_mpc/result/.gitkeep DELETED
File without changes
experiments/oracle_flow_mpc/src/__init__.py DELETED
@@ -1 +0,0 @@
1
- """Oracle-flow MPC source package."""
 
 
experiments/oracle_flow_mpc/src/config.py DELETED
@@ -1,5 +0,0 @@
1
- """Oracle-flow MPC config."""
2
-
3
-
4
- def default_config():
5
- return {"goal": [8.0, 8.0], "gain": 0.65, "flow_gain": 1.0}
 
 
 
 
 
 
experiments/oracle_flow_mpc/src/evaluate.py DELETED
@@ -1,8 +0,0 @@
1
- """Oracle-flow MPC evaluation."""
2
-
3
- from experiments.oracle_flow_mpc.src.config import default_config
4
- from experiments.oracle_flow_mpc.src.mpc import plan
5
-
6
- def evaluate(config):
7
- cfg = default_config() | config
8
- return plan(config["image"], config["true_flow"], {"goal": cfg["goal"]}, cfg)
 
 
 
 
 
 
 
 
 
experiments/oracle_flow_mpc/src/mpc.py DELETED
@@ -1,19 +0,0 @@
1
- """Oracle-flow MPC."""
2
-
3
- import numpy as np
4
-
5
- from experiments.shared.src.control.geometric import goal_action
6
- from experiments.shared.src.vision.pose_from_image import estimate_pose_from_clean_image
7
-
8
- def plan(state, true_flow, task, config):
9
- pose = estimate_pose_from_clean_image(state)
10
- goal = np.asarray(task["goal"], dtype=np.float32)
11
- return goal_action(
12
- pose,
13
- goal,
14
- int(config["action_dim"]),
15
- float(config["gain"]),
16
- 0.6,
17
- drift=np.asarray(true_flow, dtype=np.float32),
18
- drift_gain=float(config["flow_gain"]),
19
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
experiments/physics_mpc_no_flow/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Physics MPC Without Flow Baseline
2
-
3
- Traditional physics-based MPC using known boat dynamics while assuming no external flow.
 
 
 
 
experiments/physics_mpc_no_flow/__init__.py DELETED
@@ -1 +0,0 @@
1
- """Physics MPC without flow experiment package."""
 
 
experiments/physics_mpc_no_flow/checkpoint/.gitkeep DELETED
File without changes
experiments/physics_mpc_no_flow/result/.gitkeep DELETED
File without changes
experiments/physics_mpc_no_flow/src/__init__.py DELETED
@@ -1 +0,0 @@
1
- """Physics MPC without flow source package."""
 
 
experiments/physics_mpc_no_flow/src/config.py DELETED
@@ -1,5 +0,0 @@
1
- """Physics MPC without flow config."""
2
-
3
-
4
- def default_config():
5
- return {"goal": [8.0, 8.0], "gain": 0.65}
 
 
 
 
 
 
experiments/physics_mpc_no_flow/src/evaluate.py DELETED
@@ -1,8 +0,0 @@
1
- """Physics MPC without flow evaluation."""
2
-
3
- from experiments.physics_mpc_no_flow.src.config import default_config
4
- from experiments.physics_mpc_no_flow.src.mpc import plan
5
-
6
- def evaluate(config):
7
- cfg = default_config() | config
8
- return plan(config["image"], {"goal": cfg["goal"]}, cfg)
 
 
 
 
 
 
 
 
 
experiments/physics_mpc_no_flow/src/model.py DELETED
@@ -1,12 +0,0 @@
1
- """Known boat dynamics model without external flow."""
2
-
3
- import numpy as np
4
-
5
- def predict_next_state(state, action, config):
6
- next_state = np.asarray(state, dtype=np.float32).copy()
7
- theta = float(next_state[2])
8
- speed = 0.04 * float(np.mean(action[:2]))
9
- next_state[0] += speed * np.cos(theta)
10
- next_state[1] += speed * np.sin(theta)
11
- next_state[2] += 0.03 * float(action[0] - action[1])
12
- return next_state
 
 
 
 
 
 
 
 
 
 
 
 
 
experiments/physics_mpc_no_flow/src/mpc.py DELETED
@@ -1,11 +0,0 @@
1
- """Physics MPC without flow."""
2
-
3
- import numpy as np
4
-
5
- from experiments.shared.src.control.geometric import goal_action
6
- from experiments.shared.src.vision.pose_from_image import estimate_pose_from_clean_image
7
-
8
- def plan(state, task, config):
9
- pose = estimate_pose_from_clean_image(state)
10
- goal = np.asarray(task["goal"], dtype=np.float32)
11
- return goal_action(pose, goal, int(config["action_dim"]), float(config["gain"]), 0.6)
 
 
 
 
 
 
 
 
 
 
 
 
experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_double_gyre_ep000.gif DELETED

Git LFS Details

  • SHA256: 95675c64255273f56390d795b0f4282f1aed53438f58f1ce83aa881ffbc1af54
  • Pointer size: 131 Bytes
  • Size of remote file: 121 kB
experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_double_gyre_ep001.gif DELETED
Binary file (87.8 kB)
 
experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_double_gyre_ep002.gif DELETED

Git LFS Details

  • SHA256: 541bd78be17be13fc231a47cd71a12377ccb87e6401ab3869fa04d789fcbaaf4
  • Pointer size: 131 Bytes
  • Size of remote file: 107 kB
experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_gradient_ep000.gif DELETED
Binary file (76 kB)
 
experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_gradient_ep001.gif DELETED
Binary file (86.6 kB)
 
experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_gradient_ep002.gif DELETED
Binary file (82.1 kB)
 
experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_noflow_ep000.gif DELETED
Binary file (93.7 kB)
 
experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_noflow_ep001.gif DELETED
Binary file (79.8 kB)
 
experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_noflow_ep002.gif DELETED
Binary file (72.7 kB)
 
experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_random_fourier_ep000.gif DELETED
Binary file (89.4 kB)
 
experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_random_fourier_ep001.gif DELETED
Binary file (84.3 kB)
 
experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_random_fourier_ep002.gif DELETED
Binary file (97.4 kB)
 
experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_shear_ep000.gif DELETED
Binary file (70.2 kB)
 
experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_shear_ep001.gif DELETED
Binary file (77.8 kB)
 
experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_shear_ep002.gif DELETED

Git LFS Details

  • SHA256: dd9ec6424fc732d283794518958506dcc175923d422db91ce7dadc730c48bab9
  • Pointer size: 131 Bytes
  • Size of remote file: 102 kB
experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_source_sink_ep000.gif DELETED
Binary file (86.6 kB)
 
experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_source_sink_ep001.gif DELETED
Binary file (70.3 kB)
 
experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_source_sink_ep002.gif DELETED
Binary file (99.6 kB)
 
experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_source_sink_pair_ep000.gif DELETED

Git LFS Details

  • SHA256: e0909076c676adf74c1bcb3b744b0022c116845286997c0163713e2802a97880
  • Pointer size: 131 Bytes
  • Size of remote file: 110 kB
experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_source_sink_pair_ep001.gif DELETED
Binary file (75.9 kB)
 
experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_source_sink_pair_ep002.gif DELETED

Git LFS Details

  • SHA256: 5f06beae9d8851ed307d5065ec560a19db72d6a8a2e2493fbff4b06e1f3b68c5
  • Pointer size: 131 Bytes
  • Size of remote file: 101 kB
experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_turbulent_patch_ep000.gif DELETED
Binary file (86.2 kB)
 
experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_turbulent_patch_ep001.gif DELETED
Binary file (72.2 kB)
 
experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_turbulent_patch_ep002.gif DELETED
Binary file (83.3 kB)