 |
Galaxis Codebase
1.0.0
Team Galaxis software stack for the Carolo Cup 2023 - ROS2 based software
|
Go to the documentation of this file.
4 #include <librealsense2/rs.hpp>
5 #include <librealsense2/rs_advanced_mode.hpp>
6 #include <librealsense2/hpp/rs_types.hpp>
7 #include <librealsense2/rsutil.h>
9 #include <rclcpp/rclcpp.hpp>
11 #include <sensor_msgs/msg/point_cloud2.hpp>
12 #include <sensor_msgs/point_cloud2_iterator.hpp>
18 #include <condition_variable>
21 #include <pcl/point_types.h>
22 #include <pcl/filters/passthrough.h>
37 pcl::PointCloud<pcl::PointXYZ>::Ptr
points_to_pcl(
const rs2::points& points);
48 void init(std::string config);
50 std::shared_ptr<std::pair<rclcpp::Time, pcl::PointCloud<pcl::PointXYZ>::Ptr>>
pop_last_grabbed_pcl(
bool blocking);
51 std::shared_ptr<std::pair<rclcpp::Time, pcl::PointCloud<pcl::PointXYZ>::Ptr>>
get_last_grabbed_pcl();
std::condition_variable m_newPCLConditionVar
std::shared_ptr< std::pair< rclcpp::Time, pcl::PointCloud< pcl::PointXYZ >::Ptr > > get_last_grabbed_pcl()
std::shared_ptr< std::pair< rclcpp::Time, pcl::PointCloud< pcl::PointXYZ >::Ptr > > m_currentPointCloudPairSPtr
void set_node(rclcpp::Node *ptr)
rs2::pipeline_profile m_profile
pcl::PointCloud< pcl::PointXYZ >::Ptr points_to_pcl(const rs2::points &points)
bool m_currentPointCloudPairNewData
void init(std::string config)
initializes camera with json settings
std::shared_ptr< std::pair< rclcpp::Time, pcl::PointCloud< pcl::PointXYZ >::Ptr > > pop_last_grabbed_pcl(bool blocking)