魔方吧·中文魔方俱乐部

 找回密码
 注册
搜索
热搜: 魔方
查看: 84917|回复: 11
打印 上一主题 下一主题

会玩魔方的机器人[视频] [复制链接]

Rank: 8Rank: 8

积分
3900
帖子
977
精华
8
UID
6788
性别

八年元老

跳转到指定楼层
1#
发表于 2006-11-3 00:13:13 |只看该作者 |倒序浏览

说起来他也算是魔方机器人二代了,名字叫做“RuBot II ”,从他身上应该能感受到科学家的惊人智慧。




  拿一个魔方,随你尽情的玩,各个面怎么打乱都没问题。这个家伙拿过去会仔细的观察,然后就施展绝活了,我敢说他完成这项任务的速度不会比你刚才破坏六个面的时间长多少。

  完工后他还会向你显摆劳动成果呢,并且“开口讲话”,非常有趣。



视频地址: 

 http://www.dglife.cn/html/2006-09/1470.html

.

[此贴子已经被作者于2006-11-8 2:54:39编辑过]

Rank: 8Rank: 8

积分
3900
帖子
977
精华
8
UID
6788
性别

八年元老

2#
发表于 2006-11-7 11:43:45 |只看该作者

另外还有一种,虽然作者进行了再次优化但效率目前来说和上边的比速度是差太多了[em01]

魔方终结者——CubeSolver (英文)
使用乐高做一个解魔方的机器人?很多人连想都不敢想,而JP Brown成功了,几乎发挥了乐高RCX的极限。因为这个模型,而JP Brown也成为乐高迷心目中的偶像。
 

[原文地址]  http://jpbrown.i8.com/cubesolver.html


      


       

PREAMBLE
       

This robot solves the 3x3x3 Rubik's Cube®.

I started to think about this problem in about August of 2000. In Jan 2001 fellow Mindstorms forums user 'agiecco' announced his intention to work on a robotic solution and, simultaneously, I saw that Rubik's Cubes were on sale at www.target.com. So I bought a couple of cubes and started getting down to business...

I produced a 'late beta' version in mid-April 2001 that was a little clunky. The final version (presented here) is smooth and fairly reliable.

MECHANICS
       

To achieve a cube solution, you must be able to rotate the whole cube by 90° in two orthogonal axes, and be able to turn a face by 90° relative to the rest of the cube.

I opted to use the left and right grabbers to turn the faces; the yellow grabber can rotate the left face by an 90°; the green grabber can rotate the right face by 90°; or they can both turn simultaneously while the bottom grab is open to rotate the whole cube through 90°.

The bottom gabber holds the center 'slice' of the cube when the left or right grabber is turning a single face, and also provides a 90° turn for rotating the whole cube.

The tricky part is to re-orient the cube between moves to present the next face to be turned by the left or right grabber.


Lubricating cube
     
PROBLEMS SOLVED
       

1. The cube faces are generally too stiff for LEGO elements to turn
       

This problem was solved by a tip I found on Lars Petrus's Speed Cubing page: lubricate the cube with silicone spray lubricant. I got an aerosol can of LubriMatic Heavy Duty Silicone Lubricant from my local ACE hardware store and squirted some inside the cube. After wiping off the excess spray you must rotate the cube faces for about 30 minutes to prevent the solvent in the spray dissolving the cube body and sticking it solid. Once you have done this, the result is a fairly slick cube.

Wedging the cube openHowever, I found that some of the faces still got stuck because the springs inside the cube were too stiff, so I pushed some wedges (actually, plastic knives) in between the cube slices and left them over night to force the springs inside the cube to loosen up. After this treatment the cubes handled very well.


2. Getting enough torque
       

Even with a treated cube, getting enough torque to turn the cube faces was going to be a problem. I remembered the system that Jin Sato used on the thigh joints of MIBO -- worm gear to the outer 56t ring of the large Technic turntable. This gives torque to spare for turning the faces of a treated cube.

3. LEGO grabbers don't grip strongly enough
       

My early attempts at building a cube solver were all stymied by grips that slipped. The worm-56t gave enough torque to turn, but the fingers couldn't hang on and the grip was simply pried apart as the grabber rotated around the stationary cube face. I thought about changing the device's name to ButterFingers.

I rebuilt the left and right grabbers six times (and the bottom grabber four times) trying elastic bands, Technic shocks, and pneumatics, before I came up with an adequate grip mechanism. In the present version, an axle runs from a motor through the center of the large Technic turntable to a worm screw. The worm screw turns two 24t gears mounted either side of the worm inside the body of the grabber. Each end of the 24t axles terminates with an 8t gear outside the body of the grabber, and these 8ts engage with 24t-s on either end of the axles which carry the grabber's fingers. This system can be strained quite tight without risk of gear slippage, and also allows the large turntables to rotate 180° without any significant loss of grip.

For the bottom grabber I had to use a slightly different arrangement (same gear combinations) because the fingers of the green and yellow grabs kept catching on the external 24ts of the bottom grab. Eventually I managed to work out how to mount all the gears internally in the 4-stud width of large Technic turntable.

Side grab gear train (typical for 2)
Bottom grab gear train
     


4. Precision of movement
       

Having solved these problems, there was still the problem of 'slop' or 'gear lash' in the left and right drive trains.

Most of this was absorbed in the beta version by putting rotation sensors on the worm drive axles that rotate the grabs. However, the worm screws are a *tiny* bit too short to fit snugly -- they travel a little when the motor direction is reversed. To cure this I tried a suggestion from John Barnes and cut thin shims out of the plastic insert tray from inside a LEGO box. Two shims on each drive axle fixed the worm gear nicely in position so that the gear lash (although still detectable) was *nearly* within the tolerance of the cube for repeated turning.

However, the rotation sensors for the LEFT and RIGHT grabbers occasionally lost track of their position and had to be manually tweaked during a solution. There was also the problem that the rotation sensors were on the same axle as the worm screw turning the turntable. This meant that when the cube was a little stiff, even if the worm screw had performed the correct number of rotations to turn the cube face 90°, the LEGO pieces of the grabber had enough flex that the grabber was slightly twisted and the face did not make it all the way around to the 90° point.

Therefore, I abandoned rotation sensors and put two touch sensors at the limits of the quarter turn of the turntable (similar to the bottom grabber). I built a 'toucher' attached to the rotating part of the large turntable, and this seemed to compensate better for the twisting of the other LEGO elements of the grabber during stiff turns.

The disadvantage of the touch sensor approach, of course, is that the grabbers can no longer make a full 180° turn, so there is more time taken repositioning the side grabbers. The robot averages one face rotation every 30 seconds (i.e., a 20 rotation solution takes about 10 minutes). The final problem is making sure that the faces of the cube are kept in orthogonal alignment. A standard Rubik's Cube has side dimensions *just* larger than 7 LEGO studs. Fortunately there is enough flex in the joints of LEGO Technic to absorb the tiny additional dimension. Each grabber arm is fitted with reverse slopes that force the cube into the correct orthogonal alignment as the grabbers close.


CubeScan software screenshot
      
5. Establishing the initial (unsolved) state of the cube
       

The longest part of the this project involved writing the color-recognition software. I downloaded the Logitech Quick Cam SDK from the Logitech Developer's site (the LEGO Vision Cam is a repackaged Logitech Quick Cam) and used VB5 to write a fairly decent program (click the Code link for source). The color recognition is fairly robust (about one error every two cubes when well-calibrated), but not perfect, so I incorporated a feature that requires you to confirm that each face has been correctly scanned (and, optionally, allows you to correct the input manually) before it scans the next face.


The software requires calibration with a solved cube under the particular lighting conditions, and it is quite finicky about changes in lighting conditions. I also left in the earlier manual input option so that you can get a solved cube for calibration, or in case anyone who doesn't have a Vision Cam wants to try this.

Briefly, the software sends a message to the top RCX asking it to present one face of the cube to the video camera. The computer captures a frame from the video camera, and scans a 50x50 pixel area of each color patch to find the median red, green and blue (RGB) color values for each color patch on the face. The RGB values are converted to CIE X Y y coordinates, and then the CIE values are trigonometrically compared to the calibration values to find the closest match. The computer then asks the robot to show it the next face, and the process is repeated until all the faces have been scanned.

CubeSolver, lighting
     


6. General solution to the Rubik's cube
       

There are any many general solutions to the 3^3 Rubik's Cube on the internet (see here for a partial list). However, most of these produce a sequence of moves involving 50 or 60 face rotations. Given that CubeSolver moves quite slowly (averages about 30 seconds between face rotations), I wanted a relatively short sequence of moves. Fortunately, I found some C source code by Mike Reid on the internet which implements Herbert Kociemba's solution method: it provides short solutions (< 40 face rotations). I ported this code to Microsoft Visual C++ and recompiled it as an OCX for use in Visual Basic. I must say that Mike did a very decent job with his code -- move sequences are generated quickly, with a length usually about 20 moves or less.

[此贴子已经被作者于2006-11-8 3:04:35编辑过]

使用道具 举报

Rank: 3Rank: 3

积分
997
帖子
133
精华
0
UID
7583
性别

十年元老

3#
发表于 2007-2-11 00:04:41 |只看该作者

长见识了~~~~~~~

[em01]

使用道具 举报

Rank: 4

积分
2097
帖子
1363
精华
1
UID
8619
性别
4#
发表于 2007-6-6 17:47:59 |只看该作者
顶啊~~[em01]
08.07.31 休魔

使用道具 举报

Rank: 10Rank: 10Rank: 10

积分
16322
帖子
6926
精华
47
UID
68
性别
兴趣爱好
结构

收藏爱好者 魔方破解达人 魔方结构大师 十年元老

5#
发表于 2007-6-22 21:46:00 |只看该作者
顶,太强了

使用道具 举报

Rank: 2

积分
413
帖子
31
精华
0
UID
8376
性别
6#
发表于 2007-6-23 00:38:56 |只看该作者
那个小朋友打乱的步骤太少了,看不出来这个机器人用什么方法还原的。从视频上来看好像用了8步,应该是穷举计算的最小步吧。如果打乱的步骤多了,就不能用这种办法了,没准也会用层先法或者CFOP?

使用道具 举报

Rank: 2

积分
334
帖子
20
精华
0
UID
10164
性别
7#
发表于 2007-6-24 13:27:27 |只看该作者
我是新人,连图都看不明白,郁闷

使用道具 举报

Rank: 2

积分
354
帖子
37
精华
0
UID
10770
性别
8#
发表于 2007-7-29 21:51:53 |只看该作者
不知道最快速度是多少

使用道具 举报

Rank: 2

积分
352
帖子
79
精华
0
UID
8466
性别
9#
发表于 2007-8-24 00:07:03 |只看该作者
顶啊 太牛了

使用道具 举报

Rank: 1

积分
109
帖子
79
精华
0
UID
19012
性别
保密
10#
发表于 2008-1-30 21:02:39 |只看该作者
呵呵...強....頂一個!

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

Archiver|手机版|魔方吧·中文魔方俱乐部

GMT+8, 2024-4-20 03:01

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部