ROS2 Line Following Demo with Generative AI on Mini Pupper 2

,

Hi everyone,
I’m Joey, a year one student intern from HKU working on the Mini Pupper team.

I’ve been exploring the use of ROS on Raspberry Pi and have found that a single Pi can have limitations. With advancements in generative AI, I believe there is an opportunity to enhance ROS2 projects and reduce hardware demands.

In my latest work, I’ve integrated a camera module and generative AI with ROS2 to implement a line following function on the Mini Pupper 2, a quadruped robot that is based on the CM4 module. The video below showcases this integration.

By leveraging generative AI models, I’ve been able to offload computationally intensive tasks and create a more versatile line following system than what a Raspberry Pi could achieve. For the next steps, I will try to work on recognizing marks and implementing the function of moving around obstacles, and further explore 3D barrier and mapping capabilities.

To help others get started, I’ve also prepared book and website documentation covering the basic functionality. The GitHub repository with the ROS2 code for the Mini Pupper project is available, and I’ll be uploading the line following demo code soon.

I’d love to hear your thoughts on how we can use AI and ROS2 together even more. Leave a comment and let me know what you think!

5 Likes

Great job!
Thanks so much for your great support, Joey!

By the way, we’re preparing our new Kickstarter campaign, we hope to do more use cases and online documents, open source for sure, we need your help!
https://www.kickstarter.com/projects/mdrobotkits/md-robot-kits-open-source-support-your-genai-creativity

I have uploaded my code for the mini_pupper_recognition package and it has been merged into ros2-dev . You can find the code here. Looking forward to your feedback on the new AI-based recognition features!

Line following code is updated to the GitHub repo with PID control.

LineFollowing2.MP2G

12 hours left to grab our BIGGEST DISCOUNT ever on Kickstarter. Don’t miss out the ROS legged robot.
https://www.kickstarter.com/projects/mdrobotkits/md-robot-kits-open-source-support-your-genai-creativity