5 from std_msgs.msg
import String
12 super(ExampleSkill, self).
__init__(
"/home/vagrant/dev/catkin_ws/src/mycroft_ros/scripts/example")
18 rospy.loginfo(
"created")
20 rospy.loginfo(
"not created")
23 rospy.loginfo(
"MycroftRos callback")
24 user_response = self.
get_response(dialog=
"say something cool to me")
25 rospy.loginfo(
"Response: " + user_response)
28 rospy.loginfo(
"mytest callback")
29 rospy.loginfo(
"testentity: " + data.entities.get(
"testentity",
""))
32 rospy.loginfo(
"random.lol.intent callback")
34 if __name__ ==
"__main__":
35 rospy.init_node(
'mycroft_skill_test')
38 rospy.on_shutdown(example.shutdown)
def register_intent_file(self, intent_file, callback)
def get_response(self, dialog)
def register_intent(self, intent_parser, callback)
def register_entity_file(self, entity_file)