ros / ros_comm

ROS communications-related packages, including core client libraries (roscpp, rospy, roslisp) and graph introspection tools (rostopic, rosnode, rosservice, rosparam).
http://wiki.ros.org/ros_comm
747 stars 914 forks source link

Converting Rosbag files to .pcd format #2316

Open vastav06 opened 1 year ago

vastav06 commented 1 year ago

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!

MichaelGrupp commented 1 year ago

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 1 year ago

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?