Rosanswers logo

Hello Guys,

i use Ubuntu 16.04 with ros kinetic and gazebo 7.0. I have a Gazebo world with turtlebot in it.

I get some Pointcloud data from /camera/depth/points. Now i want to save this data in pcd files.

I use:

rosrun pcl_ros pointcloud_to_pcd input:=/camera/depth/points

That works well i get some pcd files. Now i want to add the timestamp to the file name is this somehow possible? Or is there something in pcl_ros that support this?

I know that most of the ros topics have a timestamp.

Originally posted by Baumboon on ROS Answers with karma: 206 on 2018-02-16

Post score: 0


1 Answer 1


Rosanswers logo

I'm confused. By default pointcloud_to_pcd should already use the timestamp of the msg as the filename.

See wiki/pcl_ros - pointcloud_to_pcd.

Originally posted by gvdhoorn with karma: 86574 on 2018-02-16

This answer was ACCEPTED on the original site

Post score: 1

Original comments

Comment by Baumboon on 2018-02-16:
oops i just saw number like 1894000 an so on , i was too nooby to understand this is the timestamp so question is closed thank u .

Sry for my fail

Comment by gvdhoorn on 2018-02-16:
Well, it is a timestamp. It's not necessarily in a format you'd like though. There is no support for any other timestamp than the unix stamp it uses now.

Note btw that it does support a prefix parameter.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.