28 #ifndef FINDOBJECTROS_H_ 29 #define FINDOBJECTROS_H_ 31 #include <rclcpp/rclcpp.hpp> 36 #include <std_msgs/msg/float32_multi_array.hpp> 37 #include "find_object_2d/msg/objects_stamped.hpp" 38 #include "find_object_2d/msg/detection_info.hpp" 40 #include <QtCore/QObject> 41 #include <QtCore/QMultiMap> 42 #include <QtCore/QPair> 43 #include <QtCore/QRect> 44 #include <QtGui/QTransform> 58 cv::Vec3f
getDepth(
const cv::Mat & depthImage,
65 rclcpp::Publisher<std_msgs::msg::Float32MultiArray>::SharedPtr
pub_;
66 rclcpp::Publisher<find_object_2d::msg::ObjectsStamped>::SharedPtr
pubStamped_;
67 rclcpp::Publisher<find_object_2d::msg::DetectionInfo>::SharedPtr
pubInfo_;
rclcpp::Publisher< std_msgs::msg::Float32MultiArray >::SharedPtr pub_
FindObjectROS(QObject *parent=0)
std::string objFramePrefix_
void publish(const find_object::DetectionInfo &info, const find_object::Header &header, const cv::Mat &depth, float depthConstant)
cv::Vec3f getDepth(const cv::Mat &depthImage, int x, int y, float cx, float cy, float fx, float fy)
rclcpp::Publisher< find_object_2d::msg::DetectionInfo >::SharedPtr pubInfo_
std::shared_ptr< tf2_ros::TransformBroadcaster > tfBroadcaster_
rclcpp::Publisher< find_object_2d::msg::ObjectsStamped >::SharedPtr pubStamped_