图像缩略图

KEV3

版本1.17.0.0(106 KB) Liviu Ivanescu
Kinect integration with the EV3 robot

1.2K Downloads

Updated26 Nov 2020

查看许可证

安装说明
还有其他的集成Kinect和机器人,but this is done exclusively in Matlab for the new LEGO EV3 robot. It was developed in Matlab 2014a and requires the Image Acquisition Toolbox. It might run on older Matlab versions but probably Kinect support cannot be installed on Matlab versions older than 2013a. For controlling the Kinect, one uses the Kinect for Windows Sensor Support for Matlab Image Acquisition Toolbox, as explained at:
//www.tianjin-qmedu.com/help/imaq/installing-the-kinect-for-windows-sensor-support-package.html?searchHighlight=kinect
此外,在插入kinect之前,也可能需要安装Windows运行时v1.6(〜114 MB)的Kinect,无需以下费用http://www.microsoft.com/en-ca/download/confirmation.aspx?id=34811
为了控制EV3机器人,一个人使用QUT工具包https://wiki.qut.edu.au/display/raq/QUT+EV3+MATLAB+toolkit
This allows communication over WiFi, Bluetooth (BT), or USB, but here it’s implemented only the BT. The driving motors IDs are B and C, while the arm motor is A.
另外,无需MATLAB或IMAGE采集工具箱,就可以使用Windows 7 Pro 64位计算机上的预编译安装程序,在以下位置可用:
https://1drv.ms/f/s!
为了运行它们,可能会要求一个人还安装免费的MATLAB WIN64编译器运行时(MCR),版本8.3(如果尚未安装)。这是Mathworks的免费475 MB安装,该安装将支持MATLAB编译器发行的任何可执行文件,提供所有必要的库。万博1manbetxkev3.exe是一个独立的可执行文件,假设已经安装了MCR或您要照顾MCR安装。KEV3_INSTALLER.EXE是一个Windows安装版本,可验证OS兼容性,下载并为您安装适当的MCR。
---------------------------------

驾驶说明

在YouTube上可以使用有关使用此程序的演示:“ KEV3:与EV3机器人的Kinect集成”:
http://youtu.be/g4fbeqnG00Q

The application was made for Kinect V1 for Windows and the robot Lego Mindstorms EV3, used mainly as a car, eventually with an arm moving up and down. This arm operates a smart phone as an IPCamera to see where the robot goes. The robot has to be already BT (Bluetooth) paired with the computer. To start, press "Start camera“, wait until that button changes to “Stop Camera” and then press "BT connect". Wait few seconds for that operation to complete (one should hear a beep from EV3 and the "Stop EV3" button becomes active). Position yourself about 1 m away from Kinect and your skeleton should overlay in red your image. For a better flexibility, there is a tilt slider on the left of the camera image to adjust the Kinect viewing angle. Once the skeleton is properly acquired and the dial graph (on top of the logo) shows movements made by your right hand, you're ready to drive. The driving commands sensed by Kinect are now ready for transferring to the sliders and then to be picked up by the robot control. The driving gestures are:
-Left hand starts the robot: move the left hand horizontally to the right, for less than a second, and beyond the neck position. This allows the Kinect to sense your moves, store them on sliders, ready to be picked up by the robot code. Practically this operation starts the robot movements. The same thing is done by pressing GO. One can stop it by pressing HALT, or move again the left hand the same way.
-Left hand drives the robot: upper than elbow drives forward, lower than elbow drives backwards. The motor power is proportional with the moves. It’s shown in the vertical slider, on the left of the lab logo.
- 右手将机器人左右转 - 必须像转动驾驶轮一样操作。它应该遵循表盘指示。
In any moment one can stop the robot with the “Stop EV3” button in the EV3 panel. The IPCamera viewing angle can be changed up and down with the Tilt++ or Tilt– buttons. It’s necessary to stop the robot driving during this operation to avoid unexpected robot movements.
----------------------------------------

参考和灵感

This code was partly inspired by the work or suggestions of other people:
-//www.tianjin-qmedu.com/help/imaq/examples/using-the--kinect-r-for-windows-rom-image-image-image-image-image-image-acquetion-toolbox-tm.html?searchhighighlight = kinectforforwindows?refresh=true
-//www.tianjin-qmedu.com/matlabcentral/answers/96242-HOW-CAN-CAN-I-INSERT-LIVE-VIDEO-VIDEO-INTO-A-A-MATO-A-MATLAB-GUI-GUI-GUI-GUI-ISIMIMAGE-ACECICITION-ACECICITION-TOOLBOX
-https://wiki.qut.edu.au/display/cyphy/qut+ev3+matlab+toolkit
-http://stackoverflow.com/questions/19790542/recording-playback-kinect-with-with-matlab-upside-down-down-and-and-black-white-rather-rather-th
-http://cogprojects.wordpress.com/2012/07/10/simple-matlab-gui-to-demonstrate-real-time-video-processing-of-depth-perception-data/
-http://lovelandrobotics.weebly.com/windows-integration-for-ev3nxt.html
- 伊莎贝拉·阿尔伯克基(Isabela Albuquerque),雷蒙多·卡萨尼(Raymundo Cassani),来自Musaelab的Tiago Falk

引用为

Liviu Ivanescu(2022)。KEV3(//www.tianjin-qmedu.com/matlabcentral/fileexchange/47968-kev3), MATLAB Central File Exchange. Retrieved

MATLABRelease Compatibility
使用R2014A创建
Compatible with any release
平台兼容性
Windows macOS Linux

社区寻宝

在Matlab Central中找到宝藏,发现社区如何为您提供帮助!

Start Hunting!