Go to the documentation of this file.
32 #include "hri_msgs/SoftBiometrics.h"
38 const std::string& reference_frame)
40 , softbiometrics_(
nullptr)
41 , _tf_buffer_ptr(tf_buffer_ptr)
42 , _reference_frame(reference_frame)
54 ns_ =
"/humans/faces/" +
id_;
73 void Face::onRoI(hri_msgs::NormalizedRegionOfInterest2DConstPtr roi)
107 for (
auto landmark : msg->landmarks)
125 return boost::optional<float>();
133 return boost::optional<Gender>();
135 return boost::optional<Gender>();
152 <<
". Are the frames published?");
153 return boost::optional<geometry_msgs::TransformStamped>();
169 <<
". Are the frames published?");
170 return boost::optional<geometry_msgs::TransformStamped>();
std::string frame() const
the name of the tf frame that correspond to this face
hri_msgs::SoftBiometricsConstPtr softbiometrics_
std::string gazeFrame() const
the name of the tf frame that correspond to the gaze direction and orientation of the face
hri_msgs::NormalizedRegionOfInterest2D NormROI
cv::Mat aligned() const
Returns the face image, if necessary scaled, centered and 0-padded to match the /humans/faces/width a...
void onSoftBiometrics(hri_msgs::SoftBiometricsConstPtr biometrics)
ros::Subscriber cropped_subscriber_
void onAligned(sensor_msgs::ImageConstPtr roi)
#define ROS_DEBUG_STREAM(args)
#define ROS_WARN_STREAM(args)
void onCropped(sensor_msgs::ImageConstPtr roi)
ros::Subscriber aligned_subscriber_
CvImagePtr toCvCopy(const sensor_msgs::CompressedImage &source, const std::string &encoding=std::string())
ros::Subscriber roi_subscriber_
ros::Subscriber landmarks_subscriber_
std::string _reference_frame
Subscriber subscribe(const std::string &topic, uint32_t queue_size, const boost::function< void(C)> &callback, const VoidConstPtr &tracked_object=VoidConstPtr(), const TransportHints &transport_hints=TransportHints())
void onRoI(hri_msgs::NormalizedRegionOfInterest2DConstPtr roi)
boost::optional< geometry_msgs::TransformStamped > gazeTransform() const
Returns the (stamped) 3D transform of the gaze (if available).
tf2_ros::Buffer * _tf_buffer_ptr
cv::Mat cropped() const
Returns the face image, if necessary scaled, centered and 0-padded to match the /humans/faces/width a...
std::array< hri_msgs::NormalizedPointOfInterest2D, 70 > facial_landmarks_
boost::optional< float > age() const
ros::Subscriber softbiometrics_subscriber_
const static ros::Duration FACE_TF_TIMEOUT(0.01)
void onLandmarks(hri_msgs::FacialLandmarksConstPtr landmarks)
NormROI roi() const
Returns the normalized 2D region of interest (RoI) of the face.
virtual geometry_msgs::TransformStamped lookupTransform(const std::string &target_frame, const ros::Time &target_time, const std::string &source_frame, const ros::Time &source_time, const std::string &fixed_frame, const ros::Duration timeout) const
boost::optional< Gender > gender() const
boost::optional< geometry_msgs::TransformStamped > transform() const
Returns the (stamped) 3D transform of the face (if available).
libhri
Author(s): Séverin Lemaignan
autogenerated on Thu Jul 6 2023 02:43:58