Skip to content

Commit 7eed5ff

Browse files
committed
[dialogflow_task_executive] add doc of dialogflow_intent_client
1 parent 4b1be28 commit 7eed5ff

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

dialogflow_task_executive/README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ Please read [app_manager](https://github.com/PR2/app_manager/) for more detailed
6565

6666
## Create new Intent in Dialogflow
6767

68+
### Web console
69+
6870
For your new task, create new Intent as below.
6971

7072
`Action` section, you can set full name (`<package name>/<app name>`), app name or camel-cased name of your `app_manager` app.
@@ -78,6 +80,39 @@ If your app is registered as `your_package/your_demo`, you need to set `your_pac
7880

7981
In order to fulfill other forms, please read [dialogflow doc](https://dialogflow.com/docs/intents) for more detailed information abount Intent.
8082

83+
### ROS node using API
84+
85+
You can add new intent with actionlib. First, you launch
86+
87+
```shell
88+
roslaunch dialogflow_task_executive dialogflow_intent_client.launch credential:=<YOUR GOOGLE CLOUD JSON KEY>
89+
```
90+
or make `launch_intent_client` arg true in `dialogflow_ros.launch` .
91+
92+
To check registered intent, call the action `~list_intent_action` .
93+
94+
To register the intent, call the action `~register_intent_action` . For example, if you want to add the intent, named `hello`, invoked with the word `hi`, you call the action on shell like
95+
96+
```shell
97+
rostopic pub /dialogflow_intent_client/register_intent_action/goal dialogflow_task_executive/RegisterIntentActionGoal "header:
98+
seq: 0
99+
stamp:
100+
secs: 0
101+
nsecs: 0
102+
frame_id: ''
103+
goal_id:
104+
stamp:
105+
secs: 0
106+
nsecs: 0
107+
id: ''
108+
goal:
109+
intent:
110+
intent: 'hello'
111+
concat_training_phrases:
112+
- ''
113+
message_texts:
114+
- 'hi'"
115+
```
81116

82117
## Usage
83118

0 commit comments

Comments
 (0)