Skip to content

Commit dd72f41

Browse files
committed
Optionally use alternative walker xml.
1 parent 962ea24 commit dd72f41

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

flybody/tasks/base.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def __init__(
4747
future_steps: int = 0,
4848
initialize_qvel: bool = False,
4949
observables_options: dict | None = None,
50+
walker_xml_path: str | None = None,
5051
):
5152
"""Construct a fruitfly task.
5253
@@ -84,6 +85,7 @@ def __init__(
8485
observables_options (optional): A dict of dicts of configuration options
8586
keyed on observable names, or a dict of configuration options, which
8687
will propagate those options to all observables.
88+
walker_xml_path: Optional alternative XML file to use for the fruitfly.
8789
"""
8890
self._time_limit = time_limit
8991
self._initialize_qvel = initialize_qvel
@@ -106,6 +108,7 @@ def __init__(
106108

107109
# Instantiate a fruitfly walker.
108110
self._walker = walker(name='walker',
111+
xml_path=walker_xml_path,
109112
use_legs=use_legs,
110113
use_wings=use_wings,
111114
use_mouth=use_mouth,

0 commit comments

Comments
 (0)