Public Member Functions | |
OWLOntology | buildOWLDescription (String filename) |
PosesToOWL () | |
Static Public Member Functions | |
static void | main (String[] args) |
static boolean | saveOntologyToFile (OWLOntology ontology, String file) |
static boolean | saveOntologyToFile (OWLOntology ontology, String file, OWLOntologyFormat format) |
static boolean | saveOntologyToStream (OWLOntology ontology, OutputStream stream, OWLOntologyFormat format) |
static String | saveOntologytoString (OWLOntology ontology, OWLOntologyFormat format) |
Static Public Attributes | |
static final String | IAS_MAP = "http://ias.cs.tum.edu/kb/ccrl2_semantic_map_addons.owl#" |
static final String | KNOWROB = "http://ias.cs.tum.edu/kb/knowrob.owl#" |
static final String | OWL = "http://www.w3.org/2002/07/owl#" |
static final DefaultPrefixManager | PREFIX_MANAGER = new DefaultPrefixManager(IAS_MAP) |
static final String | RDFS = "http://www.w3.org/2000/01/rdf-schema#" |
Protected Member Functions | |
OWLNamedIndividual | createPerceptionInst (OWLNamedIndividual obj_inst, OWLNamedIndividual pose_inst, OWLNamedIndividual timestamp, OWLOntology ontology) |
void | createPointDescription (String objname, double[] matrix, OWLNamedIndividual timestamp, OWLOntology ontology) |
OWLNamedIndividual | createPointInst (OWLOntology ontology) |
OWLNamedIndividual | createPoseInst (double[] ros_obj, OWLOntology ontology) |
OWLNamedIndividual | createTimePointInst (ros.communication.Time stamp, OWLOntology ontology) |
OWLNamedIndividual | createTrajInst (OWLOntology ontology) |
String | instForClass (String cl) |
Static Protected Member Functions | |
static void | initRos (String node_name) |
static double[] | quaternionToMatrix (Point p, Quaternion q) |
Static Protected Attributes | |
static final HashMap< String, String > | rosToKnowrob = new HashMap<String, String>() |
Static Package Functions | |
[static initializer] | |
[static initializer] | |
Package Attributes | |
OWLDataFactory | factory |
int | inst_counter = 150 |
OWLOntologyManager | manager |
DefaultPrefixManager | pm |
HashMap< String, ArrayList < OWLNamedIndividual > > | pointsInTrajectories |
Static Package Attributes | |
static NodeHandle | n |
static Ros | ros |
static Boolean | rosInitialized = false |
Definition at line 28 of file PosesToOWL.java.
edu.tum.cs.ias.knowrob.map.PosesToOWL.PosesToOWL | ( | ) | [inline] |
Constructor. Advertises the needed ROS services.
ros | reference to rosjava |
n | the node handle |
RosException | if advertising ROS services failed |
Definition at line 117 of file PosesToOWL.java.
edu.tum.cs.ias.knowrob.map.PosesToOWL.[static initializer] | ( | ) | [inline, static, package] |
edu.tum.cs.ias.knowrob.map.PosesToOWL.[static initializer] | ( | ) | [inline, static, package] |
OWLOntology edu.tum.cs.ias.knowrob.map.PosesToOWL.buildOWLDescription | ( | String | filename | ) | [inline] |
OWLNamedIndividual edu.tum.cs.ias.knowrob.map.PosesToOWL.createPerceptionInst | ( | OWLNamedIndividual | obj_inst, |
OWLNamedIndividual | pose_inst, | ||
OWLNamedIndividual | timestamp, | ||
OWLOntology | ontology | ||
) | [inline, protected] |
Definition at line 322 of file PosesToOWL.java.
void edu.tum.cs.ias.knowrob.map.PosesToOWL.createPointDescription | ( | String | objname, |
double[] | matrix, | ||
OWLNamedIndividual | timestamp, | ||
OWLOntology | ontology | ||
) | [inline, protected] |
Definition at line 243 of file PosesToOWL.java.
OWLNamedIndividual edu.tum.cs.ias.knowrob.map.PosesToOWL.createPointInst | ( | OWLOntology | ontology | ) | [inline, protected] |
Definition at line 272 of file PosesToOWL.java.
OWLNamedIndividual edu.tum.cs.ias.knowrob.map.PosesToOWL.createPoseInst | ( | double[] | ros_obj, |
OWLOntology | ontology | ||
) | [inline, protected] |
Definition at line 297 of file PosesToOWL.java.
OWLNamedIndividual edu.tum.cs.ias.knowrob.map.PosesToOWL.createTimePointInst | ( | ros.communication.Time | stamp, |
OWLOntology | ontology | ||
) | [inline, protected] |
Definition at line 261 of file PosesToOWL.java.
OWLNamedIndividual edu.tum.cs.ias.knowrob.map.PosesToOWL.createTrajInst | ( | OWLOntology | ontology | ) | [inline, protected] |
Definition at line 284 of file PosesToOWL.java.
static void edu.tum.cs.ias.knowrob.map.PosesToOWL.initRos | ( | String | node_name | ) | [inline, static, protected] |
Initialize the ROS environment if it has not yet been initialized
node_name | A unique node name |
Definition at line 100 of file PosesToOWL.java.
String edu.tum.cs.ias.knowrob.map.PosesToOWL.instForClass | ( | String | cl | ) | [inline, protected] |
Definition at line 351 of file PosesToOWL.java.
static void edu.tum.cs.ias.knowrob.map.PosesToOWL.main | ( | String[] | args | ) | [inline, static] |
Definition at line 566 of file PosesToOWL.java.
static double [] edu.tum.cs.ias.knowrob.map.PosesToOWL.quaternionToMatrix | ( | Point | p, |
Quaternion | q | ||
) | [inline, static, protected] |
Definition at line 357 of file PosesToOWL.java.
static boolean edu.tum.cs.ias.knowrob.map.PosesToOWL.saveOntologyToFile | ( | OWLOntology | ontology, |
String | file | ||
) | [inline, static] |
Saves an OWL ontology to a file.
ontology | ontology to be saved |
file | name of target file |
true
- if saving was successfully completedfalse
- otherwise Definition at line 488 of file PosesToOWL.java.
static boolean edu.tum.cs.ias.knowrob.map.PosesToOWL.saveOntologyToFile | ( | OWLOntology | ontology, |
String | file, | ||
OWLOntologyFormat | format | ||
) | [inline, static] |
Saves an OWL ontology to a file in a given ontology format.
ontology | ontology to be saved |
file | name of target file |
format | desired ontology format ( |
true
- if saving was successfully completedfalse
- otherwise Definition at line 512 of file PosesToOWL.java.
static boolean edu.tum.cs.ias.knowrob.map.PosesToOWL.saveOntologyToStream | ( | OWLOntology | ontology, |
OutputStream | stream, | ||
OWLOntologyFormat | format | ||
) | [inline, static] |
Saves an OWL ontology to an output stream in a given ontology format.
ontology | ontology to be saved |
stream | output stream |
format | desired ontology format ( |
true
- if saving was successfully completedfalse
- otherwise Definition at line 412 of file PosesToOWL.java.
static String edu.tum.cs.ias.knowrob.map.PosesToOWL.saveOntologytoString | ( | OWLOntology | ontology, |
OWLOntologyFormat | format | ||
) | [inline, static] |
Saves an OWL ontology to a String object.
ontology | ontology to be saved |
format | desired ontology format ( |
Definition at line 462 of file PosesToOWL.java.
OWLDataFactory edu.tum.cs.ias.knowrob.map.PosesToOWL.factory [package] |
Definition at line 79 of file PosesToOWL.java.
final String edu.tum.cs.ias.knowrob.map.PosesToOWL.IAS_MAP = "http://ias.cs.tum.edu/kb/ccrl2_semantic_map_addons.owl#" [static] |
Definition at line 45 of file PosesToOWL.java.
int edu.tum.cs.ias.knowrob.map.PosesToOWL.inst_counter = 150 [package] |
Definition at line 83 of file PosesToOWL.java.
final String edu.tum.cs.ias.knowrob.map.PosesToOWL.KNOWROB = "http://ias.cs.tum.edu/kb/knowrob.owl#" [static] |
Definition at line 36 of file PosesToOWL.java.
OWLOntologyManager edu.tum.cs.ias.knowrob.map.PosesToOWL.manager [package] |
Definition at line 80 of file PosesToOWL.java.
NodeHandle edu.tum.cs.ias.knowrob.map.PosesToOWL.n [static, package] |
Definition at line 90 of file PosesToOWL.java.
final String edu.tum.cs.ias.knowrob.map.PosesToOWL.OWL = "http://www.w3.org/2002/07/owl#" [static] |
Definition at line 39 of file PosesToOWL.java.
DefaultPrefixManager edu.tum.cs.ias.knowrob.map.PosesToOWL.pm [package] |
Definition at line 81 of file PosesToOWL.java.
HashMap<String, ArrayList<OWLNamedIndividual> > edu.tum.cs.ias.knowrob.map.PosesToOWL.pointsInTrajectories [package] |
Definition at line 77 of file PosesToOWL.java.
final DefaultPrefixManager edu.tum.cs.ias.knowrob.map.PosesToOWL.PREFIX_MANAGER = new DefaultPrefixManager(IAS_MAP) [static] |
Definition at line 49 of file PosesToOWL.java.
final String edu.tum.cs.ias.knowrob.map.PosesToOWL.RDFS = "http://www.w3.org/2000/01/rdf-schema#" [static] |
Definition at line 42 of file PosesToOWL.java.
Ros edu.tum.cs.ias.knowrob.map.PosesToOWL.ros [static, package] |
Definition at line 89 of file PosesToOWL.java.
Boolean edu.tum.cs.ias.knowrob.map.PosesToOWL.rosInitialized = false [static, package] |
Definition at line 88 of file PosesToOWL.java.
final HashMap<String, String> edu.tum.cs.ias.knowrob.map.PosesToOWL.rosToKnowrob = new HashMap<String, String>() [static, protected] |
Definition at line 58 of file PosesToOWL.java.