Made toid_vision into composable node
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user