what is the best way to download code from a .rosinstall file in a groovy catkin workspace?

asked 2013-01-07 18:55:23 -0500

updated 2013-01-09 02:33:00 -0500

I've followed the instructions in this tutorial: http://www.ros.org/wiki/catkin/Tutorials/create_a_workspace to set up my catkin workspace.

Now I would like to download existing code to this workspace:

Instructions:

cd ~/catkin_ws/src
rosinstall ./ https://raw.github.com/piyushk/freenect_stack/master/rosinstall/freenect.piyushk.rosinstall --catkin

The following error is generated:

rosinstall operating on /home/piyushk/catkin_ws/src from specifications in rosinstall files  https://raw.github.com/piyushk/freenect_stack/master/rosinstall/freenect.piyushk.rosinstall
(Over-)Writing /home/piyushk/catkin_ws/src/.rosinstall
[freenect_stack] Installing git@github.com:piyushk/freenect_stack.git (version None) to /home/piyushk/catkin_ws/src/freenect_stack
[freenect_stack] Done.
Traceback (most recent call last):
  File "/usr/bin/rosinstall", line 16, in <module>
    sys.exit(not rosinstall_main(sys.argv))
  File "/usr/lib/pymodules/python2.7/rosinstall/rosinstall_cli.py", line 229, in rosinstall_main
    options.catkinpp)
  File "/usr/lib/pymodules/python2.7/rosinstall/rosinstall_cmd.py", line 84, in cmd_generate_ros_files
    setupfiles.generate_catkin_cmake(path, catkinpp)
  File "/usr/lib/pymodules/python2.7/rosinstall/setupfiles.py", line 69, in generate_catkin_cmake
    with open(os.path.join(path, "CMakeLists.txt"), 'w') as cmake_file:
IOError: [Errno 13] Permission denied: '/home/piyushk/catkin_ws/src/CMakeLists.txt'

The error is generated because catkin_make created the CMakeLists.txt in ~/catkin_ws/src/ already. As far as I can tell this error has no effect. Both my rosbuild and catkin workspaces seem to be working properly

Here are my questions:

  • Was I supposed to do something else above?
  • Can rosws be tied to my catkin workspace if I did not have a rosbuild ws?
  • Is there a better way to install code from a .rosinstall file in a catkin workspace?

Thanks!!

edit retag flag offensive close merge delete

Comments

4

Use wstool instead of rosinstall/rosws for catkin workspaces. It has been created because of such problems. wtool can be installed via apt-get: $ sudo apt-get install python-wstool it works just like rosws for the most part.

KruseT gravatar image KruseT  ( 2013-01-08 00:06:02 -0500 )edit

Awesome. I missed it as I went through the catking tutorials. Thanks!

piyushk gravatar image piyushk  ( 2013-01-08 02:01:29 -0500 )edit