Natural language robot control for ROS 2 using LLMs (LangChain).
- Understands and plans robot actions from natural language
- Automatic capability discovery (topics, actions, services)
- Intent detection and behavior tree generation
- Modular and extensible ROS 2 package
- Run
export ROS_PROMPT_OPENAI_KEY="sk-..."with your own API key. - pip install py_trees langchain langchain_openai jsonschema
- Clone ros-prompt into your ROS workspace
- colcon build --packages-select ros_prompt
- source install/setup.bash
- Start your launch files (ie. ros2 launch turtlebot3_gazebo turtlebot3_world.launch.py)
- ros2 launch ros_prompt ros_prompt.launch.py
- Publish your messages to /user_input: ros2 topic pub /user_input std_msgs/String "data: 'start slam, explore, save map, swith to nav with map, set initial pose, wait for 12 seconds, navigate to position (0.6, 1.5)'" -1
MIT
