https://github.com/koichirokato/chatgpt_ros
ROS wrapper for ChatGPT API
https://github.com/koichirokato/chatgpt_ros
Last synced: 5 months ago
JSON representation
ROS wrapper for ChatGPT API
- Host: GitHub
- URL: https://github.com/koichirokato/chatgpt_ros
- Owner: koichirokato
- License: apache-2.0
- Created: 2023-03-06T15:45:51.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-19T12:43:19.000Z (almost 2 years ago)
- Last Synced: 2024-08-02T01:25:24.260Z (9 months ago)
- Language: Python
- Size: 33.2 KB
- Stars: 59
- Watchers: 1
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ChatGPT-repositories - chatgpt_ros - ROS wrapper for ChatGPT API (Openai)
README
# chatgpt_ros
ROS wrapper for ChatGPT API日本語でQiitaの記事を投稿しました。併せてご覧ください。
Below link is about this repository, in Janapese.
https://qiita.com/koichi_baseball/items/0a29bbe846f9e3fdfd5a## Dependencies
Python requests modeule.```
$ sudo apt-get install python3-requests
```## Setup
You have to set ChatGPT API for environment value of `ChatGPT_API`.## Usage
### Publish and Subscribe
`chatgpt_ros` node subscribe ` /input_text` topic and publish `/output_text` topic.### Run
```
$ ros2 run chatgpt_ros chatgpt_ros
```## ROS Service
`chatgpt_ros_service` node is the server of ros service of `chatgpt_service`.
You can see srv file is in `chatgpt_ros_interfaces/srv`.### Run
```
$ ros2 run chatgpt_ros chatgpt_ros_service
```## Referene
This node was created based on a question to ChatGPT (creating a ROS node using the ChatGPT API).