ros/ros_comm

Converting Rosbag files to .pcd format

vastav06 opened this issue · 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!

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.

peci1 commented

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?