ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

problem with rosws merge

asked 2012-12-05 23:31:43 -0500

alessandrayoko gravatar image

updated 2012-12-05 23:45:03 -0500

KruseT gravatar image

when I run "roslocate info ROSARIA | rosws merge -" in order to install ROSARIA, happens an error:

basilio@lcarobo:~/fuerte_workspace$ roslocate info ROSARIA | rosws merge -
Traceback (most recent call last):
  File "/usr/local/bin/rosws", line 64, in <module>
    sys.exit(rosinstall.rosws_cli.rosws_main(sys.argv))
  File "/usr/local/lib/python2.7/dist-packages/rosinstall/rosws_cli.py", line 440, in rosws_main
   return ws_commands[command](workspace, args)
File "/usr/local/lib/python2.7/dist-packages/rosinstall/multiproject_cli.py", line 277, in cmd_merge
    pipedata = "".join(sys.stdin.readlines())
NameError: global name 'sys' is not defined
close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr

how can I fix it? is there any package missing?

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
3

answered 2012-12-05 23:44:19 -0500

KruseT gravatar image

This was a bug in rosws: https://github.com/vcstools/rosinstall/issues/27 a patch has been released today with rosinstall 0.6.22. update, and it should work.

edit flag offensive delete link more
0

answered 2013-02-26 09:35:40 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

1 - Creating workspace - Criando o workspace:

Choose your ROS version - Dependendo da versão do ROS(a ou b), pode-se fazer em diretórios separados:

a) ROS Fuerte:

rosws init ~/ros-fuerte /opt/ros/fuerte

b) ROS Groovy

rosws init ~/ros-groovy /opt/ros/groovy

3 - Bring ROSAria into workspace - Liberando o workspace criado para o ROSAria

cd ~/ros-<distro>
rosws set --hg amor-ros-pkg https://amor-ros-pkg.googlecode.com/hg
rosws update

4 - Setting up the new workspace - Para configurar o workspace novo, precisamos rodar o script setup.bash

cd ~/ros-<distro>
source ./setup.bash

5 - Checking if download was correctly - Para confirmar que o download foi feito:

rospack profile

6 - Checking if ROS recognize the package - Checando se o ROS reconhece o pacote:

rospack find ROSARIA

7 - Building the package - Compilando o pacote:

sudo rosdep init
rosdep update
rosdep install ROSARIA
rosmake ROSARIA
edit flag offensive delete link more

Comments

I fixed some details. I see the roslocate command from the question currently fails. Have you considered using the "rosws set amor-ros-pkg https://amor-ros-pkg.googlecode.com/hg --hg" command?

KruseT gravatar image KruseT  ( 2013-02-27 01:02:54 -0500 )edit

Question Tools

Stats

Asked: 2012-12-05 23:31:43 -0500

Seen: 640 times

Last updated: Feb 27 '13