Skip to content

Commit dd6618d

Browse files
committed
update gitignore and agent_test
1 parent 49388aa commit dd6618d

File tree

3 files changed

+19
-18
lines changed

3 files changed

+19
-18
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
.vs/
1717
# Exclude temporary folders
1818
*.egg-info/
19+
.eggs/
1920
build/
2021
build_cmake/
2122
# Exclude macOS folder attributes

mjpc/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ add_library(
124124
direct/trajectory.h
125125
direct/model_parameters.cc
126126
direct/model_parameters.h
127-
spline/spline.cc
128-
spline/spline.h
127+
# spline/spline.cc
128+
# spline/spline.h
129129
app.cc
130130
app.h
131131
norm.cc

python/mujoco_mpc/agent_test.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class AgentTest(parameterized.TestCase):
4646
def test_set_task_parameters(self):
4747
model_path = (
4848
pathlib.Path(__file__).parent.parent.parent
49-
/ "mjpc/tasks/cartpole/task.xml"
49+
/ "build/mjpc/tasks/cartpole/task.xml"
5050
)
5151
model = mujoco.MjModel.from_xml_path(str(model_path))
5252
with agent_lib.Agent(task_id="Cartpole", model=model) as agent:
@@ -56,7 +56,7 @@ def test_set_task_parameters(self):
5656
def test_set_subprocess_working_dir(self):
5757
model_path = (
5858
pathlib.Path(__file__).parent.parent.parent
59-
/ "mjpc/tasks/cartpole/task.xml"
59+
/ "build/mjpc/tasks/cartpole/task.xml"
6060
)
6161
model = mujoco.MjModel.from_xml_path(str(model_path))
6262

@@ -76,7 +76,7 @@ def test_set_subprocess_working_dir(self):
7676
def test_step_env_with_planner(self):
7777
model_path = (
7878
pathlib.Path(__file__).parent.parent.parent
79-
/ "mjpc/tasks/particle/task_timevarying.xml"
79+
/ "build/mjpc/tasks/particle/task_timevarying.xml"
8080
)
8181
model = mujoco.MjModel.from_xml_path(str(model_path))
8282
data = mujoco.MjData(model)
@@ -126,7 +126,7 @@ def test_action_averaging_doesnt_change_state(self, nominal):
126126
# out physics, but the API should be implemented not to mutate the state
127127
model_path = (
128128
pathlib.Path(__file__).parent.parent.parent
129-
/ "mjpc/tasks/cartpole/task.xml"
129+
/ "build/mjpc/tasks/cartpole/task.xml"
130130
)
131131
model = mujoco.MjModel.from_xml_path(str(model_path))
132132
data = mujoco.MjData(model)
@@ -161,7 +161,7 @@ def test_action_averaging_improves_control(self):
161161
# expect action averaging to be a bit better
162162
model_path = (
163163
pathlib.Path(__file__).parent.parent.parent
164-
/ "mjpc/tasks/cartpole/task.xml"
164+
/ "build/mjpc/tasks/cartpole/task.xml"
165165
)
166166
model = mujoco.MjModel.from_xml_path(str(model_path))
167167
data = mujoco.MjData(model)
@@ -213,7 +213,7 @@ def test_stepping_on_agent_side(self):
213213
"""Test an alternative way of stepping the physics, on the agent side."""
214214
model_path = (
215215
pathlib.Path(__file__).parent.parent.parent
216-
/ "mjpc/tasks/cartpole/task.xml"
216+
/ "build/mjpc/tasks/cartpole/task.xml"
217217
)
218218
model = mujoco.MjModel.from_xml_path(str(model_path))
219219
data = mujoco.MjData(model)
@@ -246,7 +246,7 @@ def test_stepping_on_agent_side(self):
246246
def test_set_cost_weights(self):
247247
model_path = (
248248
pathlib.Path(__file__).parent.parent.parent
249-
/ "mjpc/tasks/cartpole/task.xml"
249+
/ "build/mjpc/tasks/cartpole/task.xml"
250250
)
251251
model = mujoco.MjModel.from_xml_path(str(model_path))
252252

@@ -271,7 +271,7 @@ def test_set_cost_weights(self):
271271
def test_get_cost_weights(self):
272272
model_path = (
273273
pathlib.Path(__file__).parent.parent.parent
274-
/ "mjpc/tasks/cartpole/task.xml"
274+
/ "build/mjpc/tasks/cartpole/task.xml"
275275
)
276276
model = mujoco.MjModel.from_xml_path(str(model_path))
277277

@@ -310,7 +310,7 @@ def test_get_cost_weights(self):
310310
def test_set_state_with_lists(self):
311311
model_path = (
312312
pathlib.Path(__file__).parent.parent.parent
313-
/ "mjpc/tasks/particle/task_timevarying.xml"
313+
/ "build/mjpc/tasks/particle/task_timevarying.xml"
314314
)
315315
model = mujoco.MjModel.from_xml_path(str(model_path))
316316
data = mujoco.MjData(model)
@@ -330,7 +330,7 @@ def test_set_state_with_lists(self):
330330
def test_get_set_default_mode(self):
331331
model_path = (
332332
pathlib.Path(__file__).parent.parent.parent
333-
/ "mjpc/tasks/cartpole/task.xml"
333+
/ "build/mjpc/tasks/cartpole/task.xml"
334334
)
335335
model = mujoco.MjModel.from_xml_path(str(model_path))
336336
with agent_lib.Agent(task_id="Cartpole", model=model) as agent:
@@ -341,7 +341,7 @@ def test_get_set_default_mode(self):
341341
def test_get_set_mode(self):
342342
model_path = (
343343
pathlib.Path(__file__).parent.parent.parent
344-
/ "mjpc/tasks/quadruped/task_flat.xml"
344+
/ "build/mjpc/tasks/quadruped/task_flat.xml"
345345
)
346346
model = mujoco.MjModel.from_xml_path(str(model_path))
347347
with agent_lib.Agent(task_id="Quadruped Flat", model=model) as agent:
@@ -352,7 +352,7 @@ def test_get_set_mode(self):
352352
def test_get_all_modes(self):
353353
model_path = (
354354
pathlib.Path(__file__).parent.parent.parent
355-
/ "mjpc/tasks/quadruped/task_flat.xml"
355+
/ "build/mjpc/tasks/quadruped/task_flat.xml"
356356
)
357357
model = mujoco.MjModel.from_xml_path(str(model_path))
358358
with agent_lib.Agent(task_id="Quadruped Flat", model=model) as agent:
@@ -365,7 +365,7 @@ def test_get_all_modes(self):
365365
def test_set_mode_error(self):
366366
model_path = (
367367
pathlib.Path(__file__).parent.parent.parent
368-
/ "mjpc/tasks/quadruped/task_flat.xml"
368+
/ "build/mjpc/tasks/quadruped/task_flat.xml"
369369
)
370370
model = mujoco.MjModel.from_xml_path(str(model_path))
371371
with agent_lib.Agent(task_id="Quadruped Flat", model=model) as agent:
@@ -374,7 +374,7 @@ def test_set_mode_error(self):
374374
def test_set_task_parameters_from_another_agent(self):
375375
model_path = (
376376
pathlib.Path(__file__).parent.parent.parent
377-
/ "mjpc/tasks/cartpole/task.xml"
377+
/ "build/mjpc/tasks/cartpole/task.xml"
378378
)
379379
model = mujoco.MjModel.from_xml_path(str(model_path))
380380
with agent_lib.Agent(task_id="Cartpole", model=model) as agent:
@@ -393,7 +393,7 @@ def test_set_task_parameters_from_another_agent(self):
393393
def test_best_trajectory(self):
394394
model_path = (
395395
pathlib.Path(__file__).parent.parent.parent
396-
/ "mjpc/tasks/particle/task_timevarying.xml"
396+
/ "build/mjpc/tasks/particle/task_timevarying.xml"
397397
)
398398
model = mujoco.MjModel.from_xml_path(str(model_path))
399399
data = mujoco.MjData(model)
@@ -418,7 +418,7 @@ def test_best_trajectory(self):
418418
def test_set_mocap(self):
419419
model_path = (
420420
pathlib.Path(__file__).parent.parent.parent
421-
/ "mjpc/tasks/particle/task_timevarying.xml"
421+
/ "build/mjpc/tasks/particle/task_timevarying.xml"
422422
)
423423
model = mujoco.MjModel.from_xml_path(str(model_path))
424424
with agent_lib.Agent(task_id="ParticleFixed", model=model) as agent:

0 commit comments

Comments
 (0)