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
  • v0.1.2 (2025-06-10)
    • 修改了requirements.txt

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.2.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.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ros-pointcloud-recorder-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 b58108ffb34d64cea696c43ee882b31ea95557db1cb475b127b6b0f4cecb7572
MD5 f2878d4d041ab2093c35bcdfe0142b3d
BLAKE2b-256 06677def2fed7dc4c6b53f309ed776d88952bf5c768f72ad7c7e977f0fafc85f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ros_pointcloud_recorder-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cd3ae22d8b400d32abbb094fd6448c9254bf8dbb907fd5a097612252dc78681a
MD5 10127c139fb4303045685613adf700d9
BLAKE2b-256 fff2343cec3b8a3f3bf86d5259b3a0ca3e0d2e7768ef09851290dc4f8b151b1a

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