Skip to content

[bug] A* pathfinding will sometimes show up inside wall #6

@clay-arras

Description

@clay-arras

description: the pathfinding will sometimes show up inside the wall. Figure out why and fix it.

Image

notes:

  • The robot's state is tracked by self.robot.hull.position in robot_obstacles.py and by the self.maze object in the same file.
  • When the robot moves, it maps the self.maze to the rendering screen, and finds the closest tile on self.maze
  • self.maze is a 2D array, in which 3 represents a wall, 0 represents floor, and 1 and 2 represent the target and the robot.

ideas: it probably has something to do with the way that the state is stored

Metadata

Metadata

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