def create(robot, dt): door = mc_rbdyn.get_robot_module( "env", mc_rtc.MC_ENV_DESCRIPTION_PATH + "/../mc_int_obj_description", "door") ground = mc_rbdyn.get_robot_module("env", mc_rtc.MC_ENV_DESCRIPTION_PATH, "ground") return MyFirstController([robot, door, ground], dt)
def setup_class(self): self.robots = mc_rbdyn.Robots() mc_rbdyn.RobotLoader.clear() mc_rbdyn.RobotLoader.update_robot_module_path( ["$<TARGET_FILE_DIR:jvrc1>"]) self.rm = mc_rbdyn.get_robot_module("JVRC1") self.robots.load(self.rm)
def create(robot, dt): env = mc_rbdyn.get_robot_module("env", mc_rtc.MC_ENV_DESCRIPTION_PATH, "ground") return MyFirstController([robot, env], dt)