Skip to content

Commit

Permalink
fixed calculation of dilation in _update_robot_geometries
Browse files Browse the repository at this point in the history
  • Loading branch information
Lea committed Nov 20, 2024
1 parent b27052f commit b7f7a45
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def _update_robot_geometries(self):
for robot in self.robot_buffer:
center = shapely.Point(robot.bb.center.position.x, robot.bb.center.position.y)
radius = max(numpify(robot.bb.size)[:2]) / 2
dilation = self.config_inflation_dialation * self.node.config.map.resolution
dilation = self.config_inflation_dialation / self.node.config.map.resolution
geometry = center.buffer(radius + dilation, quad_segs=CIRCLE_APPROXIMATION_SEGMENTS // 4)
self._obstacles.append(geometry)
self._obstacles_union = shapely.union_all(self._obstacles)
Expand Down

0 comments on commit b7f7a45

Please sign in to comment.