Skip to content

Visualization of grid world properties #245

@smarianimore

Description

@smarianimore

Dear MESA devs,
we are creating a custom environment inspired to the Wolf-Sheep Predation example (https://mesa.readthedocs.io/stable/examples/advanced/wolf_sheep.html)

In brief, mobile robots need to carry out collective tasks and need to communicate via pheromone traces deposited in the environment.

We modeled the pheromone value associated to each patch in the grid world using property layers.
Now we would like to visualize the pheromone value (both for debugging and for rendering example videos), however we cannot find a "proper" way to do so.
The only way we found so far is to abuse the agent abstraction by creating a "pheromone agent" in each patch of the grid world, and then rendering it (in a different way than "proper" agents---the robots).

We will probably encounter the same issue when adding obstacles and walls to our grid world: how can we rendered visually those without abusing the agent abstraction?
Is there some Solara components/methods we need to check out?

We feel we are missing something because this seems quite a basic and widely used functionality to have...(for instance, in Netlogo patches' properties can be visualized via coloring of the patches, without the need to resort to "fake" turtles)

Thanks, looking forward a kind reply.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions