koichirokato / chatgpt_ros

ROS wrapper for ChatGPT API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:Apache License 2.0


Languages

Language:Python 96.8%Language:CMake 3.2%