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.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was simply wondering if it is possible to set agent's
locationsattribute for the predefined tasks. I see there is alocationsattribute, but theUnderlyingclass builds the agent instance using the_build_agent()method. However, when building the agent, no class kwargs can be passed. This makes it seem like it is impossible to pass any agent class attributes. Is there any way around this?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.
All reactions