Ask Your Question
0

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
1

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

Comments

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 imageBaumboon ( 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 imagegvdhoorn ( 2018-02-16 07:46:39 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 294 times

Last updated: Feb 16 '18