Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 package ros;
00039
00040 import java.util.HashMap;
00041 import java.util.Map;
00042
00043 import ros.communication.Time;
00044 import ros.roscpp.RosCpp;
00045
00046
00047 public abstract class Ros {
00048 private static class SingletonHolder {
00049 private static final Ros instance = RosCpp.getInstance();
00050 }
00051
00052 public static Ros getInstance() {return SingletonHolder.instance; }
00053
00054 public abstract void init(String name, boolean noSigintHandler, boolean anonymousName, boolean noRosout, String [] args);
00055 public void init(String name) { init(name, false, false, false, new String[0]); }
00056
00057 public abstract boolean isInitialized();
00058
00059 public abstract boolean ok();
00060
00061 public abstract NodeHandle createNodeHandle(String ns, Map<String, String> remappings);
00062
00063 public abstract Time now();
00064
00065 public abstract void spin();
00066
00067 public abstract void spinOnce();
00068
00069 public abstract void logDebug(String message);
00070 public abstract void logInfo(String message);
00071 public abstract void logWarn(String message);
00072 public abstract void logError(String message);
00073 public abstract void logFatal(String message);
00074
00075 public abstract String getPackageLocation(String pkgName);
00076
00077
00078
00079 public NodeHandle createNodeHandle() {
00080 return createNodeHandle("");
00081 }
00082
00083 public NodeHandle createNodeHandle(String ns) {
00084 return createNodeHandle(ns, new HashMap<String, String>());
00085 }
00086
00087 public NodeHandle createNodeHandle(NodeHandle parent, String ns) {
00088 return createNodeHandle(parent.getNamespace() + "/" + ns);
00089 }
00090
00091 public NodeHandle createNodeHandle(NodeHandle parent, String ns, Map<String, String> remappings) {
00092 return createNodeHandle(parent.getNamespace() + "/" + ns, remappings);
00093 }
00094 }
rosjava_jni
Author(s): Maintained by Gheorghe Lisca (lisca@cs.uni-bremen.de) and developed by Jason Wolfe (jawolfe@willowgarage.com), Nicholas Butko (nbutko@cogsci.ucsd.edu), Lorenz Moesenlechner (moesenle@in.tum.de)
autogenerated on Sun Oct 5 2014 22:54:14