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便于未来扩展功能

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

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.0.tar.gz (4.4 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.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ros-pointcloud-recorder-0.1.0.tar.gz
  • Upload date:
  • Size: 4.4 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.0.tar.gz
Algorithm Hash digest
SHA256 be371a358035f2df253a87ec701a174bd3237e955d1f8bd290d5e86bf7ad5f10
MD5 4dc3562a3f95cf5fc36987a610ce7159
BLAKE2b-256 721dfe51c1bfbd0661b86d0c0245042b568253e3c56d55ad988160777d476a67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ros_pointcloud_recorder-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 06c0602e952e98fa7c4ab21fe6ab6c17b9df50c0ec1d2b44dd13f0b33677080b
MD5 344057e2d1d08dcd55cd95a8ec9b762d
BLAKE2b-256 04b28e6d7225391eff01bc386174b7889111078ca21cd658eb53802bdf87e32d

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