Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
doc:create_your_own_knowrob_package [2014/08/07 09:03] – admin | doc:create_your_own_knowrob_package [2021/02/18 08:10] – daniel86 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Create your own KnowRob package ====== | + | ======= Create your own KnowRob package ====== |
- | If your application requires functionality beyond that one already provided by the standard KnowRob packages, you will need to create your own KnowRob package. The following description assumes that you would like to add knowledge in terms of OWL ontologies, or implement new Prolog predicates, or both. If you would just like to link against Java libraries provided by KnowRob, you don't have to follow the description below, but can just implement a normal ROS package that depends on the respective KnowRob packages. | + | If your application requires functionality beyond that one already provided by the standard KnowRob packages, you will need to create your own KnowRob package. The following description assumes that you would like to add knowledge in terms of OWL ontologies, or implement new Prolog predicates, or both. |
- | KnowRob packages are normal ROS packages that, in addition, contain some special files and folders. This common structure allows | + | KnowRob packages are normal ROS packages that, in addition, contain some special files and folders. This common structure allows [[https://github.com/knowrob/ |
< | < | ||
Line 11: | Line 11: | ||
|- owl | |- owl | ||
| \- your_file.owl | | \- your_file.owl | ||
- | |- prolog | + | |- src |
- | | + | |
\- your_module.pl | \- your_module.pl | ||
</ | </ | ||
Line 18: | Line 18: | ||
The example above assumes that you would like to create a package // | The example above assumes that you would like to create a package // | ||
- | The //init.pl// should initialize the package, which may include loading dependencies, | + | The //init.pl// should initialize the package, which may include loading dependencies, |
rosrun rosprolog rosprolog your_package | rosrun rosprolog rosprolog your_package | ||
Like in any other ROS package, you will need to specify your dependencies in the package.xml. Which packages to depend on depends on which functionality you would like to use. You only need to list the direct dependencies, | Like in any other ROS package, you will need to specify your dependencies in the package.xml. Which packages to depend on depends on which functionality you would like to use. You only need to list the direct dependencies, | ||