ros_comm icon indicating copy to clipboard operation
ros_comm copied to clipboard

Converting Rosbag files to .pcd format

Open vastav06 opened this issue 2 years ago • 2 comments

I am trying to convert .pcd files from the .bag files but getting this error. Let me know if anyone faced the same. I am using ROS Neotic. I am running roscore to get the localhost and am running this command currently: rosrun pcl_ros bag_to_pcd 2023-02-09-14-03-16.bag /camera1/depth/color/points /Downloads

The error is:

terminate called after throwing an instance of 'boost::filesystem::filesystem_error' what(): boost::filesystem::create_directory: Permission denied: "/Downloads" Aborted (core dumped)

Thanks!

vastav06 avatar Feb 27 '23 21:02 vastav06

Permission denied: "/Downloads"

If you are on Linux or macOS, this path would be in the root directory that is write-protected. Most likely you wanted to use the "Downloads" folder in your home directory instead?

Apart from that, note that pcl_ros is not from this repository here.

MichaelGrupp avatar Mar 27 '23 11:03 MichaelGrupp

I guess the correct command would be rosrun pcl_ros bag_to_pcd 2023-02-09-14-03-16.bag /camera1/depth/color/points ~/Downloads

Can this issue be closed?

peci1 avatar Apr 07 '23 14:04 peci1