Manages image output by creating publishers for specified topics and providing a method to publish image messages.
More...
|
bool | configure () |
| Configures the SimpleImageOutput by creating publishers for each specified topic.
|
|
void | publish_image (sensor_msgs::msg::Image::UniquePtr msg) |
| Publishes an image message to all configured topics.
|
|
| SimpleImageOutput (rclcpp_lifecycle::LifecycleNode::SharedPtr parent) |
| Constructs a SimpleImageOutput object and declares necessary parameters.
|
|
| Efferent (rclcpp_lifecycle::LifecycleNode::SharedPtr parent) |
| Constructs an Efferent object associated with a parent lifecycle node.
|
|
template<class MessageT> |
void | publish (std::unique_ptr< MessageT > msg) |
| Publishes a serialized message to all configured publishers.
|
|
|
bool | create_publisher (const std::string &topic, const std::string &type) |
| Creates a publisher for a specified topic and message type.
|
|
rclcpp_lifecycle::LifecycleNode::SharedPtr | parent_ |
| < Shared pointer to the parent lifecycle node.
|
|
std::vector< std::shared_ptr< rclcpp::GenericPublisher > > | pubs_ |
|
Manages image output by creating publishers for specified topics and providing a method to publish image messages.
◆ SimpleImageOutput()
◆ configure()
Configures the SimpleImageOutput by creating publishers for each specified topic.
This method retrieves the topic names from the parameter server and attempts to create a publisher for each topic to publish sensor_msgs::msg::Image
messages.
- Returns
- True if all publishers are created successfully.
Implements Efferent.
◆ publish_image()
void publish_image |
( |
sensor_msgs::msg::Image::UniquePtr | msg | ) |
|
Publishes an image message to all configured topics.
- Parameters
-
msg | Unique pointer to an image message of type sensor_msgs::msg::Image . |
The documentation for this class was generated from the following file: