Skip to content

Commit

Permalink
Remove unrelated changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrxyz committed Mar 6, 2024
1 parent 9c3679e commit 0571ca5
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions SubjuGator/perception/subjugator_perception/nodes/buoy_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@
import tf
from geometry_msgs.msg import Point, Pose, Pose2D, PoseStamped
from image_geometry import PinholeCameraModel
from mil_ros_tools import Image_Subscriber, rosmsg_to_numpy
from mil_ros_tools import Image_Publisher, Image_Subscriber, rosmsg_to_numpy
from mil_vision_tools import CircleFinder, Threshold
from nav_msgs.msg import Odometry
from rviz_helpers import Image_Publisher
from std_msgs.msg import Header
from std_srvs.srv import SetBool, SetBoolResponse
from subjugator_msgs.srv import (
Expand All @@ -21,7 +20,7 @@
VisionRequest2DResponse,
VisionRequestResponse,
)
from subjugator_vision_tools import MultiObservation
from subjugator_vision_tools import MultiObservation, rviz


class Buoy:
Expand Down Expand Up @@ -158,6 +157,7 @@ def __init__(self):

self.image_sub = Image_Subscriber(camera, self.image_cb)
if self.debug_ros:
self.rviz = rviz.RvizVisualizer(topic="~markers")
self.mask_pub = Image_Publisher("~mask_image")
rospy.Timer(rospy.Duration(1), self.print_status)

Expand Down Expand Up @@ -398,14 +398,13 @@ def find_single_buoy(self, buoy_type):
buoy.est = self.multi_obs.lst_sqr_intersection(observations, pose_pairs)
buoy.status = "Pose found"
if self.debug_ros:
# draw_sphere(
# buoy.est,
# color=buoy.draw_colors,
# scaling=(0.2286, 0.2286, 0.2286),
# frame="map",
# _id=buoy.visual_id,
# )
pass
self.rviz.draw_sphere(
buoy.est,
color=buoy.draw_colors,
scaling=(0.2286, 0.2286, 0.2286),
frame="map",
_id=buoy.visual_id,
)
else:
buoy.status = f"{len(observations)} observations"
return center, radius
Expand Down

0 comments on commit 0571ca5

Please sign in to comment.