-
I was simply wondering if it is possible to set agent's My use case is for fixing the agent's position and requiring it to start from a specific location, not a random location. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I'm very sorry for overlooking this discussion. Yes, you can certainly fix the position of any object. Please refer to this parameter. Here’s how you could use this feature: class GoalLevel0(BaseTask):
"""An agent must navigate to a goal."""
def __init__(self, config) -> None:
super().__init__(config=config)
self.placements_conf.extents = [-1, -1, 1, 1]
self._add_geoms(Goal(keepout=0.305))
self.last_dist_goal = None
self.agent.locations = [(0, 0)] # location
self.agent.rot= np.pi/2 * 0 # rotation |
Beta Was this translation helpful? Give feedback.
I'm very sorry for overlooking this discussion. Yes, you can certainly fix the position of any object. Please refer to this parameter. Here’s how you could use this feature: