Skip to content

Commit

Permalink
Refactor robot rendering to use image instead of circle
Browse files Browse the repository at this point in the history
  • Loading branch information
ll7 committed Mar 28, 2024
1 parent ad87195 commit 50f1d70
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion robot_sf/render/sim_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,11 @@ def _zoom_camera(self, state: VisualizableSimState) \

def _draw_robot(self, pose: RobotPose):
# TODO: display robot with an image instead of a circle
pygame.draw.circle(self.screen, ROBOT_COLOR, pose[0], self.robot_radius * self.scaling)
pygame.draw.circle(
self.screen,
ROBOT_COLOR,
pose[0],
self.robot_radius * self.scaling)

def _draw_pedestrians(self, ped_pos: np.ndarray):
# TODO: display pedestrians with an image instead of a circle
Expand Down

0 comments on commit 50f1d70

Please sign in to comment.