Skip to content

Commit

Permalink
remove log from plant locator
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalzauberzeug committed Sep 6, 2024
1 parent 4adc702 commit c3c76d4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions field_friend/automations/plant_locator.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,6 @@ async def _detect_plants(self) -> None:
camera.calibration.extrinsics = camera.calibration.extrinsics.as_frame(
'zedxmini').in_frame(self.odometer.prediction_frame)
world_point_3d = camera_point_3d.in_frame(camera.calibration.extrinsics).resolve()
# rosys_1 | 2024-09-06 12:57:03.962 [INFO] field_friend/automations/plant_locator.py:130: camera_point_3d: Point3d(0.061, -0.002, 0.469) -> world_point_3d: (array([0.14884793]), array([-0.02568044]), array([0.46912057]))
# rosys_1 | 2024-09-06 12:57:04.002 [INFO] field_friend/automations/plant_locator.py:130: camera_point_3d: Point3d(0.006, -0.073, 0.525) -> world_point_3d: (array([0.09310573]), array([-0.09459265]), array([0.52506744]))
# self.log.info(f'camera_point_3d: {camera_point_3d} -> world_point_3d: {world_point_3d.tuple}')
if world_point_3d is None:
self.log.error('could not generate world point of detection, calibration error')
continue
Expand All @@ -130,7 +127,6 @@ async def _detect_plants(self) -> None:
await self.plant_provider.add_weed(plant)
elif d.category_name in self.crop_category_names and d.confidence >= self.minimum_crop_confidence:
# self.log.info(f'{d.category_name} found')
self.log.info(f'camera_point_3d: {camera_point_3d} -> world_point_3d: {world_point_3d.tuple}')
self.plant_provider.add_crop(plant)
elif d.category_name not in self.crop_category_names and d.category_name not in self.weed_category_names:
self.log.info(f'{d.category_name} not in categories')
Expand Down

0 comments on commit c3c76d4

Please sign in to comment.