Robotics StackExchange | Archived questions

running rosjava example

Dear all. I successfully compiled the tutorial example. I started roscore prior to running the examples. When I run

rosrun rosjavabootstrap run.py rosjavatutorial_pubsub org.ros.tutorials.pubsub.Talker

everything seems ok (Loading node class: org.ros.tutorials.pubsub.Talker). But I cannot see the topic. If I run rostopic list I only see

  1. /rosout
  2. /rosout_agg

but no /chatter. The main reason I want to use rosjava is to call my java library from C++ ros.

Asked by Markus Eich on 2012-01-24 01:56:36 UTC

Comments

Are you using the released version of rosjava or are you using it from head? Where is roscore running? Are ROS_IP and ROS_MASTER_URI correct?

Asked by damonkohler on 2012-01-25 14:12:32 UTC

Answers

All are running on the same machine. Using ROS C++ is fine, there exist only a problem with the JAVA api. Where can I get the head version of rosjava? I am just using the repository https://rosjava.googlecode.com/hg. Is this head or release?

Best,

Markus

Asked by Markus Eich on 2012-01-27 00:41:24 UTC

Comments

Please reply to comments with comments, not new answers. If you're building rosjava from source, make sure you've updated to the latest release (i.e. head). It changes frequently. You can use hg pull in the location where you've checked out rosjava_core.

Asked by damonkohler on 2012-01-27 04:43:16 UTC

I just updated the version and now everything is running fine. The /chatter topics appears and I can publish to it.

Asked by Markus Eich on 2012-02-13 03:45:21 UTC