Skip to content

Commit

Permalink
remove projection call
Browse files Browse the repository at this point in the history
  • Loading branch information
rodja committed Jul 17, 2024
1 parent 3351f17 commit e4bde47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion field_friend/interface/components/camera_card.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def build_svg_for_plant_provider(self) -> str:
else:
# TODO remove this when RoSys supports multiple extrinsics (see https://github.com/zauberzeug/rosys/discussions/130)
relative = self.system.odometer.prediction.relative_point(position)
screen = self.odometer.prediction.transform(relative.projection())
screen = self.odometer.prediction.transform(relative)
if screen is not None:
svg += f'<circle cx="{int(screen.x/self.shrink_factor)}" cy="{int(screen.y/self.shrink_factor)}" r="5" fill="white" />'
svg += f'<text x="{int(screen.x/self.shrink_factor)}" y="{int(screen.y/self.shrink_factor)+16}" fill="black" font-size="9" text-anchor="middle">{plant.id[:4]}</text>'
Expand Down

0 comments on commit e4bde47

Please sign in to comment.