Creating a New Prop

Creating a New Prop#

  1. Load your XML file(s) under roboeval/envs/xmls

  2. Create a file Python file under roboeval/envs/props

  3. Necessary imports:

from pathlib import Path
from roboeval.const import ASSETS_PATH
from roboeval.envs.props.prop import Prop, CollidableProp, KinematicProp
  1. 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