ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

How to run Talker/Listener from rosjava_tutorial_pubsub

asked 2012-10-23 04:02:45 -0600

safzam gravatar image

updated 2012-10-26 04:30:43 -0600

Hi all, I am following the tutorial I have rosjava_tutorial_pubsub. Now if I run "../gradlew installApp" I get successful build but I dont see any bin directory. And if I try to run Talker by command ./build/rosjava_tutorial_pubsub/bin/rosjava_tutorial_pubsub org.ros.rosjava_tutorial_pubsub.Talker I get error that Data not found. I think this is because there is not bin directory in ./build/rosjava_tutorial_pubsub/ but I dont know why

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2012-10-26 04:30:15 -0600

The documentation is a little outdated. Instead of:

./build/rosjava_tutorial_pubsub/bin/rosjava_tutorial_pubsub org.ros.rosjava_tutorial_pubsub.Talker

... you should run:

./build/install/rosjava_tutorial_pubsub/bin/rosjava_tutorial_pubsub org.ros.rosjava_tutorial_pubsub.Talker

(notice the missing install/).

edit flag offensive delete link more


Thanks. It works but if I create and build my own new package inside rosjava_core directory and put inside src/main/java/org/ros/my_test/ and copied build.gradle from pubsub tutorial, it gives error:> Project with path ':rosjava' could not be found in root project 'my_test'

safzam gravatar image safzam  ( 2012-10-27 12:34:12 -0600 )edit

That's a different problem, so please open a new question and post a link to that question here. I'll answer there.

Martin Günther gravatar image Martin Günther  ( 2012-10-27 22:08:58 -0600 )edit

Hi Martin, can you please explain how to make new package buildable and runable in rosjava_core in detail and step by step. here is the link THANKS

safzam gravatar image safzam  ( 2012-10-29 07:04:38 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-10-23 04:02:45 -0600

Seen: 790 times

Last updated: Oct 26 '12