sudo catkin_make command not found
I've been playing around with the TurtleSim demo project (and now have draw_square actually drawing a square, except that the precision of the g_goal->theta calculation is not enough to make the 4th side of the square as straight as I would like it).
I've been using catkin_make install -DCMAKE_INSTALL_PREFIX=/opt/ros/hydro
to build the project. It works fine and updates the install space of my package. I tried sourcing the install/setup.bash file hoping it would perform the actual install into /opt/ros/hydro but it doesn't. So I've been manually copy/pasting the executables into the /opt/ros folder structure for testing.
I would like to do this the proper way, so I tried performing the above catkin_make command using sudo, thinking that it might be a permission problem. But when I do this, my terminal returns 'catkin_make: command not found'.
Could someone please explain:
Why I'm getting command not found when using sudo catkin_make?
What is the proper way of installing a package so that it can be run using rosrun?
Cheers,
Nap
I installed ROS Hydro using apt-get install.
(I am rather new to Ubuntu, having had lots of Windows experience though.)
Don't know if this will solve the problem, but I can tell you that you cannot run the command catkin_make with sudo. Moreover the command catkin_make should be used in your catkin workspace folder, where are you running it?
yes, I'm running it in my catkin workspace. According to the tutorial (wiki.ros.org/catkin/Tutorials/using_a_workspace), it says that sudo might be required. What I'm really trying to achieve is to be able to install my new version of the TurtleSim project so I can run it using 'rosrun'.
If you want to run the command catkin_make in sudo, try first 'sudo -s' to get superuser permissions and then run 'catkin_make'. I don't understand well why you want to install the package, you could simply make it and the run it using rosrun, without installing it, but maybe I didn't understand well the question!
@Tirjen, so what you're saying is that I can do `source install/setup.bash` and this would set the path to my new version and rosrun turtlesim draw_square` wlll run my version not the one in /opt/ros/...? Edit: tested it: yes, that's how it works