Package edu.tufts.hrilab.rl
Interface RobosuiteInterface
public interface RobosuiteInterface
-
Method Summary
Modifier and TypeMethodDescriptionvoidCreates a robosuite environment.reset()Resets the robosuite environmentvoidsetHighEnv(List<String> goal) Creates a high level observation space.Takes one step in the environment, performing the action specified.
-
Method Details
-
makeEnv
Creates a robosuite environment. See robosuite documentation for more details.- Parameters:
env_name- Name of the environment to createrobot- Name of the robot to add to the environmentrender- Whether or not the environment should be rendered/visualized
-
reset
Object reset()Resets the robosuite environment- Returns:
- Initial observation
-
step
Takes one step in the environment, performing the action specified.- Parameters:
action- Action we wish to perform. Must match the action space of the environment.- Returns:
- A tuple of observation, reward, done, truncated, and additional info.
-
setHighEnv
Creates a high level observation space. This adds an additional predicate-based space on top of the lower level joint/position/etc space automatically created with the environment.- Parameters:
goal- A set of predicates we want to observe at every time step
-