Human-Following Robot with Kinect - Hackster.io

Human-Following Robot with Kinect - Hackster.io - 图1

Hi! Please confirm your email address by clicking the link in the email we sent you. Haven’t received it? Resend confirmation email

Human-Following Robot with Kinect - Hackster.io - 图2

×

1

Notifications

1

ProjectsProjectsNewsContestsEventsVideosWorkshopsLaunch

×

Embed the widget on your own site

Add the following snippet to your HTML:

[Human-Following Robot with Kinect - Hackster.io - 图4

Human-Following Robot with Kinect - Hackster.io - 图5

Instead of using single camera and complicated image recognition algorithms we can take advantage of Kinect libraries.

Read up about this project on ](https://prod.hackster-cdn.online/assets/hackster_logo_text-21b76ddd8e1fdebbdc3634afac217796f9101e956c0107d58a3adbd35d16badd.png#alt=) “Human-Following Robot with Kinect”)

Human-Following Robot with Kinect

Turtle Rover

68 15,688

68

Human-Following Robot with Kinect - Hackster.io - 图7Human-Following Robot with Kinect - Hackster.io - 图8

Team Turtle Rover: Leo Rover team, Marcin Twardak

Published August 10, 2017 © CC BY-NC

Human-Following Robot with Kinect

Instead of using single camera and complicated image recognition algorithms we can take advantage of Kinect libraries.

IntermediateFull instructions provided8 hours15,962

Human-Following Robot with Kinect - Hackster.io - 图9

[

](https://www.hackster.io/workshops/ultra96)

Our Turbocharge Python w/ Ultra96 PYNQ course is now available. Buy it now!

Advertisement

Things used in this project

Hardware components

Human-Following Robot with Kinect - Hackster.io - 图10

Microsoft Kinect Sensor

×

1

Human-Following Robot with Kinect - Hackster.io - 图11

Raspberry Pi 3 Model B

×

1

Kinect USB Adapter

×

1

Turtle Rover

×

1

Software apps and online services

Human-Following Robot with Kinect - Hackster.io - 图12

ROS Robot Operating System

RViz

Story

Introduction

Microsoft Kinect is a popular, and relatively cheap device, which has multiple applications both in amateur and professional robotics. One of the cases is man-following robot. Instead of using single camera and complicated image recognition algorithms we can take advantage of already-established Kinect libraries.

Preparing Kinect to work

Official libraries are designed only for Microsoft Windows, but fortunately we have a strong community of developers and they ported most of the functionality to Linux. What’s more they work with ARM processors, therefore we can even use the popular minicomputer Raspberry Pi!

The easiest way to implement these libraries is to use ROS – Robot Operating System. Installation is quite straightforward and is described here - http://wiki.ros.org/ROSberryPi/Installing%20ROS%20Indigo%20on%20Raspberry%20Pi

The next thing to do is to figure out how the ‘looks-like-USB’ Microsoft Kinect connector works. Basically it’s USB combined with 12 V power supply. To connect the sensor to a Raspberry Pi you will need the adapter from the photo and then modify it to your power output.

Human-Following Robot with Kinect - Hackster.io - 图13

USB Adapter for Kinect

Testing Kinect

If you have the access to the computer with any Linux distro, you can use RViz software to visualize data from Kinect.

Human-Following Robot with Kinect - Hackster.io - 图14

Body joints visible in RViz

The next step into taking control of our robot with Kinect is to read the position of the human body in 3 dimensions. Below you can find an example piece of code:

  1. #!/ usr/bin/env python
  2. import roslib
  3. import rospy
  4. import tf
  5. import os
  6. def cls () :
  7. os. system ('clear ')
  8. import numpy as np
  9. if __name__ == '__main__ ':
  10. rospy . init_node (' kinect_listener ', anonymous = True )
  11. listener = tf. TransformListener ()
  12. rate = rospy . Rate (10.0)
  13. while not rospy . is_shutdown () :
  14. try:
  15. cls ()
  16. (trans , rot) = listener . lookupTransform ('/ torso_1 ','/ openni_link ', rospy . Time (0) )
  17. rospy . loginfo (" Torso coordinates :\n\n")
  18. rospy . loginfo ("\t\tX = {0:f}". format ( trans [0]) )
  19. rospy . loginfo ("\t\tY = {0:f}". format ( trans [1]) )
  20. rospy . loginfo ("\t\tZ = {0:f}". format ( trans [2]) )
  21. except (tf. LookupException , tf. ConnectivityException , tf. ExtrapolationException ):
  22. continue
  23. rate . sleep ()

And here is the result visible in the console:

Human-Following Robot with Kinect - Hackster.io - 图15

Torso coordinates

Integrating Kinect with mobile platform

The last thing which we have to do is to connect our sensor with a robot. At first we’ve connected it to the simple, three-wheel platform:

Human-Following Robot with Kinect - Hackster.io - 图16

Three-wheel platform with Kinect

Later on, to take full advantage of the system, we mounted it on the serious mobile platform – Turtle Rover. We used the built-in Raspberry Pi and provided power supply.

Now it looks nice and clean and can be used everywhere!

Human-Following Robot with Kinect - Hackster.io - 图17

Want more? Check out what Turtle can do!

Read more)

Credits

Human-Following Robot with Kinect - Hackster.io - 图18

Leo Rover team

5 projects • 22 followers

Leo Rover - a Robotics Development Kit to finally make all your ideas come to reality.

Follow ContactContact

Human-Following Robot with Kinect - Hackster.io - 图19

Marcin Twardak

1 project • 10 followers

Follow ContactContact

Thanks to Marcin Twardak.

Comments

Please confirm your email before commenting. Haven’t received a confirmation email? Resend. Contact us at help@hackster.io for help.

Human-Following Robot with Kinect - Hackster.io - 图20

Md. Khairul Alam

3 years ago

;)

  • Report

Nice

Human-Following Robot with Kinect - Hackster.io - 图21

James Kruse

3 years ago

;)

  • Report

Oh this looks cool

Human-Following Robot with Kinect - Hackster.io - 图22

Night R

5 months ago

;)

  • Report

Awesome Rover with high performance depth camera

[

Human-Following Robot with Kinect - Hackster.io - 图23

](https://www.hackster.io/workshops/ultra96)

Our Turbocharge Python w/ Ultra96 PYNQ course is now available. Buy it now!

Advertisement

Related channels and tags

Related projects

[

Human-Following Robot with Kinect - Hackster.io - 图30

](/robinb/nox-a-house-wandering-robot-ros-652315)Nox - A House Wandering Robot (ROS)

[

](/grassjelly/autonomous-home-assistant-robot-fff43e)Autonomous Home Assistant Robot

[

Human-Following Robot with Kinect - Hackster.io - 图31

](/benbobgray/mearm-robot-arm-your-robot-v1-0-326702)MeArm Robot Arm - Your Robot - V1.0

[

Human-Following Robot with Kinect - Hackster.io - 图32

](/robinb/scriba-robot-a-printing-robot-0048fa)Scriba Robot - A Printing Robot

[

Human-Following Robot with Kinect - Hackster.io - 图33

](/teamato/farmaid-plant-disease-detection-robot-f2909f)Farmaid: Plant Disease Detection Robot

View more related projects

Similar projects you might like

[

Human-Following Robot with Kinect - Hackster.io - 图34

Build a video streaming robot with the Raspberry Pi and GoPiGo3.

](/dexterindustries/browser-streaming-robot-with-the-gopigo3-c549a1)

Browser Streaming Robot with the GoPiGo3

Dexter Industries

51.7K

[

Step aside, an amazing six-wheel off-road robot coming through! Check out this Arduino-based wireless surveillance DIY RC robot.

](/jithinsanal1610/amazing-6wd-off-road-robot-arduino-rc-robot-44eb5c)

Amazing 6WD Off-Road Robot | Arduino RC Robot

Jithin Sanal

6211K

[

For my thesis, I have developed the control system and end-effector for a robot, easily implementable and economic.

](/powerberry/end-effector-and-control-logic-for-robot-be7a1e)

End-Effector and Control Logic for Robot

Alessandro Minini

438.8K

[

Human-Following Robot with Kinect - Hackster.io - 图35

Sudoku-robot is a robot that solves and fills Sudoku grids!

](/msana/a-sudoku-solver-s-robot-fe9e88)

A Sudoku Solver’s Robot

msana

308.4K

[

Build an awesome camera-enabled roving robot with no soldering required!

](/sherna-liew/sts-pi-roving-robot-f46637)

STS-Pi Roving Robot

Sherna Liew

43.4K

[

The BricKuber is an open source Rubik’s cube solving robot you can build yourself.

](/dexterindustries/brickuber-project-a-raspberry-pi-rubiks-cube-solving-robot-28e231)

BricKuber Project – A Raspberry Pi Rubiks Cube Solving Robot

Dexter Industries

202.7K

[

How to build a bluetooth enabled robot with Elegoo’s comprehensive robot car kit. Tutorial includes construction and programming.

](/wsawan/elegoo-robot-car-building-a-bluetooth-enabled-robot-car-2c6ab1)

Elegoo Robot Car - Building a Bluetooth Enabled Robot Car

Waleed Sawan

211.7K

[

Here we will learn how to streaming video using a PiCam and also remote controlling its position (Pan/Tilt), using servo motors.

](/mjrobot/iot-raspberry-pi-robot-with-video-streamer-and-pan-tilt-f50e53)

IoT: Raspberry Pi Robot with Video Streamer and Pan/Tilt

MJRoBot

237.2K

68

  • More cool stuff

Welcome to Hackster!Be sure to follow us to stay up to date with the latest news & projects.