Basic Examples

Before You Begin... Make sure you’ve completed the following setup steps:

  • ✅ Set up your robot by following the instructions here.

  • ✅ Update the firmware using the instructions here.

  • ✅ Install the required software using the instructions here.

Once everything is set up, you’re good to go! The following programs will run on the Raspberry Pi 5 inside your robot. You can connect via SSH, VNC, or even link VS Code to your Pi over SSH for development.


👟 Movement

circle-info

Model supports: All versions

  • Moving the base with command velocity

from hackerbot import Hackerbot

bot = Hackerbot()

bot.base.drive(0, 65) # Turn around
bot.base.drive(200, 0) # Move forward

bot.base.destroy(auto_dock=True) # Destroy instance and dock to charger
  • Navigation with SLAM

The robot will first try to localize itself in the map then navigate to the destination.

To understand the map & positions better, check out command center.


🗣️ Voice

circle-info

Model supports: AI, AI PRO, AI ELITE versions

  • Text to speech (TTS)

The Hackerbot Python package uses Piper TTSarrow-up-right for speech synthesis.

  1. Use the Piper tts toolarrow-up-right to find the voice you want for your Hackerbot.

  2. Navigate to the 🤗 directoryarrow-up-right and select the model you want to use:

  3. Copy the name of your model to your script, and utilize the speak functionality:

  • Speech to text (STT)

Currently, speech to text isn't officially supported. However, there are many speech to text functions out there you can try, e.g. OpenAIarrow-up-right, Google Speech to Textarrow-up-right, or the most common SpeechRecognitionarrow-up-right.


👁️ Vision

circle-info

Model supports: AI, AI PRO, AI ELITE versions

Before trying out some of the coolest examples, make sure you have the dependencies:

circle-info

To view the cv window, make sure you're running the following in VNC.

  • Image Recognition with YOLO

YOLOv11 Recognizing everything on my desk!

Tap the "q" key on your keyboard to quit.

  • Image Recognition with the AI Kit

Check out our tutorial on getting started with the AI Kit here

  • Face Recognition

Navigate to the directory:

Take some headshots, it'll take a number of pictures between every delay.

Then train the model by running:

Then use it to recognize your face by running:

Your Hackerbot now recognizes you!

🤖 Head Movement

circle-info

Model supports: AI PRO, AI ELITE versions

Now you can utilize the camera to recognize objects and person, try look around to scan for faces!


🦾 Arm & Gripper Manipulation

circle-info

Model supports: AI ELITE versions

More cool examples coming soon! At the mean time, just smile and wave!


👣 References

Last updated