pyrobosim.core.types.Entity
- class pyrobosim.core.types.Entity(*, name: str)
Generic Entity class that helps with type hinting.
Several classes in PyRoboSim (such as robots, rooms, etc.) subclass from this.
Methods
__init__(*, name)Construct a new Entity instance.
Creates graph nodes for searching.
Returns the name of the room containing the object.
is_collision_free(pose)Checks whether a pose is collision free in this entity.
is_inside(pose)Checks if a pose is inside the entity polygon.
set_open(state[, recursive])Helper function that sets the entity open or closed, including children.
Attributes
The category of the entity.
The collision polygon representing the entity.
The (optional) list of search graph nodes for this entity.
The height (in the Z direction) of the entity.
The internal collision polygon representing the entity.
Whether the entity is a charger or not.
Whether the entity is locked or not.
Whether the entity is open or not.
The name of the entity.
The (optional) list of navigation poses for this entity.
The main polygon representing the entity.
The pose of the entity.
The visualization polygon patch for the entity.
The color of the visualization polygon patch and text.