Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:reasoning_about_logged_experiences [2014/02/19 08:17] – admin | doc:reasoning_about_logged_experiences [2014/06/05 17:44] (current) – [Installation] admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Reasoning about logged robot experiences ====== | ====== Reasoning about logged robot experiences ====== | ||
| + | This page lists methods and tools for reasoning about log data of robot tasks created using the [[http:// | ||
| - | ====== Symbolic reasoning about logged data ====== | + | ===== Installation |
| - | This page lists different queries related | + | Usually, the log files are created using the [[http:// |
| + | sudo apt-get install mongodb-dev | ||
| - | ===== Startup | + | The logged data is stored in a database called ' |
| + | rosmake mod_execution_trace | ||
| + | |||
| + | We have prepared an archive with test data logged during a pick-and-place task with the PR2 robot. You can download the file from [[http:// | ||
| + | tar -xvjf pick-and-place.tar.bz2 | ||
| + | cd pick-and-place | ||
| + | mongoimport --db roslog --collection tf tf.json | ||
| + | mongoimport --db roslog --collection logged_designators logged_designators.json | ||
| + | mongoimport --db roslog --collection logged_metadata logged_metadata.json | ||
| + | |||
| + | |||
| + | ===== Reasoning about logged data using knowrob_mongo | ||
| + | The knowrob_mongo package contains methods for accessing information in the MongoDB database via KnowRob predicates, for example the logged tf pose data or perception results. | ||
| + | |||
| + | ==== Startup | ||
| $ rosrun rosprolog rosprolog knowrob_mongo | $ rosrun rosprolog rosprolog knowrob_mongo | ||
| Line 12: | Line 28: | ||
| ?- owl_parse(' | ?- owl_parse(' | ||
| - | ===== Queries | + | ==== Queries ==== |
| # read pose of cameras in /map coordinates at the beginning of event_dInF6Fvz | # read pose of cameras in /map coordinates at the beginning of event_dInF6Fvz | ||
| ?- owl_individual_of(A, | ?- owl_individual_of(A, | ||
| Line 61: | Line 77: | ||
| - | ===== Open issues ===== | ||
| - | |||
| - | ==== Representation and reasoning ==== | ||
| - | Please file issues here: https:// | ||
| - | |||
| - | ==== Infrastructure ==== | ||
| - | Please file issues here: https:// | ||
| - | |||
| - | |||
| - | |||
| - | |||
| - | |||
| - | ====== Using Predicates for Reasoning over Plan-logs ====== | ||
| - | This page shows an example how we can query on plan-logs over Knowrob. | + | ===== Reasoning over plan logs using mod_execution_trace ===== |
| - | ===== Prerequisites | + | ==== Prerequisites ==== |
| 1) Get latest version of knowrob and knowrob_addons from [[https:// | 1) Get latest version of knowrob and knowrob_addons from [[https:// | ||
| 2) Get the dataset from [[https:// | 2) Get the dataset from [[https:// | ||
| - | ===== Starting up the Software | + | ==== Starting up the Software ==== |
| $ rosrun rosprolog rosprolog mod_vis | $ rosrun rosprolog rosprolog mod_vis | ||
| Line 88: | Line 91: | ||
| ?- owl_parse(' | ?- owl_parse(' | ||
| | | ||
| - | ===== Example Query ===== | + | ==== Example Query ==== |
| "What is the probability of a certain task was failed during the execution of a plan?" is shown as an example. It is also one of the use-cases what we want to show in our ACS'13 paper. | "What is the probability of a certain task was failed during the execution of a plan?" is shown as an example. It is also one of the use-cases what we want to show in our ACS'13 paper. | ||

