Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConsumerThread terminates immediately #1052

Open
Tacha-S opened this issue Nov 29, 2024 · 0 comments
Open

ConsumerThread terminates immediately #1052

Tacha-S opened this issue Nov 29, 2024 · 0 comments

Comments

@Tacha-S
Copy link

Tacha-S commented Nov 29, 2024

When running cameracheck from the camera_calibration package in ROS2 Jazzy, it subscribes to an image topic only once, performs the check, and then terminates. This behavior might be fine if the calibration board is always visible at the time of launch. However, it is quite inconvenient when the board needs to be moved into view after starting the node.

def run(self):
while rclpy.ok():
m = self.queue.get()
if self.queue.empty():
break
self.function(m)

Additionally, the results are output via print(), which may not be visible when launched through a launch file or similar methods. It would be better to use the ROS logger for consistent and accessible logging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant