FP Perception 0.1.2
Loading...
Searching...
No Matches
Public Member Functions | List of all members
fp_perception::VisionSourceDriver Class Referenceabstract

#include <vision_source_driver.hpp>

Inheritance diagram for fp_perception::VisionSourceDriver:
Inheritance graph
[legend]
Collaboration diagram for fp_perception::VisionSourceDriver:
Collaboration graph
[legend]

Public Member Functions

virtual vision_frame captureFrame ()=0
 
- Public Member Functions inherited from fp_perception::DriverBase
virtual ~DriverBase ()=default
 
virtual void initialize (const rclcpp::Node::SharedPtr &node)
 Initialize the driver.
 
virtual void deinitialize ()=0
 Deinitialize the driver.
 
virtual std::string getName () const
 Get the name of the driver.
 
virtual void test ()
 Test the driver.
 
void check_directory (std::string folder_name)
 Check if the test directory exists, create it if not.
 
const std::filesystem::path check_file (const std::string &file_name)
 

Additional Inherited Members

- Protected Member Functions inherited from fp_perception::DriverBase
void initialize_base (const rclcpp::Node::SharedPtr &node)
 Initializer base driver in place of constructor due to plugin semantics.
 
bool diagnostics_enabled () const
 
void enable_diagnostics (const std::string &hardware_id, const std::string &task_name, std::function< void(diagnostic_updater::DiagnosticStatusWrapper &)> task, std::chrono::milliseconds period=std::chrono::seconds(1))
 
void disable_diagnostics ()
 
- Protected Attributes inherited from fp_perception::DriverBase
rclcpp::Node::SharedPtr node_
 ROS node for the driver.
 
std::string name_
 Name of the driver.
 
std::mutex buffer_mutex_
 Mutex to protect access to the driver data.
 
std::condition_variable buffer_cv_
 Condition variable to notify when new data is available.
 
std::atomic< bool > is_running_ { false }
 Flag to indicate if the driver thread is running.
 
bool diagnostics_enabled_ { false }
 Flag to enable standard ROS diagnostics publishing.
 
std::unique_ptr< diagnostic_updater::Updater > diagnostics_updater_
 
rclcpp::TimerBase::SharedPtr diagnostics_timer_
 

Member Function Documentation

◆ captureFrame()

virtual vision_frame fp_perception::VisionSourceDriver::captureFrame ( )
pure virtual

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