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

Problem with rosjava installation

asked 2013-05-23 23:33:14 -0600

Jhansi gravatar image

Iam new to ROS trying to install rosjava in ubuntu 11.10 fuerte.But when Iam Trying to execute the following command: rosws merge h**ps://github.com/rosjava/rosjava_core/.rosinstall

Iam getting the following error:

Traceback (most recent call last): File "/usr/local/bin/rosws", line 65, in <module> sys.exit(rosinstall.rosws_cli.rosws_main(sys.argv)) File "/usr/local/lib/python2.7/dist-packages/rosinstall/rosws_cli.py", line 441, in rosws_main os.getcwd(), OSError: [Errno 2] No such file or directory

How can I install rosjava successfully without these errors?

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted
1

answered 2013-05-24 23:57:14 -0600

updated 2013-05-25 00:16:50 -0600

Your problem doesn't seem to be related to rosjava, but to rosinstall/rosws. On Ubuntu, you should remove the old rosinstall stuff installed via pip and instead use the deb version:

$ sudo rm -rf /usr/local/lib/python2.7/dist-packages/rosinstall*
$ sudo rm -rf /usr/local/lib/python2.7/dist-packages/vcstools*

then

$ sudo apt-get install python-rosinstall

Also, the .rosinstall link in the rosjava doc is out of date. After running the steps above, you should do this:

mkdir ~/my_workspace
cd ~/my_workspace
rosws init
rosws merge /opt/ros/groovy/.rosinstall
rosws set --git --version=groovy-devel rosjava_core 'git://github.com/rosjava/rosjava_core.git'
rosws update
source setup.bash

I've submitted pull requests 161 and 162 to fix the rosjava documentation.

edit flag offensive delete link more

Comments

rosws update gives error as:[rosjava_core] Updating /home/jhansi/my_workspace/rosjava_core WARNING [vcstools] Command failed: 'git fetch' run at: '/home/jhansi/my_workspace/rosjava_core' errcode: 128: error: RPC failed; result=56, HTTP code = 200 fatal: The remote end hung up unexpectedly

Jhansi gravatar image Jhansi  ( 2013-05-27 23:13:45 -0600 )edit
1

Can you post the relevant lines of your .rosinstall file, i.e. the output of grep -A 1 rosjava_core $ROS_WORKSPACE/.rosinstall?

Martin Günther gravatar image Martin Günther  ( 2013-05-28 02:46:26 -0600 )edit

Which error are you getting? The "No such file"? In that case, I guess it's not rosjava specific, and I'd ask a new question like "rosinstall fails on OSX". Or do you get the "remote hung up" one? Even after following all steps above with a fresh work space?

Martin Günther gravatar image Martin Günther  ( 2013-05-30 23:36:08 -0600 )edit

So you don't get any error during the rosinstall? In that case, it's a different problem and doesn't belong into this question, sorry.

Martin Günther gravatar image Martin Günther  ( 2013-05-31 05:57:20 -0600 )edit
0

answered 2013-08-15 16:32:22 -0600

After you do the set from above:

rosws set --git --version=groovy-devel rosjava_core 'git://github.com/rosjava/rosjava_core.git'

remember to run 'rosws update rosjava_core' to update the folder from git

Explicitly specify the workspace that you want to update rosjava_core

I had this problem once... I then accidentally figured out the solution and forgot the solution. Now I've run into the problem again and couldn't remember how I solved it. But after fiddling around a bit... I recalled that this was the problem.

edit flag offensive delete link more

Comments

My answer already includes the `rosws update` instruction. I just tested it again, and it does exactly what it should, so I don't see why you have to explicitly run `rosws update rosjava_core` instead. Correct?

Martin Günther gravatar image Martin Günther  ( 2013-08-18 23:31:42 -0600 )edit
0

answered 2013-05-24 06:50:26 -0600

101010 gravatar image

this isn't the answer you are looking for, however...

rosjava is still very beta. i am not away of many people who have successfully installed and compiled the code, much less used. i would suggest, since you are new to ros, to review the standard ros release using c++ or python and the tutorials that have been created. otherwise you may decide to abandon ros alltogether, and that would be a shame.

edit flag offensive delete link more

Comments

1

Sorry to disagree, but I think you're overly harsh on rosjava. True, it's not yet as easy to use as roscpp or rospy, and for most people I'd not recommend it because there is much more support for roscpp or rospy. But I'm aware of several people who are using rosjava successfully every day.

Martin Günther gravatar image Martin Günther  ( 2013-05-24 23:30:25 -0600 )edit

Good to hear it as I plan on using it for some ROV work in the near future. Cheers!

101010 gravatar image 101010  ( 2013-05-25 18:53:18 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2013-05-23 23:33:14 -0600

Seen: 1,900 times

Last updated: Aug 15 '13