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

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 http://docs.rosjava.googlecode.com/hg/rosjava_core/html/getting_started.html#executing-nodes 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
0

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

Comments

Thanks. It works but if I create and build my own new package inside rosjava_core directory and put Talker.java inside src/main/java/org/ros/my_test/Talker.java 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 http://answers.ros.org/question/46961/error-in-building-new-package-in-rosjava_core/ THANKS

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

Question Tools

Stats

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

Seen: 821 times

Last updated: Oct 26 '12