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
loading_files_and_ros_packages [2012/12/01 10:44] – [Loading OWL files] tenorthloading_files_and_ros_packages [2012/12/01 10:44] – [Loading OWL/Prolog files in ROS packages] tenorth
Line 12: Line 12:
 =====  Loading Prolog modules  ===== =====  Loading Prolog modules  =====
 Most functionality in KnowRob is contained in [[http://www.swi-prolog.org/pldoc/doc_for?object=section%281,%275%27,swi%28%27/doc/Manual/modules.html%27%29%29|Prolog modules]]. They can be loaded using the use_module directive. The module needs to be either somewhere in the Prolog 'library' path or be referenced relative to the current working directory: Most functionality in KnowRob is contained in [[http://www.swi-prolog.org/pldoc/doc_for?object=section%281,%275%27,swi%28%27/doc/Manual/modules.html%27%29%29|Prolog modules]]. They can be loaded using the use_module directive. The module needs to be either somewhere in the Prolog 'library' path or be referenced relative to the current working directory:
-<code prolog>+<code>
  use_module(library('module-name')).  use_module(library('module-name')).
  use_module('path/to/module-name').  use_module('path/to/module-name').
Line 24: Line 24:
  
 Each KnowRob ROS package can be loaded using the following predicate: Each KnowRob ROS package can be loaded using the following predicate:
-<code prolog>+<code>
  register_ros_package('pkg-name').  register_ros_package('pkg-name').
 </code> </code>