ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Pointcloud to pcd file with Timestamp in name

asked 2018-02-16 06:45:47 -0500

Baumboon gravatar image

updated 2018-02-16 06:47:41 -0500

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-02-16 07:35:26 -0500

gvdhoorn gravatar image

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.

edit flag offensive delete link more


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

Baumboon gravatar image Baumboon  ( 2018-02-16 07:43:53 -0500 )edit

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.

gvdhoorn gravatar image gvdhoorn  ( 2018-02-16 07:46:39 -0500 )edit

Question Tools

1 follower


Asked: 2018-02-16 06:45:47 -0500

Seen: 1,438 times

Last updated: Feb 16 '18