⌚ Time to complete: 2 minutes

Planned outcomes

After completing this guide, you can be sure that all Python scripts inside your ROS workspace are executable and won’t fail because of the permission errors.

Steps

  1. Go to src folder of your ROS workspace:

    WORKSPACE_NAME="ws_unity_x_ros"
    ROS_WS_PATH=~/ros/${WORKSPACE_NAME}/
    
    cd ${ROS_WS_PATH}src
    
  2. Set file permissions:

    find . -type f -name "*.py" -exec chmod 744 {} \;
    
  3. Done! 🎉

Utility to calculate permission flags

https://chmod-calculator.com/