RobotLabLTH / skiros2

A skill-based platform for ROS v.2
Other
163 stars 20 forks source link

Named individual not added to "the map" #48

Closed edhage closed 3 years ago

edhage commented 3 years ago

Hello people. What is "the map"? I altered the turtles example and added in the owl-file a named individual turtlebot.owl#planonce with class Sumo:Agent. First of all, all the named individuals I defined are not added to the world model, but the robot turtle_robot is used in the world model (!) But once I started the skillmanager I was able to add the namedindivudal under Scene:0 and use it. However, when I use this as a parameter defined in a skill I get: "error: Param turtlebot:Once is not in the map. Debug: Turtle: cora:Robot-1-turtlebot:turtle_robot Robot: sumo:Agent- DoOnce: sumo:Object-35-planonce ".

So probably I need to add it to a map, it is already in the world model, what more do I need to do to be able to use additional namedindividuals????

frvd commented 3 years ago

Hi @edhage , "the map" is the dictionary of parameters (i.e. mapping from string to parameter). Can you show your skill code?

Edit: have you had a look at this tutorial? https://github.com/RVMI/skiros2/wiki/Tutorial-4:-Use-world-knowledge-in-a-skill

edhage commented 3 years ago

thanks for the info. Was a typo so it was not recognised. I am getting upto speed with the lingo. The dictionary of parameters it is !