Room
The room's information is encapsulated as Room
.
Attributes
Attributes | Type | Description |
---|---|---|
roomId | str | String for identifing the room. |
position | list | 2D coordinates of room center. |
boundary | list | Boundary of room represented by corners in 2D coordinates. |
name | str | The name of room. |
area | str | The area of room. |
Domain randomization - Room Sampler
MINERVAS has a scene level sampler to generate novel furniture arrangements. Users can generate various reasonable furniture arrangements for domain randomization with this sampler.
Sampler code:
from ksecs.ECS.processors.scene_processor import SceneProcessor
class RoomSampler(SceneProcessor):
def process(self):
for room in self.shader.world.rooms:
room.randomize_layout(self.shader.world)