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

running rosjava example [closed]

asked 2012-01-24 00:56:36 -0600

Markus Eich gravatar image

updated 2012-01-24 01:05:19 -0600

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

rosrun rosjava_bootstrap rosjava_tutorial_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.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by damonkohler
close date 2012-02-20 00:17:29


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?
damonkohler gravatar image damonkohler  ( 2012-01-25 13:12:32 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2012-01-26 23:41:24 -0600

Markus Eich gravatar image

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 Is this head or release?



edit flag offensive delete link more


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.
damonkohler gravatar image damonkohler  ( 2012-01-27 03:43:16 -0600 )edit

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

Markus Eich gravatar image Markus Eich  ( 2012-02-13 02:45:21 -0600 )edit

Question Tools


Asked: 2012-01-24 00:56:36 -0600

Seen: 510 times

Last updated: Jan 26 '12