Skip to content

Commit

Permalink
Fix: Ahora recoge los valores del array camera_topics
Browse files Browse the repository at this point in the history
  • Loading branch information
vlozano committed Sep 23, 2024
1 parent 40d38e9 commit 5863fa0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/image_object_detection/image_object_detection_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

class ImageDetectObjectNode(Node):
def __init__(self):
super().__init__("image_object_detection_node")
super().__init__("image_object_detection_node")

# Model parameters
self.declare_parameter("model.image_size", 640)
Expand Down Expand Up @@ -131,10 +131,9 @@ def __init__(self):
self.bridge = cv_bridge.CvBridge()

# Get the list of camera topics from the config file
self.declare_parameter("camera_topics", [])
self.camera_topics = (
self.get_parameter("camera_topics").get_parameter_value().string_array_value
)
self.declare_parameter("camera_topics", ["/cameras/frontleft_fisheye_image/image", "/cameras/frontright_fisheye_image/image", "/cameras/left_fisheye_image/image", "/cameras/right_fisheye_image/image"])
self.camera_topics = self.get_parameter("camera_topics").get_parameter_value().string_array_value

self.get_logger().info(f"Subscribed to topics: {self.camera_topics}")

# Initialize subscribers and publishers for each camera topic
Expand Down

0 comments on commit 5863fa0

Please sign in to comment.