Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision |
doc:robots_and_the_internet [2013/12/10 08:18] – [Exchanging Information via RoboEarth] admin | doc:robots_and_the_internet [2014/06/05 11:38] – external edit 127.0.0.1 |
---|
====== Tutorial on "Robots and the Internet" ====== | ====== Tutorial on "Robots and the Internet" ====== |
| |
This tutorial was given at the [[http://aass.oru.se/Agora/Lucia2013/|2013 LUCIA Winter School]] on "AI and Robotics" in Örebro, Sweden. This page describes the practical examples complementing the presentation. | This tutorial was given at the [[http://aass.oru.se/Agora/Lucia2013/|2013 LUCIA Winter School]] on "AI and Robotics" in Örebro, Sweden. This page describes the practical examples complementing the presentation; the slides can be found {{:doc:robots-and-internet.pdf|here}}. |
| |
===== Installation ===== | ===== Installation ===== |
Online shops can provide valuable information about objects and their properties. The package comp_germandeli contains an OWL ontology that has been generated from the [[http://www.germandeli.com|GermanDeli online shop]], selling German products in the US. It can be loaded into KnowRob and expands the 'objects' branch of the ontology with about 7,000 additional classes. | Online shops can provide valuable information about objects and their properties. The package comp_germandeli contains an OWL ontology that has been generated from the [[http://www.germandeli.com|GermanDeli online shop]], selling German products in the US. It can be loaded into KnowRob and expands the 'objects' branch of the ontology with about 7,000 additional classes. |
| |
$ roscd comp_germandeli | $ rosrun rosprolog rosprolog comp_germandeli |
$ rosmake | |
| |
?- owl_subclass_of(A, germandeli:'Bakery'). | ?- owl_subclass_of(A, germandeli:'Bakery'). |
==== RoboEarth-enabled Semantic Map Editor ==== | ==== RoboEarth-enabled Semantic Map Editor ==== |
| |
The [[http://knowrob.org/doc/semantic_map_editor|Semantic Map Editor]] can read and write information from/to RoboEarth. To get an impression, search for room '3001' and download the 'semmap.iaskitchen'. | The [[http://knowrob.org/doc/semantic_map_editor|Semantic Map Editor]] can read and write information from/to RoboEarth. To get an impression, search for room '3002' and download the 'lucia.testmap'. |
| |
| |
| |
% Download an environment map and visualize it | % Download an environment map and visualize it |
?- re_request_map_for(['kr:roomNumber',3001], ['kr:floorNumber','3'], | ?- re_request_map_for([['kr:roomNumber',3002], ['kr:floorNumber','3'], |
['kr:streetNumber','45'], ['rdfs:label','Karlstrasse'], M), | ['kr:streetNumber','45'], ['rdfs:label','Karlstrasse']], M), |
owl_individual_of(Map, knowrob:'SemanticEnvironmentMap'), | owl_individual_of(Map, knowrob:'SemanticEnvironmentMap'), |
add_object_with_children(Map, _). | add_object_with_children(Map, _). |