Made toid_vision into composable node

This commit is contained in:
2026-04-10 20:02:35 +02:00
parent dd30e776c1
commit 85353d06b2
6 changed files with 124 additions and 6 deletions

View File

@@ -6,7 +6,7 @@
namespace toid
{
NutDetector::NutDetector(rclcpp::NodeOptions & options)
NutDetector::NutDetector(const rclcpp::NodeOptions & options)
: Node("compressed_image_subscriber", options)
{
detectorParams_ = cv::aruco::DetectorParameters::create();
@@ -174,4 +174,7 @@ void NutDetector::get_pose(cv::Vec3d & tvec, cv::Vec3d & rvec, geometry_msgs::ms
out_pose.position.z = tvec[2];
}
} // namespace toid
} // namespace toid
#include "rclcpp_components/register_node_macro.hpp"
RCLCPP_COMPONENTS_REGISTER_NODE(toid::NutDetector)