Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
common-sense_reasoning_about_object_locations [2013/02/04 11:56] – [Commonsense knowledge about object locations] tenorth | common-sense_reasoning_about_object_locations [2013/04/22 08:41] – admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Commonsense knowledge about object locations ====== | + | #REDIRECT doc/common-sense_reasoning_about_object_locations |
- | + | ||
- | Commonsense knowledge about typical object locations was acquired by the Open Mind Indoor Common Sense (OMICS [[http:// | + | |
- | + | ||
- | ===== Getting Started ===== | + | |
- | First you have to build the rospackage knowrob_omics and then run it using rosprolog. | + | |
- | < | + | |
- | | + | |
- | | + | |
- | </ | + | |
- | + | ||
- | ===== Queries about object locations ===== | + | |
- | To query the probability of finding an object in a given room type you can use the following query: | + | |
- | < | + | |
- | ?- probability_given(knowrob:' | + | |
- | Obj = ' | + | |
- | Pr = 0.003865979381443299 ; | + | |
- | Obj = 'http:// | + | |
- | Pr = 0.006443298969072165 | + | |
- | </ | + | |
- | + | ||
- | If you are interested in what type of room you could find a given object use the following query: | + | |
- | < | + | |
- | ?- bayes_probability_given(knowrob:' | + | |
- | | + | |
- | Room = ' | + | |
- | Pr = 0.21657432923639094 ; | + | |
- | Room = ' | + | |
- | Pr = 0.05065150074968034 ; | + | |
- | Room = ' | + | |
- | Pr = 0.07410126961527308 ; | + | |
- | Room = ' | + | |
- | Pr = 0.08278900467361545 ; | + | |
- | Room = ' | + | |
- | Pr = 0.08394689285086883 ; | + | |
- | Room = ' | + | |
- | Pr = 0.24008811355348483 | + | |
- | </ | + | |
- | + | ||
- | You can see the processed database table entries with: | + | |
- | < | + | |
- | ?- rdf_has(Entry, | + | |
- | | + | |
- | | + | |
- | Entry = ' | + | |
- | Obj = ' | + | |
- | Room = ' | + | |
- | Entry = ' | + | |
- | Obj = ' | + | |
- | Room = ' | + | |
- | </ | + | |
- | + | ||
- | Get the list of Room types: | + | |
- | < | + | |
- | ?- findall(Room, | + | |
- | | + | |
- | | + | |
- | </ | + |