0
$\begingroup$

Rosanswers logo

Hello everyone,

I started the tutorial about rosjava services recently. I've been following all the steps until I got to the final one where I need to execute rosrun in order to run the server and the client.

The problem I've found is that rosrun can't find org.ros.RosRun. I've sourced rosjava environment as well as executing roscore before attempting to run the server and the client. However, it is possible to execute the server and the client if you do it outside rosrun e.g. typing in the terminal

./build/install/client_server/bin/client_server org.ros.rosjava_tutorial_services.Client

Also, I've taken a look at previous topics and I've found a similar behaviour among the questions, but I didn't find a solution suitable for my problem. Some examples can be found here and here

I use Ubuntu 16.04 as well as ROS Kinetic, installing rosjava from sources. I've also tried installing rosjava from apt packages but I've the same results.

Is it a common problem? Am I doing something wrong?

Thanks for the help in advance


Originally posted by anonymous40337 on ROS Answers with karma: 16 on 2019-03-05

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

Hi, I've a quick update:

The problem was related with the opcion chosen: if you choose option 2 as indicated in the tutorial you execute a package that is not inside the bin folder. You need to type the option that contains the bin folder.

I was able to find the solution because of the pubsub tutorial. There indicates that you need to select the opcion that contains the bin folder.

Thank you again!


Originally posted by anonymous40337 with karma: 16 on 2019-03-06

This answer was ACCEPTED on the original site

Post score: 0


Original comments

Comment by jubeira on 2019-03-06:
Interesting observation; yes, the correct one is in the bin folder.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.