ROScribe - LLMs At The Service Of Robotics |
Monday, 22 January 2024 | |||
ROScribe is an open source tool that utilizes prompt engineering to get a LLM to generate ROS compatible software packages for managing your robots. ROS was made as a solution to the complexity of writing robot Operating system aside, ROS also forms the backbone on which other tools are built, for example the Gazebo simulator. With Gazebo, which resembles a CAD tool, instead of designing buildings you can instead design robots before they get manufactured. To do so, Gazebo builds on the shoulders of ROS, and emulates working with models from simple biped robots up to Nasa's Robonaut 2. That way you can test all combinations of sensor payloads and modes virtually before moving to the real hardware. Now things get even easier thanks to the advent of Large Language Models. As we know LLMs are very good at generating artifacts, be it images, text, animation or even code. ROScribe uses a LLM to generate code for robotics something which lessens the skill barrier of becoming familiar with ROS. ROScribe generates software as a three-way process:
Under the spell of prompt engineering, ROScribe engages in a question-answer activity with its user. Initially it asks about the overall design of the system, and increasingly gets more specialized as the specs do crystalize. Once the specs are complete, it then generates a graph that represents the parts of the robot (sensors, controllers etc ) known as ROS Nodes, as well as the way they communicate with each other, known as ROS Topics. The gist of the graph is that it allows the user to get involved in the design by modifying it to add, remove or replace nodes with custom ones. At the next stage of the ROS node synthesis, ROScribe implements the nodes one by one, while at the final stage , that of Scripts generation, ROScribe creates the files needed for the installation. After ROScribe finishes with generating your ROS package, you can install it by using catkin, and launch it by using the roslaunch command calling the generated launch file. There are two ways to install ROScribe: Recommended for end-users. Install the PyPi package:
Recommended for developers. Clone the GitHub repository and install using pip:
On the roadmap of the project lies adding RAG support so that it can produce better quality results. However you can right now explore ROS Repositories with RAG, since there's a vector database of all open-source ROS repositories, and using retrieval augmented generation (RAG), ROScribe can answer every question regarding relevant ROS packages for your project. In order to use it :
To conclude, LLMs are really simplifying procedures that once were properties of an expert's domain, thus lowering the barrier for the wider public to engage in. This time its Robotics;If you ever thought that writing software for Robots
More InformationLooking inside ROScribe and the idea of LLM-based robotic platform Related ArticlesDashing Diademata, the Future of ROS
To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.
Comments
or email your comment to: comments@i-programmer.info |
|||
Last Updated ( Monday, 22 January 2024 ) |