KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
pcl_type_adapter
★ 20
Open GitHub ↗
ROS 2 type adapter for pcl
Download README (.md)
Explore Similar Repositories
trekker
:
A hackable browser for Emacs
TG-DL-Api-Workers
:
Creates download links to telegram files stored in channel. Deployable to cloudflare workers
modelscope-agent-with-local-llm
:
本项目基于modelscope-agent-v0.3和 api-for-open-llm 或 llamacpp 组件共同实现了一个AI Agent,能够利用本地的大模型(LLM)实现使用自定义工具功能。使用了Qwen1.5大模型。
LLM4CodeSummarization
:
No description available.
Deep_Motor_SDK
:
SDK For J60 Joint Module Control
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
pcl_type_adapter
?
Download (.md)
# pcl_type_adapter ROS 2 package of type adapter for transferring point clouds via zero-copy communication. ## How to use. ### Publish pointcloud ```cpp class PubNode : public rclcpp::Node { public: using AdaptedType = rclcpp::TypeAdapter<pcl::PointCloud::PointXYZ::Ptr, sensor_msgs::msg::PointCloud2>; explicit PubNode(const rclcpp::NodeOptions & options) : Node("test", options) { publisher_ = create_publisher<AdaptedType>("pointcloud", 1); } void publish(const pcl::PointCloud::PointXYZ::Ptr & point_cloud) { publisher_->publish(point_cloud); } private: std::shared_ptr<rclcpp::Publisher<AdaptedType>> publisher_; }; ``` ### Subscribe pointcloud ```cpp class SubNode : public rclcpp::Node { public: using AdaptedType = rclcpp::TypeAdapter<pcl::PointCloud::PointXYZ::Ptr, sensor_msgs::msg::PointCloud2>; explicit SubNode( const rclcpp::NodeOptions & options) : Node("test", options) { subscriber_ = create_subscription<AdaptedType>("pointcloud", 1, [](const auto & pointcloud){}); } private: std::shared_ptr<rclcpp::Subscription<AdaptedType>> subscriber_; }; ```