An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

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).