Remove obsolete MPC baseline names
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- experiments/current_estimator_mpc/README.md +0 -3
- experiments/current_estimator_mpc/__init__.py +0 -1
- experiments/current_estimator_mpc/checkpoint/.gitkeep +0 -0
- experiments/current_estimator_mpc/result/.gitkeep +0 -0
- experiments/current_estimator_mpc/src/__init__.py +0 -1
- experiments/current_estimator_mpc/src/config.py +0 -5
- experiments/current_estimator_mpc/src/estimator.py +0 -9
- experiments/current_estimator_mpc/src/evaluate.py +0 -10
- experiments/current_estimator_mpc/src/mpc.py +0 -19
- experiments/oracle_flow_mpc/README.md +0 -5
- experiments/oracle_flow_mpc/__init__.py +0 -1
- experiments/oracle_flow_mpc/checkpoint/.gitkeep +0 -0
- experiments/oracle_flow_mpc/result/.gitkeep +0 -0
- experiments/oracle_flow_mpc/src/__init__.py +0 -1
- experiments/oracle_flow_mpc/src/config.py +0 -5
- experiments/oracle_flow_mpc/src/evaluate.py +0 -8
- experiments/oracle_flow_mpc/src/mpc.py +0 -19
- experiments/physics_mpc_no_flow/README.md +0 -3
- experiments/physics_mpc_no_flow/__init__.py +0 -1
- experiments/physics_mpc_no_flow/checkpoint/.gitkeep +0 -0
- experiments/physics_mpc_no_flow/result/.gitkeep +0 -0
- experiments/physics_mpc_no_flow/src/__init__.py +0 -1
- experiments/physics_mpc_no_flow/src/config.py +0 -5
- experiments/physics_mpc_no_flow/src/evaluate.py +0 -8
- experiments/physics_mpc_no_flow/src/model.py +0 -12
- experiments/physics_mpc_no_flow/src/mpc.py +0 -11
- experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_double_gyre_ep000.gif +0 -3
- experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_double_gyre_ep001.gif +0 -0
- experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_double_gyre_ep002.gif +0 -3
- experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_gradient_ep000.gif +0 -0
- experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_gradient_ep001.gif +0 -0
- experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_gradient_ep002.gif +0 -0
- experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_noflow_ep000.gif +0 -0
- experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_noflow_ep001.gif +0 -0
- experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_noflow_ep002.gif +0 -0
- experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_random_fourier_ep000.gif +0 -0
- experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_random_fourier_ep001.gif +0 -0
- experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_random_fourier_ep002.gif +0 -0
- experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_shear_ep000.gif +0 -0
- experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_shear_ep001.gif +0 -0
- experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_shear_ep002.gif +0 -3
- experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_source_sink_ep000.gif +0 -0
- experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_source_sink_ep001.gif +0 -0
- experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_source_sink_ep002.gif +0 -0
- experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_source_sink_pair_ep000.gif +0 -3
- experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_source_sink_pair_ep001.gif +0 -0
- experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_source_sink_pair_ep002.gif +0 -3
- experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_turbulent_patch_ep000.gif +0 -0
- experiments/reports/paper_planning/gifs/image_planning_current_estimator_mpc_inferred_triangle_reach_target_turbulent_patch_ep001.gif +0 -0
- 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
|
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
|
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
|
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
|
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
|
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)
|
|
|