Skip to main content

ROS Point Cloud Recorder and Exporter

Project description

ROS PointCloud Recorder

一个简单的Python库,用于录制ROS点云话题并导出为PCD文件。

安装

pip install ros-pointcloud-recorder

快速开始

from ros_pointcloud_recorder import PointCloudRecorder

创建录制器

recorder = PointCloudRecorder(
    topics=['/points_raw1', '/points_raw2'],
    output_dir='./data',
    recording_duration=2.0
)

# 执行录制并导出
pcd_paths = recorder.record_and_export()

print("导出完成:")
for topic, path in pcd_paths.items():
    print(f"{topic} -> {path}")

高级功能

  • 自定义导出路径
  • 单独控制录制和导出流程
  • 自定义日志配置
  • 保留中间bag文件

详细用法请参考示例代码

依赖

  • ROS (必须安装rosbagpcl_ros)
  • Python 3.6+

设计要点

  1. 模块化设计:将功能分解为可独立调用的方法
  2. 灵活性:支持自定义路径、录制时长等参数
  3. 健壮性:完善的错误处理和日志记录
  4. 易用性:提供简单的一键录制导出方法
  5. 可扩展性:设计良好的API便于未来扩展功能

通过这种封装,用户只需简单的几行代码就可以实现点云录制功能,同时保留了高级用户需要的灵活性。

更新日志

  • v0.1.0 (2025-06-10)
    • 初始发布,提供基本的点云录制和导出功能
  • v0.1.1 (2025-06-10)
    • 修改了README.md

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ros-pointcloud-recorder-0.1.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ros_pointcloud_recorder-0.1.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file ros-pointcloud-recorder-0.1.1.tar.gz.

File metadata

  • Download URL: ros-pointcloud-recorder-0.1.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for ros-pointcloud-recorder-0.1.1.tar.gz
Algorithm Hash digest
SHA256 867cb6f088f0f023e24521c46dc8fa7b8583db5b5e18047533b70776c3d4faaa
MD5 44ecd111c9c12223bd764256de6ae933
BLAKE2b-256 ef8ac57b29ac07354706fa1bdac1fa61f6b078bed8ac5dc01b0713cdbf4c0370

See more details on using hashes here.

File details

Details for the file ros_pointcloud_recorder-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ros_pointcloud_recorder-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f19b9599fd63fc17c939b63cfe99d6cb41711cebf2f63967ddfdd9e6705a04ee
MD5 ef18974e8cf5074395617abff33b00f7
BLAKE2b-256 3f85ba3c027d1803b55f50f57f0a4f8fb82c9551532f919deae0573126e05460

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page