Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
cad_models [2013/01/07 12:20] – [List of available parsers] tenorthcad_models [2013/04/22 08:45] – [Visualize objects using CAD models] admin
Line 1: Line 1:
 ====== Visualize objects using CAD models ====== ====== Visualize objects using CAD models ======
  
-This should be a quick start guide for using CAD models in KnowRob. CAD Models are used to show a realistic model of an object in KnowRob visualization (mod_vis). Please refer to the main knowrob tutorial ([[Tutorial:_KnowRob_basics]]) for getting started.+This should be a quick start guide for using CAD models in KnowRob. CAD Models are used to show a realistic model of an object in KnowRob visualization (mod_vis). Please refer to the main knowrob tutorial ([[doc/knowrob_basics|KnowRob_basics]]) for getting started.
  
  
Line 64: Line 64:
 Currently the following file formats are supported: Currently the following file formats are supported:
   * [[#Collada Parser|Collada]]: *.dae, *.kmz   * [[#Collada Parser|Collada]]: *.dae, *.kmz
 +  * [[#PLY Parser|Polygon File Format]]: *.ply
  
 === Collada Parser === === Collada Parser ===
Line 71: Line 72:
  
 ====  How to create a new parser? ====  ====  How to create a new parser? ==== 
-Check out ColladaParser for a sample implementation of a parser.+Check out ColladaParser for a sample implementation of a parser. The necessary steps for creating a new model parser are:
  
-Steps to create a new model parser: +  Create a new class and extend it from ModelParser
- +
-  create a new class and extend it from ModelParser+
   * Add your parser to the extension list (In ModelParser.java) so a file extension will be assigned to your parser:   * Add your parser to the extension list (In ModelParser.java) so a file extension will be assigned to your parser:
     * Example: <code>extensionAssignment.put("dae", ColladaParser.class);</code>     * Example: <code>extensionAssignment.put("dae", ColladaParser.class);</code>
-  * implement the needed methods. These should be self explained (see javadoc) +  * Implement the required methods. These should be self-explaining (see javadoc) 
-  * Store all data in Groups member of ModelParser parent.+  * Store all data in the Groups member of the ModelParser parent class.