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

How to run Talker/Listener from rosjava_tutorial_pubsub

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

safzam gravatar image

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

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 -0500

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 -0500 )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 -0500 )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 -0500 )edit

Question Tools


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

Seen: 813 times

Last updated: Oct 26 '12