How can I use kinect with Raspberry pi in a Simulink model?

I want to generate a model in Simulink which gets data from Kinect using Raspberry Pi 2.

Answers (2)

If you want the Kinect to connect directly to the Raspberry Pi 2, you are going to need a connector adapter and you are going to need drivers. It looks like some people have developed those; see http://raspberrypi.stackexchange.com/questions/27586/how-can-i-connect-a-kinect-to-my-raspberry-pi
If you connect the Kinect to your computer and have it collecting the data and then transmitting it to Raspberry Pi, then you can use https://www.mathworks.com/matlabcentral/fileexchange/32318-simulink-support-for-kinect, and then the easiest way to proceed might be to use a TCP block, and then have a second model with a Raspberry TCP receive block for deploying to the Pi.
Your phrasing suggests to me that you might be wanting to connect the Kinect directly to the Raspberry Pi 2, sort of like http://www.slashgear.com/raspberry-pi-2-kinect-make-for-a-handy-3d-scanner-06391772/. Because of the need to interface with the Kinect drivers, I think you will probably need to use either a MATLAB Function block or a Level 2 S Function, and use coder.ceval()

1 Comment

Yes sir, I need to connect the Kinect directly to the Raspberry Pi 2 and want to do this using Simulink, at this moment I am trying to find drivers for Kinect from GitHub, after installing the correct drivers I will try to use Function block as you said but I am not sure of how to do this as I am new user of Simulink and couldn't find a proper documentation for the same as well.

Sign in to comment.

Hi, I have similar problem here. For now I am able to get the data from Kinect and able to control the Raspberry Pi. However, I wish to combine both of them and I need to use MATLAB for the programming. In addition, I am a beginner. May I know how can I install the Kinect driver into Raspberry Pi using MATLAB?? Thank you.

2 Comments

I tried that and facing some problem. Thanks a lot. I am trying to solve the problem, I will ask again if I need help.

Sign in to comment.

Asked:

on 6 Oct 2016

Commented:

on 12 Mar 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!