ROS wrapper for ChatGPT API
日本語でQiitaの記事を投稿しました。併せてご覧ください。
Below link is about this repository, in Janapese.
https://qiita.com/koichi_baseball/items/0a29bbe846f9e3fdfd5a
Python requests modeule.
$ sudo apt-get install python3-requests
You have to set ChatGPT API for environment value of ChatGPT_API.
chatgpt_ros node subscribe /input_text topic and publish /output_text topic.
$ ros2 run chatgpt_ros chatgpt_ros
chatgpt_ros_service node is the server of ros service of chatgpt_service.
You can see srv file is in chatgpt_ros_interfaces/srv.
$ ros2 run chatgpt_ros chatgpt_ros_service
This node was created based on a question to ChatGPT (creating a ROS node using the ChatGPT API).