GetSyncedImageAndPointCloud Class
Get data from time-synchronized image and point cloud topics and populate them in output ports. More...
Declaration
class moveit_pro::behaviors::GetSyncedImageAndPointCloud { ... }
#include <get_synced_image_and_point_cloud.hpp>
Base class
Private Member Typedefs Index
| using | PointCloud2 = sensor_msgs::msg::PointCloud2 |
|
|
|
| using | Image = sensor_msgs::msg::Image |
|
|
|
| using | CameraInfo = sensor_msgs::msg::CameraInfo |
|
|
|
| using | SyncPolicy = message_filters::sync_policies::ApproximateTime< PointCloud2, Image, CameraInfo > |
|
|
|
| using | Synchronizer = message_filters::Synchronizer< SyncPolicy > |
|
|
|
Public Constructors Index
| GetSyncedImageAndPointCloud (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 PointCloud2::ConstSharedPtr &point_cloud_msg, const Image::ConstSharedPtr &rgb_image_msg, const CameraInfo::ConstSharedPtr &rgb_camera_info_msg) |
|
|
|
| void | unsubscribeTopics () |
|
|
|
Private Member Attributes Index
Public Static Functions Index
Private Static Attributes Index
Description
Get data from time-synchronized image and point cloud topics and populate them in output ports.
| Data Port Name | Port Type | Object Type |
|---|
| rgb_camera_info_topic_name | Input | std::string |
| rgb_image_topic_name | Input | std::string |
| point_cloud_topic_name | Input | std::string |
| point_cloud | Output | sensor_msgs::msg::PointCloud2 |
| rgb_image | Output | sensor_msgs::msg::Image |
| rgb_camera_info | Output | sensor_msgs::msg::CameraInfo |
Definition at line 37 of file get_synced_image_and_point_cloud.hpp.
Private Member Typedefs
CameraInfo
| using moveit_pro::behaviors::GetSyncedImageAndPointCloud::CameraInfo = sensor_msgs::msg::CameraInfo |
|
Image
| using moveit_pro::behaviors::GetSyncedImageAndPointCloud::Image = sensor_msgs::msg::Image |
|
PointCloud2
| using moveit_pro::behaviors::GetSyncedImageAndPointCloud::PointCloud2 = sensor_msgs::msg::PointCloud2 |
|
Synchronizer
| using moveit_pro::behaviors::GetSyncedImageAndPointCloud::Synchronizer = message_filters::Synchronizer<SyncPolicy> |
|
SyncPolicy
| using moveit_pro::behaviors::GetSyncedImageAndPointCloud::SyncPolicy = message_filters::sync_policies::ApproximateTime<PointCloud2, Image, CameraInfo> |
|
Public Constructors
GetSyncedImageAndPointCloud()
| moveit_pro::behaviors::GetSyncedImageAndPointCloud::GetSyncedImageAndPointCloud (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::GetSyncedImageAndPointCloud::onHalted () |
|
onRunning()
| BT::NodeStatus moveit_pro::behaviors::GetSyncedImageAndPointCloud::onRunning () |
|
onStart()
| BT::NodeStatus moveit_pro::behaviors::GetSyncedImageAndPointCloud::onStart () |
|
Private Member Functions
syncCallback()
| void moveit_pro::behaviors::GetSyncedImageAndPointCloud::syncCallback (const PointCloud2::ConstSharedPtr & point_cloud_msg, const Image::ConstSharedPtr & rgb_image_msg, const CameraInfo::ConstSharedPtr & rgb_camera_info_msg) |
|
unsubscribeTopics()
| void moveit_pro::behaviors::GetSyncedImageAndPointCloud::unsubscribeTopics () |
|
Private Member Attributes
start_time_
| rclcpp::Time moveit_pro::behaviors::GetSyncedImageAndPointCloud::start_time_ |
|
sub_point_cloud_
| message_filters::Subscriber<PointCloud2> moveit_pro::behaviors::GetSyncedImageAndPointCloud::sub_point_cloud_ |
|
sub_rgb_camera_info_
| message_filters::Subscriber<CameraInfo> moveit_pro::behaviors::GetSyncedImageAndPointCloud::sub_rgb_camera_info_ |
|
sub_rgb_image_
| image_transport::SubscriberFilter moveit_pro::behaviors::GetSyncedImageAndPointCloud::sub_rgb_image_ |
|
sync_done_
| std::atomic<bool> moveit_pro::behaviors::GetSyncedImageAndPointCloud::sync_done_ |
|
synchronizer_
| std::shared_ptr<Synchronizer> moveit_pro::behaviors::GetSyncedImageAndPointCloud::synchronizer_ |
|
Public Static Functions
metadata()
| BT::KeyValueVector moveit_pro::behaviors::GetSyncedImageAndPointCloud::metadata () |
|
static
|
providedPorts()
| BT::PortsList moveit_pro::behaviors::GetSyncedImageAndPointCloud::providedPorts () |
|
static
|
Private Static Attributes
kDescriptionGetSyncedImageAndPointCloud
| constexpr auto moveit_pro::behaviors::GetSyncedImageAndPointCloud::kDescriptionGetSyncedImageAndPointCloud |
|
constexpr
static
|
- Initialiser
-
= R"(
<p>
Get data from time-synchronized image and point cloud topics and populate them in output ports.
</p>
)"
Definition at line 84 of file get_synced_image_and_point_cloud.hpp.
kMessageSyncQueueSize
| constexpr std::size_t moveit_pro::behaviors::GetSyncedImageAndPointCloud::kMessageSyncQueueSize = 10 |
|
constexpr
static
|
kMessageSyncTimeout
| constexpr std::chrono::seconds moveit_pro::behaviors::GetSyncedImageAndPointCloud::kMessageSyncTimeout { 5 } |
|
constexpr
static
|
kOutputNamePointCloud
| constexpr auto moveit_pro::behaviors::GetSyncedImageAndPointCloud::kOutputNamePointCloud = "point_cloud" |
|
constexpr
static
|
kOutputNameRgbCameraInfo
| constexpr auto moveit_pro::behaviors::GetSyncedImageAndPointCloud::kOutputNameRgbCameraInfo = "rgb_camera_info" |
|
constexpr
static
|
kOutputNameRgbImage
| constexpr auto moveit_pro::behaviors::GetSyncedImageAndPointCloud::kOutputNameRgbImage = "rgb_image" |
|
constexpr
static
|
kTopicNamePointCloud
| constexpr auto moveit_pro::behaviors::GetSyncedImageAndPointCloud::kTopicNamePointCloud = "point_cloud_topic_name" |
|
constexpr
static
|
kTopicNameRgbCameraInfo
| constexpr auto moveit_pro::behaviors::GetSyncedImageAndPointCloud::kTopicNameRgbCameraInfo = "rgb_camera_info_topic_name" |
|
constexpr
static
|
kTopicNameRgbImage
| constexpr auto moveit_pro::behaviors::GetSyncedImageAndPointCloud::kTopicNameRgbImage = "rgb_image_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.