Skip to content

Remove kociemba and rubiks_rgb_solver.py from MINDCUB3R demo - #272

Merged
dwalton76 merged 3 commits into
ev3dev:developfrom
dwalton76:develop-MINDCUBER
Dec 1, 2016
Merged

dwalton76 merged 3 commits into
ev3dev:developfrom
dwalton76:develop-MINDCUBER

Conversation

@dwalton76

Copy link
Copy Markdown
Collaborator

This is for issue #270

Comment thread demo/MINDCUB3R/README.md
sudo apt-get install build-essential python3-pip libffi-dev
sudo pip3 install git+https://github.com/dwalton76/kociemba.git
sudo pip3 install git+https://github.com/dwalton76/rubiks-color-resolver.git
kociemba DRLUUBFBRBLURRLRUBLRDDFDLFUFUFFDBRDUBRUFLLFDDBFLUBLRBD

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like gibberish 😆 Is the idea here that you're feeding it a series of motions for testing purposes? If so, can you add a comment (not necessarily a code comment, just a note) with expected output?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does look like greek doesn't it :) The string is a representation of the colors of each of the 54 squares of a 3x3x3 cube. So the D at the beginning means that square #1 is the same color as the middle square of the Down side (the bottom), the R means that square #2 is the same color as the middle square of the Right side, etc. The kociemba program takes that color data and returns a sequence of moves that can be used to solve the cube. Just to keep things consistent the syntax for the sequence of moves also looks like greek

robot@beaglebone[lego-crane-cuber]# kociemba DRLUUBFBRBLURRLRUBLRDDFDLFUFUFFDBRDUBRUFLLFDDBFLUBLRBD
D2 R' D' F2 B D R2 D2 R' F2 D' F2 U' B2 L2 U2 D R2 U
robot@beaglebone[lego-crane-cuber]# 

I'll add some of this text to the README

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have that step in the install process because the first time you run it, it takes about 30 seconds because it builds some tables that it caches to the filesystem. After that first run it is nice and fast.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep confirmed that the motors spin, etc.

@WasabiFan

Copy link
Copy Markdown
Member

Is this confirmed at least seeming to work (motors spin) on the brick?

Comment thread demo/MINDCUB3R/README.md Outdated
`kociemba DRLUUBFBRBLURRLRUBLRDDFDLFUFUFFDBRDUBRUFLLFDDBFLUBLRBD`
step of the install looks a little odd. The "DRLUU..." string is a
representation of the colors of each of the 54 squares of a 3x3x3 cube. So
the D at the beginning means that square #1 is the same color as the middle

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will probably auto-link to the GitHub issue #1; you can put it in code formatting if you want or just leave it as-is.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will fix this and merge it

@dwalton76
dwalton76 merged commit 2f2bc7a into ev3dev:develop Dec 1, 2016
@dwalton76
dwalton76 deleted the develop-MINDCUBER branch December 1, 2016 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants