Static Public Member Functions | |
| static void | createZipFromFiles (Set< String > filenames, String target) |
| static boolean | deleteFolderRec (File path, boolean alsoDeleteGivenFolder) |
| static boolean | extractZipFile (String filename, String targetFolder) |
| static String | getClassFromUID (String uid) |
| static String | getFilenameFromURL (String url) |
| static String | getIDFromUID (String uid) |
| static String | getLocalRosPackagePath (String rosPackageName) |
| static String | getRemoteRosPackagePath (String hostname, String rosPackageName) |
| static String | getSimpleFilename (String longFilename) |
| static String | getURIforService (String service) |
| static void | main (String[] args) |
| static double[] | matrixToQuaternion (float[] m) |
| static boolean | sshCopyFromRemote (String remotefile, String remoteHost, String localdir) |
| static boolean | sshCopyToRemote (String localfile, String remoteHost, String remotedir) |
| static boolean | writeFile (String targetPath, String filename, byte[] content) |
| static boolean | writeRosFile (String targetPath, RosFile content) |
Static Public Attributes | |
| static final String | modelDir |
| static final String | re_commDir |
| static final String | tmpDir |
Static Package Functions | |
| [static initializer] | |
Util is a utility class that provides methods to create/extract zip files, copy files to and from a remote computer and retrieving the IP/URI of the computer offering a given ROS service.
| roboearth.wp5.util.Util.[static initializer] | ( | ) | [inline, static, package] |
| static void roboearth.wp5.util.Util.createZipFromFiles | ( | Set< String > | filenames, |
| String | target | ||
| ) | [inline, static] |
| static boolean roboearth.wp5.util.Util.deleteFolderRec | ( | File | path, |
| boolean | alsoDeleteGivenFolder | ||
| ) | [inline, static] |
This function will recursively delete directories and files.
| path | Directory to be deleted |
| alsoDeleteGivenFolder | Flag, indicating whether the directory that was passed in as first argument shall be deleted along with its contents or not. |
true if deletion was successfully completed,false otherwise. Parts of the given folder might already be deleted. | static boolean roboearth.wp5.util.Util.extractZipFile | ( | String | filename, |
| String | targetFolder | ||
| ) | [inline, static] |
| static String roboearth.wp5.util.Util.getClassFromUID | ( | String | uid | ) | [inline, static] |
| static String roboearth.wp5.util.Util.getFilenameFromURL | ( | String | url | ) | [inline, static] |
| static String roboearth.wp5.util.Util.getIDFromUID | ( | String | uid | ) | [inline, static] |
| static String roboearth.wp5.util.Util.getLocalRosPackagePath | ( | String | rosPackageName | ) | [inline, static] |
| static String roboearth.wp5.util.Util.getRemoteRosPackagePath | ( | String | hostname, |
| String | rosPackageName | ||
| ) | [inline, static] |
Searches for the absolute path of the given ROS package on a given host.
| hostname | host name, which is to be searched |
| rosPackageName | name of ROS package to search for |
| static String roboearth.wp5.util.Util.getSimpleFilename | ( | String | longFilename | ) | [inline, static] |
Retrieves the simple file name from a long file name containing the path by searching for the last index of the system dependent file separator and returning a substring starting from that index + 1. If no file separator was found, the input string gets returned.
| longFilename | long file name |
| static String roboearth.wp5.util.Util.getURIforService | ( | String | service | ) | [inline, static] |
| static void roboearth.wp5.util.Util.main | ( | String[] | args | ) | [inline, static] |
| static double [] roboearth.wp5.util.Util.matrixToQuaternion | ( | float[] | m | ) | [inline, static] |
| static boolean roboearth.wp5.util.Util.sshCopyFromRemote | ( | String | remotefile, |
| String | remoteHost, | ||
| String | localdir | ||
| ) | [inline, static] |
| static boolean roboearth.wp5.util.Util.sshCopyToRemote | ( | String | localfile, |
| String | remoteHost, | ||
| String | remotedir | ||
| ) | [inline, static] |
| static boolean roboearth.wp5.util.Util.writeFile | ( | String | targetPath, |
| String | filename, | ||
| byte[] | content | ||
| ) | [inline, static] |
| static boolean roboearth.wp5.util.Util.writeRosFile | ( | String | targetPath, |
| RosFile | content | ||
| ) | [inline, static] |
final String roboearth.wp5.util.Util.modelDir [static] |
final String roboearth.wp5.util.Util.re_commDir [static] |
final String roboearth.wp5.util.Util.tmpDir [static] |