Rosjava import defaultnodefactory fails
Hi all, I've checked out rosjava from mercurial in my ros package path. It complains with the import statement of DefaultNodeFactory:
compile:
[javac] /home/u0062536/ros/raw/kb-home-pkg/HA_android_GUI/build.xml:26: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 2 source files to /home/u0062536/ros/raw/kb-home-pkg/HA_android_GUI/build
[javac] /home/u0062536/ros/raw/kb-home-pkg/HA_android_GUI/src/rostest.java:6: cannot find symbol
[javac] symbol : class DefaultNodeFactory
[javac] location: package org.ros.node
[javac] import org.ros.node.DefaultNodeFactory;
[javac] ^
[javac] 1 error
BUILD FAILED
This on a easy java code example:
import java.net.URI;
import java.net.URISyntaxException;
import org.ros.address.InetAddressFactory;
import org.ros.node.Node;
import org.ros.node.NodeConfiguration;
import org.ros.node.DefaultNodeFactory;
/**
* The HelloWorldApp class implements an application that
* simply prints "Hello World!" to standard output.
*/
class RosTestApp {
public static void main(String[] args) {
System.out.println("Hello World, trying to get ROS to work, with NF!"); // Display the string.
}
}
If the DefaultNodeFactory is commented out the code does work perfect. Rosjava compiles fine and is added in the manifest of this package. The goal of the package is to build a android app that uses rosjava to connect to a roscore.