qbo_questions
1. General ROS Package Info
- Type:
- ROS Package
- Dependencies:
- qbo_system_info, qbo_listen, qbo_face_tracking, qbo_internet_services
- Description:
- This package is a simple question/answer node
- Created:
- 2012-02-20
- License:
- GPL v2
2. Package Summary
This node use answer preprogrammed questions of people. It don't save any state, so it is not a chat.
3. Qbo_questions Node
Subscribed Topics
/listen/en_default from qbo_listen: This topic is used to listen what people is saying to the robot
/qbo_face_tracking/face_pos_and_size from qbo_face_tracking: This topic is used to only listen questions when the robot detect a face.
Published Topics
/Qbo/festivalSay from: This topic is used to say the answers.
4. How to install
Simply build the node:
git clone https://github.com/OpenQbo/qbo_questions rosmake --rosdep-install qbo_questions
5. How to use
How to Run
rosrun qbo_questions questions.py
How to configure
To alter the questions/answers you have to edit the file: config/dialogues_xx xx correspond with each language. The sintaxis is very easy:
question>>> answer
If you use plugins:
question>>> $(function_name)
Plugin system
This node is programmed to allow easily to add plugins. The plugins files must be located at “src/plugins”, must be programmed in python. That files must be a collection of functions that could be called by the qbo_question node. That function must allow two parameters, the sentence(question) and the language. The function must return a string that will be readed by qbo_talk.