Giter Site home page Giter Site logo

mindsolver's Introduction

Mindsolver

About

This is a software alternative for the Mindcuber-style robots using the ev3dev OS.

It uses statistical classification and mathematical optimization in order to achieve a better rate of success at scanning the cube.

How to run

IMPORTANT: The program currently has hardcoded values for port positions.
Therefore, the required setup is: Sensor arm motor on port B, base motor on port C and flipper motor on port D.
Color sensor can be put on any input port.

Download an executable from the latest release and run it directly on your ev3dev shell.

Alternatively, you can compile Mindsolver yourself

This guide assumes you want to cross-compile from an x86 computer.
Compiling directly on the robot is possible but slow and unsupported

You first need the rust toolchain. This project has been tested for the 1.78.0 stable toolkit

To build mindsolver for a device running ev3dev, simply run:

cargo build --release

The --release flag is optionnal but is recommended for slower compile time but faster execution time

Then copy your file on the robot with scp:

scp target/armv5te-unknown-linux-musleabi/release/mindsolver robot@YOUR_ROBOT_IP:/home/robot/mindsolver

Then, using ssh, simply run the executable using brickrun:

brickrun -r ./mindsolver

Note that on the first run, a cache file will be generated. Scans will be saved in the scans directory if the --save option is used.

Arguments

This software supports some command-line arguments to fine-tune your experience.

Usage: mindsolver [OPTIONS]

Options:
  -f, --file <FILE>            File source if using a previous scan file. Will skip scan
      --iteration <ITERATION>  Number of color sensor scans per facelet [default: 5]
      --movement <MOVEMENT>    Movement between each color sensor scan [default: 8]
      --sleep <SLEEP>          Sleep duration between each color sensor scan (in ms) [default: 20]
  -n, --nosolve                Disables the solution application
  -s, --save                   Enables saving scan to file
  -h, --help                   Print help
  -V, --version                Print version

Run without hardware

You might want to run the program on your own desktop computer without hardware.
In which case, if you use both -f and -n, this program will skip hardware initialization.

For example, cargo run --target x86_64-unknown-linux-gnu -- --file scan_test_files/solvable.txt --nosolve

mindsolver's People

Contributors

seliaste avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

mindsolver's Issues

Increase fixer success rate

Right now there are 2 different fixing algorithms: the bruteforce and non-bruteforce one. Bruteforce has about 75% success rate with 25% false positive, and non-bruteforce has about 50% with few false positives and often no solutions found.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.