Skip to main content

ROS PointCloud Recorder

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

Github地址:https://github.com/Knighthood2001/ros-pointcloud-recorder

依赖

重点说明:安装这个项目包的时候,我没有指定需要安装pcl-ros和rosbag,但是你在使用的时候,是需要有这个包的,因为这两个包,一般都是通过apt install ros-<ros版本>-pcl-ros和apt install ros-<ros版本>-rosbag安装的,所以你需要先安装这两个包。

  • ROS (必须安装rosbag和pcl_ros),因此你需要先安装ROS环境,才能使用ros-pointcloud-recorder。
  • Python 3.6+

安装

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文件

详细用法请参考示例代码。

设计要点

  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
  • v0.1.3 (2025-06-10)
    • 修改了README.md
    • 修改了setup.py
  • v0.1.4 (2025-06-10)
    • 支持自定义bag文件名称
    • 完善了README.md

Metadata

Release files for ros-pointcloud-recorder 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ros-pointcloud-recorder 0.1.4
File Size Uploaded Provenance Actions
ros-pointcloud-recorder-0.1.4.tar.gz 4.7 kB Without provenance Details for ros-pointcloud-recorder-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ros-pointcloud-recorder 0.1.4
File Interpreter ABI Platform Actions
ros_pointcloud_recorder-0.1.4-py3-none-any.whl Python 3 none any Details for ros_pointcloud_recorder-0.1.4-py3-none-any.whl

Total release size: 9.9 kB

Release files / ros-pointcloud-recorder-0.1.4.tar.gz

Download URL ros-pointcloud-recorder-0.1.4.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b57a1a22bcd40acaf9c84fa7dc513b10573bd4f859ae4a8476e6129226b5821b
BLAKE2b-256 checksum
How to use checksums
bc764de461b66c320e4cc402291fc019b85110b419074025c8b7a4ab30092c56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.10

Release files / ros_pointcloud_recorder-0.1.4-py3-none-any.whl

Download URL ros_pointcloud_recorder-0.1.4-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db034e49307ebe7b44b58687f98c63049e74ec8deaed508ca50ba8b8bf18f7e7
BLAKE2b-256 checksum
How to use checksums
215909b34561ac616fa9f443656e98a0d4bdf2082cc2129d4e0d2da903e64a91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.10

Security for ros-pointcloud-recorder 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page