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

Running rosjava tutorial examples

asked 2011-11-23 05:16:23 -0500

SFurtwangler gravatar image

Tried usual searches to see if anyone else was seeing this, but when I run:

rosrun rosjava_bootstrap rosjava_tutorial_pubsub org.ros.tutorials.pubsub.Listener

I get an error that says:

Loading node class: org.ros.tutorials.pubsub.Listener Exception in thread "main" java.lang.NullPointerException: Node name not specified.

I noticed that the documentation for rosjava seems a bit out of date (since NodeFactory.newNode no longer takes a default name), so it could be that I need some sort of argument, but I don't know what it is.

Any suggestions?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2012-01-12 22:47:37 -0500

damonkohler gravatar image

This is now handled by NodeMain.getDefaultNodeName(). It is no longer required to specify "__name:=...".

edit flag offensive delete link more

answered 2011-11-23 05:29:22 -0500

SFurtwangler gravatar image

I figured it out. You need to use "__name:=<whatever>" which now I remember being an argument to any ros node.

edit flag offensive delete link more

Question Tools


Asked: 2011-11-23 05:16:23 -0500

Seen: 522 times

Last updated: Jan 12 '12