PermissionError when trying to build a ros2 package.

asked 2022-02-16 12:37:08 -0600

I'm very new to ros2 having just install ros2 foxy using Ubuntu 20.4. Trying to build my first package. I have the ros2_ws folder and associated subfolders including "src". I understand that the "src" subfolder is where the packages are created in. When I typed in the following; "ros2 create pkg my_py_pkg --build-type ament_python --dependencies rclpy" It looks like it begins to build the package however I suddenly get the following error message; "PermissionError: [Errno 13] Permission denied: './my_py_pkg' I thought it was a Linux folder permissions error and tried the chmod -R a+rwx command to the folder and it came back with "No such directory existed" Need guidance on what I need to do to correct this. Thank you very much.

edit retag flag offensive close merge delete