Robotics StackExchange | Archived questions

Environment directory change

I am reading the tutorials for creating a ROS environment so i can have an external one where i can edit my projects because i keep getting errors such as : fatal: could not create work tree dir 'ardronetutorials'.: Permission denied after command kadir@kadir:/opt/ros/hydro$ git clone https://github.com/mikehamer/ardronetutorials.git

I have been trying to work-it out but i failed to do so. Must i create a file for my document or is there a better way of doing it? And if i need a new file how can i source it so ROS can run it?

I don’t understand the instructions of http://wiki.ros.org/ROS/Tutorials/InstallingandConfiguringROSEnvironment

P.S. Beginner.

Asked by Abdul on 2014-05-03 09:46:17 UTC

Comments

Answers

You should check out the repositories somewhere into your home dir, not into /opt/ros/.... Only the root user can write to /opt/, and you should never do that. This is why you get the permission denied error.

Asked by Martin Günther on 2014-05-05 01:11:27 UTC

Comments

I have solved the problem by not downloading the file to the /opt/ros/... . I have placed it into the home folder by just typing git clone https://github.com/mikehamer/ardrone_... immediately after i opened my terminal. It complies perfectly and no permission errors.

Asked by Abdul on 2014-05-05 08:15:21 UTC

Comments