Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for Python API #278

Merged
merged 11 commits into from
Feb 13, 2024
Next Next commit
fixes
  • Loading branch information
thowell committed Feb 6, 2024
commit af7754ec7f60f752cbc145c0da6903f248d28621
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ We provide a simple Python API for MJPC. This API is still experimental and expe
- [direct.py](python/mujoco_mpc/direct.py) for available methods for direct optimization.

## Installing via Pip
The MJPC Python module can be installed with:
First, build MJPC (see above), then MJPC Python module can be installed with:
```sh
python "${MUJOCO_MPC_ROOT}/python/${API}.py" install
```
Expand Down
2 changes: 1 addition & 1 deletion python/mujoco_mpc/agent_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def test_step_env_with_planner(self):
def test_env_initialized_to_home_keyframe(self):
model_path = (
pathlib.Path(__file__).parent.parent.parent
/ "mjpc/tasks/quadruped/task_flat.xml"
/ "build/mjpc/tasks/quadruped/task_flat.xml"
)
model = mujoco.MjModel.from_xml_path(str(model_path))

Expand Down
2 changes: 1 addition & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def finalize_options(self):
self.set_undefined_options("build_ext", ("build_lib", "build_lib"))

def run(self):
mjpc_tasks_path = Path(__file__).parent.parent / "mjpc" / "tasks"
mjpc_tasks_path = Path(__file__).parent.parent / "build" / "mjpc" / "tasks"
source_paths = (
tuple(mjpc_tasks_path.rglob("*.xml"))
+ tuple(mjpc_tasks_path.rglob("*.png"))
Expand Down