Creating a New Prop#
Load your XML file(s) under
roboeval/envs/xmls
Create a file Python file under
roboeval/envs/props
Necessary imports:
from pathlib import Path
from roboeval.const import ASSETS_PATH
from roboeval.envs.props.prop import Prop, CollidableProp, KinematicProp
Each prop should be a class with the following form:
class Prop(PropType):
@property
def _model_path(self) -> Path:
return ASSETS_PATH / "your/path/here"
Where prop type specifies which Prop class to inherit from