#include <default_vision_driver.hpp>
|
| | DefaultDriver ()=default |
| |
| | ~DefaultDriver () |
| |
| void | initialize (const rclcpp::Node::SharedPtr &node) override |
| | Initialize the driver.
|
| |
| void | deinitialize () override |
| | Stop driver streaming.
|
| |
| vision_frame | captureFrame () override |
| | Get the latest image data from the driver.
|
| |
| void | test () override |
| | Test function to check the driver functionality by writing the image to a file.
|
| |
| virtual | ~DriverBase ()=default |
| |
| virtual std::string | getName () const |
| | Get the name of 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) |
| |
|
| void | imageCallback (const sensor_msgs::msg::Image::ConstSharedPtr &msg) |
| |
| void | produce_diagnostics (diagnostic_updater::DiagnosticStatusWrapper &status) |
| |
| 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 () |
| |
◆ DefaultDriver()
| fp_perception::DefaultDriver::DefaultDriver |
( |
| ) |
|
|
default |
◆ ~DefaultDriver()
| fp_perception::DefaultDriver::~DefaultDriver |
( |
| ) |
|
|
inline |
◆ captureFrame()
◆ deinitialize()
| void fp_perception::DefaultDriver::deinitialize |
( |
| ) |
|
|
inlineoverridevirtual |
◆ imageCallback()
| void fp_perception::DefaultDriver::imageCallback |
( |
const sensor_msgs::msg::Image::ConstSharedPtr & |
msg | ) |
|
|
inlineprotected |
◆ initialize()
| void fp_perception::DefaultDriver::initialize |
( |
const rclcpp::Node::SharedPtr & |
node | ) |
|
|
inlineoverridevirtual |
Initialize the driver.
This function should be overridden in derived classes to provide specific initialization.
- Parameters
-
| node | Shared pointer to the ROS node |
Reimplemented from fp_perception::DriverBase.
◆ produce_diagnostics()
| void fp_perception::DefaultDriver::produce_diagnostics |
( |
diagnostic_updater::DiagnosticStatusWrapper & |
status | ) |
|
|
inlineprotected |
◆ test()
| void fp_perception::DefaultDriver::test |
( |
| ) |
|
|
inlineoverridevirtual |
Test function to check the driver functionality by writing the image to a file.
Reimplemented from fp_perception::DriverBase.
◆ image_sub_
| image_transport::Subscriber fp_perception::DefaultDriver::image_sub_ |
|
protected |
◆ interface_name_
| std::string fp_perception::DefaultDriver::interface_name_ |
|
protected |
◆ latest_image_
| sensor_msgs::msg::Image::ConstSharedPtr fp_perception::DefaultDriver::latest_image_ |
|
protected |
◆ received_image_count_
| std::atomic<uint64_t> fp_perception::DefaultDriver::received_image_count_ { 0 } |
|
protected |
The documentation for this class was generated from the following file: