Industrial manufacturing
Industrial Internet of Things | Industrial materials | Equipment Maintenance and Repair | Industrial programming |
home  MfgRobots >> Industrial manufacturing >  >> Manufacturing Technology >> Manufacturing process

Integrating Microsoft Kinect with Raspberry Pi for Real‑Time Human Detection on the Sonbi Robot

A. Objective

Our goal was to embed a full‑featured software stack on the Sonbi robot’s Raspberry Pi, connect a Microsoft Kinect, and enable the robot to greet people by waving its arms when it detects a human standing in front of the sensor.

B. Hardware System

Raspberry Pi Specifications

Pololu Maestro 24

Connecting Raspberry Pi to Pololu

Microsoft Kinect Features

C. Integrating Kinect with Raspberry Pi

Because the Kinect’s native drivers are Windows‑only, installing the required libraries on a Linux‑based Raspberry Pi is time‑consuming but essential. The following steps outline the process.

1. Install Kinect Drivers

2. Build Libfreenect

sudo apt-get install git-core cmake pkg-config build-essential libusb-1.0-0-dev
git clone https://github.com/OpenKinect/libfreenect
cd libfreenect
mkdir build
cd build
cmake -L ..
make
# optional: cmake --build .

3. Build OpenNI

sudo apt-get install g++ python libusb-1.0-0-dev freeglut3-dev
cd Platform/Linux/CreateRedist
./RedistMaker
sudo ./install.sh
# optional: make mono_wrapper && make mono_samples

D. Software Stack and Runtime

The robot boots a script bootscript_sonbi.sh that launches the face detection module:

python facedetect.py --cascade=face.xml 0

Download the pre‑trained Haar cascade file here: face.xml. The script streams the Kinect’s RGB feed, detects faces in real time, and signals the Sonbi executable to activate the servo motors for a friendly wave.

E. Summary of Actions

When a human is detected, the Kinect captures a depth‑aware image, the detection algorithm confirms a face, and the Pololu Maestro commands the Sonbi robot’s arm servos to perform a welcoming wave. This integration demonstrates the feasibility of using consumer hardware for interactive robotics.

Manufacturing process

  1. Build a Remote Temperature Sensor with Raspberry Pi and Python – Step‑by‑Step Guide
  2. Raspberry Pi–Based Bathroom Occupancy Sensor with Voice & SMS Alerts via Twilio
  3. Build a Smart Robot with the Bridge Shield – Raspberry Pi & Arduino Integration
  4. Building the XMP‑1: A Low‑Cost XMOS‑Raspberry Pi Mobile Platform
  5. DIY Wall‑E Inspired Raspberry Pi CD‑Box Robot
  6. Gesture‑Controlled Robot Powered by Raspberry Pi
  7. Build a Wi‑Fi‑Controlled Raspberry Pi Robot with Python – Step‑by‑Step Guide
  8. Arduino Uno-Based Human Detection Robot: Step‑by‑Step Sensor Integration
  9. Smart Home Automation Powered by Raspberry Pi 2 & Windows 10 IoT
  10. Fanuc Launches Safer Collaborative Robot for Human‑Machine Partnerships