feat: support multiple ROS 2 distributions

This commit is contained in:
slz
2026-07-28 21:06:41 +08:00
parent dc4bb4484a
commit 10a40ce314
25 changed files with 554 additions and 104 deletions
@@ -139,9 +139,9 @@ class CameraExampleNode : public rclcpp::Node {
"/camera/device_status", 10,
std::bind(&CameraExampleNode::deviceStatusCallback, this, std::placeholders::_1));
while (rclcpp::ok()) {
rclcpp::spin_some(shared_from_this());
}
rclcpp::executors::SingleThreadedExecutor executor;
executor.add_node(shared_from_this());
executor.spin();
}
// Feature 7: Set Color AE ROI