ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi,

Well, as your warning message suggests, your ROS node is not running. Without a ROS node you cannot do any ROS communication with other nodes. Simply start a new node:

(roslisp:start-ros-node "my_awesome_node")

and try the query again.

I have a suspicion, though, that the ("literal") clause will create problems. For beginners I usually suggest to use the json-prolog:prolog-simple query, which simply accepts a string instead of a list with the query and parameters as json-prolog:prolog does. E.g.:

(json-prolog:prolog-simple "rdf_has(OWLNAME, 'http://knowrob.org/kb/srdl2-comp.owl#urdfName', OTHERVAR).")

Hi,

Well, as your warning message suggests, your ROS node is not running. Without a ROS node you cannot do any ROS communication with other nodes. Simply start a new node:

(roslisp:start-ros-node "my_awesome_node")

and try the query again.

I have a suspicion, though, that the ("literal") clause will create problems. For beginners I usually suggest to use the json-prolog:prolog-simple query, which simply accepts a string instead of a list with the query and parameters as json-prolog:prolog does. E.g.:

(json-prolog:prolog-simple "rdf_has(OWLNAME, 'http://knowrob.org/kb/srdl2-comp.owl#urdfName', OTHERVAR).")

Edit: in case you're interested to know what the correct version of your original query is, this is how I would write it:

(json-prolog:prolog '("rdf_has" ?owlname "http://knowrob.org/kb/srdl2-comp.owl#urdfName" ("literal" ?var)))