Ask Your Question
1

running rosjava example [closed]

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

Markus Eich gravatar image

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

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

rosrun rosjava_bootstrap run.py 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

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

1 Answer

Sort by ยป oldest newest most voted
0

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

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 https://rosjava.googlecode.com/hg. Is this head or release?

Best,

Markus

edit flag offensive delete link more

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

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

Question Tools

Stats

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

Seen: 363 times

Last updated: Jan 26 '12