ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I need to convert urdf to sdf with the following command
gz sdf -p /quadrotor_base.urdf > /quadrotor_base.sdf
but it is giving me the error
bash: /quadrotor_base.sdf: Permission denied
why can this be?
Most likely because the paths you specify point to files in the root directory, which is a directory a normal user cannot write to.
How can I solve this?
Specify paths (at least for the output) where you do have write permissions.
Did you perhaps forget to add a dot (ie: .
)? So /quadrotor_base.urdf
would become ./quadrotor_base.urdf
, which would mean: the quadrotor_base.urdf
in the current directory.