Skip to content

koichirokato/chatgpt_ros

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

ROS wrapper for ChatGPT API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published