Public Slots | Public Member Functions | Private Member Functions | Private Attributes | List of all members
FindObjectROS Class Reference

#include <FindObjectROS.h>

Inheritance diagram for FindObjectROS:
Inheritance graph
[legend]

Public Slots

void publish (const find_object::DetectionInfo &info, const find_object::Header &header, const cv::Mat &depth, float depthConstant)
 
void publish (const find_object::DetectionInfo &info, const find_object::Header &header, const cv::Mat &depth, float depthConstant)
 
- Public Slots inherited from find_object::FindObject
void addObjectAndUpdate (const cv::Mat &image, int id=0, const QString &filePath=QString())
 
void detect (const cv::Mat &image)
 
void detect (const cv::Mat &image, const find_object::Header &header, const cv::Mat &depth, float depthConstant)
 
void removeObjectAndUpdate (int id)
 

Public Member Functions

 FindObjectROS (QObject *parent=0)
 
 FindObjectROS (rclcpp::Node *node)
 
virtual ~FindObjectROS ()
 
virtual ~FindObjectROS ()
 
- Public Member Functions inherited from find_object::FindObject
const ObjSignatureaddObject (const QString &filePath)
 
const ObjSignatureaddObject (const cv::Mat &image, int id=0, const QString &filePath=QString())
 
bool addObject (ObjSignature *obj)
 
bool detect (const cv::Mat &image, find_object::DetectionInfo &info) const
 
 FindObject (bool keepImagesInRAM_=true, QObject *parent=0)
 
bool isSessionModified () const
 
int loadObjects (const QString &dirPath, bool recursive=false)
 
bool loadSession (const QString &path, const ParametersMap &customParameters=ParametersMap())
 
bool loadVocabulary (const QString &filePath)
 
const QMap< int, ObjSignature * > & objects () const
 
void removeAllObjects ()
 
void removeObject (int id)
 
bool saveSession (const QString &path)
 
bool saveVocabulary (const QString &filePath) const
 
void updateDetectorExtractor ()
 
void updateObjects (const QList< int > &ids=QList< int >())
 
void updateVocabulary (const QList< int > &ids=QList< int >())
 
const Vocabularyvocabulary () const
 
virtual ~FindObject ()
 

Private Member Functions

cv::Vec3f getDepth (const cv::Mat &depthImage, int x, int y, float cx, float cy, float fx, float fy)
 
cv::Vec3f getDepth (const cv::Mat &depthImage, int x, int y, float cx, float cy, float fx, float fy)
 

Private Attributes

rclcpp::Node * node_
 
std::string objFramePrefix_
 
ros::Publisher pub_
 
rclcpp::Publisher< std_msgs::msg::Float32MultiArray >::SharedPtr pub_
 
ros::Publisher pubInfo_
 
rclcpp::Publisher< find_object_2d::msg::DetectionInfo >::SharedPtr pubInfo_
 
ros::Publisher pubStamped_
 
rclcpp::Publisher< find_object_2d::msg::ObjectsStamped >::SharedPtr pubStamped_
 
tf::TransformBroadcaster tfBroadcaster_
 
std::shared_ptr< tf2_ros::TransformBroadcastertfBroadcaster_
 
bool usePnP_
 

Additional Inherited Members

- Signals inherited from find_object::FindObject
void objectsFound (const find_object::DetectionInfo &, const find_object::Header &, const cv::Mat &, float)
 
- Static Public Member Functions inherited from find_object::FindObject
static void affineSkew (float tilt, float phi, const cv::Mat &image, cv::Mat &skewImage, cv::Mat &skewMask, cv::Mat &Ai)
 

Detailed Description

Definition at line 42 of file ros1/FindObjectROS.h.

Constructor & Destructor Documentation

◆ FindObjectROS() [1/2]

FindObjectROS::FindObjectROS ( QObject *  parent = 0)

Definition at line 37 of file ros1/FindObjectROS.cpp.

◆ ~FindObjectROS() [1/2]

virtual FindObjectROS::~FindObjectROS ( )
inlinevirtual

Definition at line 48 of file ros1/FindObjectROS.h.

◆ FindObjectROS() [2/2]

FindObjectROS::FindObjectROS ( rclcpp::Node *  node)

Definition at line 44 of file ros2/FindObjectROS.cpp.

◆ ~FindObjectROS() [2/2]

virtual FindObjectROS::~FindObjectROS ( )
inlinevirtual

Definition at line 52 of file ros2/FindObjectROS.h.

Member Function Documentation

◆ getDepth() [1/2]

cv::Vec3f FindObjectROS::getDepth ( const cv::Mat &  depthImage,
int  x,
int  y,
float  cx,
float  cy,
float  fx,
float  fy 
)
private

Definition at line 293 of file ros1/FindObjectROS.cpp.

◆ getDepth() [2/2]

cv::Vec3f FindObjectROS::getDepth ( const cv::Mat &  depthImage,
int  x,
int  y,
float  cx,
float  cy,
float  fx,
float  fy 
)
private

◆ publish [1/2]

void FindObjectROS::publish ( const find_object::DetectionInfo info,
const find_object::Header header,
const cv::Mat &  depth,
float  depthConstant 
)
slot

Definition at line 57 of file ros1/FindObjectROS.cpp.

◆ publish [2/2]

void FindObjectROS::publish ( const find_object::DetectionInfo info,
const find_object::Header header,
const cv::Mat &  depth,
float  depthConstant 
)
slot

Member Data Documentation

◆ node_

rclcpp::Node* FindObjectROS::node_
private

Definition at line 64 of file ros2/FindObjectROS.h.

◆ objFramePrefix_

std::string FindObjectROS::objFramePrefix_
private

Definition at line 65 of file ros1/FindObjectROS.h.

◆ pub_ [1/2]

ros::Publisher FindObjectROS::pub_
private

Definition at line 61 of file ros1/FindObjectROS.h.

◆ pub_ [2/2]

rclcpp::Publisher<std_msgs::msg::Float32MultiArray>::SharedPtr FindObjectROS::pub_
private

Definition at line 65 of file ros2/FindObjectROS.h.

◆ pubInfo_ [1/2]

ros::Publisher FindObjectROS::pubInfo_
private

Definition at line 63 of file ros1/FindObjectROS.h.

◆ pubInfo_ [2/2]

rclcpp::Publisher<find_object_2d::msg::DetectionInfo>::SharedPtr FindObjectROS::pubInfo_
private

Definition at line 67 of file ros2/FindObjectROS.h.

◆ pubStamped_ [1/2]

ros::Publisher FindObjectROS::pubStamped_
private

Definition at line 62 of file ros1/FindObjectROS.h.

◆ pubStamped_ [2/2]

rclcpp::Publisher<find_object_2d::msg::ObjectsStamped>::SharedPtr FindObjectROS::pubStamped_
private

Definition at line 66 of file ros2/FindObjectROS.h.

◆ tfBroadcaster_ [1/2]

tf::TransformBroadcaster FindObjectROS::tfBroadcaster_
private

Definition at line 67 of file ros1/FindObjectROS.h.

◆ tfBroadcaster_ [2/2]

std::shared_ptr<tf2_ros::TransformBroadcaster> FindObjectROS::tfBroadcaster_
private

Definition at line 71 of file ros2/FindObjectROS.h.

◆ usePnP_

bool FindObjectROS::usePnP_
private

Definition at line 66 of file ros1/FindObjectROS.h.


The documentation for this class was generated from the following files:


find_object_2d
Author(s): Mathieu Labbe
autogenerated on Mon Dec 12 2022 03:20:10