Skip to content

How to fix locations of objects in between environment resets? #87

Answered by muchvo
ameesh-shah asked this question in Q&A
Discussion options

You must be logged in to vote

If you're looking to add walls to an environment, please refer to the implementation in this class. Note that the walls implemented by this class are penetrable by default. To make them solid, you should remove the following lines:

'contype': 0,
'conaffinity': 0,

By doing so, the walls will have a physical presence. You'll just need to reimplement a class according to your needs and integrate it into your specific task like so:

self._add_geoms(Hazards(num=8, keepout=0.18))

Since walls are immovable objects, they fall under the 'geom' category. For more information on the categorization of objects, please refer to the documentation here.

If you wish to directly change the position of an ob…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ameesh-shah
Comment options

@ameesh-shah
Comment options

@muchvo
Comment options

Answer selected by ameesh-shah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants