Get data from time-synchronized image topics and populate them in output ports. More...
Declaration
class moveit_pro::behaviors::GetSyncedImages { ... }
#include <get_synced_images.hpp>
Base class
Private Member Typedefs Index
| using | Image = sensor_msgs::msg::Image |
|
|
|
| using | CameraInfo = sensor_msgs::msg::CameraInfo |
|
|
|
| using | SyncPolicy = message_filters::sync_policies::ApproximateTime< Image, CameraInfo, Image, CameraInfo > |
|
|
|
| using | Synchronizer = message_filters::Synchronizer< SyncPolicy > |
|
|
|
Public Constructors Index
| GetSyncedImages (const std::string &name, const BT::NodeConfiguration &config, const std::shared_ptr< moveit_pro::behaviors::BehaviorContext > &shared_resources) |
|
|
|
Public Member Functions Index
Private Member Functions Index
| void | syncCallback (const Image::ConstSharedPtr &image_1_msg, const CameraInfo::ConstSharedPtr &camera_info_1_msg, const Image::ConstSharedPtr &image_2_msg, const CameraInfo::ConstSharedPtr &camera_info_2_msg) |
|
|
|
| void | unsubscribeTopics () |
|
|
|
Private Member Attributes Index
Public Static Functions Index
Private Static Attributes Index
Description
Get data from time-synchronized image topics and populate them in output ports.
| Data Port Name | Port Type | Object Type |
|---|
| camera_info_1_topic_name | Input | std::string |
| image_1_topic_name | Input | std::string |
| camera_info_2_topic_name | Input | std::string |
| image_2_topic_name | Input | std::string |
| image_1 | Output | sensor_msgs::msg::Image |
| camera_info_1 | Output | sensor_msgs::msg::CameraInfo |
| image_2 | Output | sensor_msgs::msg::Image |
| camera_info_2 | Output | sensor_msgs::msg::CameraInfo |
Definition at line 36 of file get_synced_images.hpp.
Private Member Typedefs
CameraInfo
| using moveit_pro::behaviors::GetSyncedImages::CameraInfo = sensor_msgs::msg::CameraInfo |
|
Image
| using moveit_pro::behaviors::GetSyncedImages::Image = sensor_msgs::msg::Image |
|
Synchronizer
| using moveit_pro::behaviors::GetSyncedImages::Synchronizer = message_filters::Synchronizer<SyncPolicy> |
|
SyncPolicy
| using moveit_pro::behaviors::GetSyncedImages::SyncPolicy = message_filters::sync_policies::ApproximateTime<Image, CameraInfo, Image, CameraInfo> |
|
Public Constructors
GetSyncedImages()
| moveit_pro::behaviors::GetSyncedImages::GetSyncedImages (const std::string & name, const BT::NodeConfiguration & config, const std::shared_ptr< moveit_pro::behaviors::BehaviorContext > & shared_resources) |
|
Public Member Functions
onHalted()
| void moveit_pro::behaviors::GetSyncedImages::onHalted () |
|
onRunning()
| BT::NodeStatus moveit_pro::behaviors::GetSyncedImages::onRunning () |
|
onStart()
| BT::NodeStatus moveit_pro::behaviors::GetSyncedImages::onStart () |
|
Private Member Functions
syncCallback()
| void moveit_pro::behaviors::GetSyncedImages::syncCallback (const Image::ConstSharedPtr & image_1_msg, const CameraInfo::ConstSharedPtr & camera_info_1_msg, const Image::ConstSharedPtr & image_2_msg, const CameraInfo::ConstSharedPtr & camera_info_2_msg) |
|
unsubscribeTopics()
| void moveit_pro::behaviors::GetSyncedImages::unsubscribeTopics () |
|
Private Member Attributes
start_time_
| std::chrono::steady_clock::time_point moveit_pro::behaviors::GetSyncedImages::start_time_ |
|
sub_camera_info_1_
| message_filters::Subscriber<CameraInfo> moveit_pro::behaviors::GetSyncedImages::sub_camera_info_1_ |
|
sub_camera_info_2_
| message_filters::Subscriber<CameraInfo> moveit_pro::behaviors::GetSyncedImages::sub_camera_info_2_ |
|
sub_image_1_
| image_transport::SubscriberFilter moveit_pro::behaviors::GetSyncedImages::sub_image_1_ |
|
sub_image_2_
| image_transport::SubscriberFilter moveit_pro::behaviors::GetSyncedImages::sub_image_2_ |
|
sync_done_
| std::atomic<bool> moveit_pro::behaviors::GetSyncedImages::sync_done_ |
|
synchronizer_
| std::shared_ptr<Synchronizer> moveit_pro::behaviors::GetSyncedImages::synchronizer_ |
|
Public Static Functions
metadata()
| BT::KeyValueVector moveit_pro::behaviors::GetSyncedImages::metadata () |
|
static
|
providedPorts()
| BT::PortsList moveit_pro::behaviors::GetSyncedImages::providedPorts () |
|
static
|
Private Static Attributes
kDescriptionGetSyncedImages
| constexpr auto moveit_pro::behaviors::GetSyncedImages::kDescriptionGetSyncedImages |
|
constexpr
static
|
- Initialiser
-
= R"(
<p>
Get data from time-synchronized image topics and populate them in output ports.
</p>
)"
Definition at line 85 of file get_synced_images.hpp.
kMessageSyncQueueSize
| constexpr std::size_t moveit_pro::behaviors::GetSyncedImages::kMessageSyncQueueSize = 10 |
|
constexpr
static
|
kMessageSyncTimeout
| constexpr std::chrono::seconds moveit_pro::behaviors::GetSyncedImages::kMessageSyncTimeout { 5 } |
|
constexpr
static
|
kOutputNameCameraInfo1
| constexpr auto moveit_pro::behaviors::GetSyncedImages::kOutputNameCameraInfo1 = "camera_info_1" |
|
constexpr
static
|
kOutputNameCameraInfo2
| constexpr auto moveit_pro::behaviors::GetSyncedImages::kOutputNameCameraInfo2 = "camera_info_2" |
|
constexpr
static
|
kOutputNameImage1
| constexpr auto moveit_pro::behaviors::GetSyncedImages::kOutputNameImage1 = "image_1" |
|
constexpr
static
|
kOutputNameImage2
| constexpr auto moveit_pro::behaviors::GetSyncedImages::kOutputNameImage2 = "image_2" |
|
constexpr
static
|
kTopicNameCameraInfo1
| constexpr auto moveit_pro::behaviors::GetSyncedImages::kTopicNameCameraInfo1 = "camera_info_1_topic_name" |
|
constexpr
static
|
kTopicNameCameraInfo2
| constexpr auto moveit_pro::behaviors::GetSyncedImages::kTopicNameCameraInfo2 = "camera_info_2_topic_name" |
|
constexpr
static
|
kTopicNameImage1
| constexpr auto moveit_pro::behaviors::GetSyncedImages::kTopicNameImage1 = "image_1_topic_name" |
|
constexpr
static
|
kTopicNameImage2
| constexpr auto moveit_pro::behaviors::GetSyncedImages::kTopicNameImage2 = "image_2_topic_name" |
|
constexpr
static
|
The documentation for this class was generated from the following files:
Generated via doxygen2docusaurus 2.2.2 by Doxygen 1.9.8.