Giter Site home page Giter Site logo

conveyor's Introduction

conveyor

the conveyor module handles machine connections and is the commnunication link bewtween Makerware UI and makerbot_driver

##Repository Setup To run conveyor from the command line, you must also clone the s3g (makerbot_driver) repository. If you want to slice models, you must also clone the Miracle-Grue Repository or the Skeinforge repository. These repositorys must be installed at the same folder level as conveyor. To use Miracle-Grue, you must build a miracle-grue binary. Instructions for this are contained in the Miracle Grue repository.

##VirtualEnv Due to makerbot_driver's dependency on our (Makerbot Industries) own version of pyserial, and for the sake of not polluting your own system that may have the 'true' version of pyserial installed, you must invoke conveyor inside a virtualenv. We provide the necessary files to operate inside a VirtualEnv that will install all dependencies for you without polluting your own machine.

First, obtain a copy of our version of pyserial. This can be done VIA git. On the same directory level as makerbot_driver, in a terminal window issue:

git clone [email protected]:makerbot/pyserial.git

Dependent submodules must be up to date to run the virutalenv. In the root directory of makerbot_driver, issue:

git submodule update --init

To create the VirtualEnv, inside the root directory of the makerbot_driver folder, issue:

python virtualenv.py virtualenv

To configure the VirtualEnv, navigate to the root directory of the makerbot_driver driver and, in a terminal issue:

./setup.sh

To activate the VirtualEnv, in the root directory of the makerbot_driver driver, issue:

. virtualenv/bin/activate

##Additional Conveyor dependencies Conveyor relies on submodules. Set these up using:

git submodule update --init

Then get the pyserial egg using:

cd submodule/conveyor_bins
easy_install pyserial-2.7_mb2.1-py2.7.egg

Note the pyserial egg can also be activated from the makerbot_driver directory using the same process. This is an option if there are any issues running the install in the conveyor directory.

##Running Conveyor Conveyor has a server-client organization. The conveyor server runs continually, and the conveyor client makes requests to the server. You can run both the server and client processes in the same command line terminal, but it is often advantageous to run them in separate terminals.

To start the conveyor_service, from the top level of the conveyor directory, run:

python conveyor_service.py  -c conveyor-dev.conf --nofork

conveyor-dev.conf is the configuration file used for the dev configuration. This file describes the repository dependecies described at the top. Install versions of Makerware have an alternate conf file. If you want to print debug messages while running the conveyor server, use the flag '-l DEBUG'.

Run the conveyor client in a seperate terminal. first activate the virtual env. from the top level of the conveyor directory, run:

. virtualenv/bin/activate

There are a number of client operations that can be performed. To print to a connected bot, run:

python conveyor_cmdline_client.py -c conveyor-dev.conf print 'intputfile'

To build a model to an s3g/x3g file, use:

python conveyor_cmdline_client.py -c conveyor-dev.conf printtofile 'inputfile' 'outputfile'

These commands will run with default configurations. To view configuration options for an operation, use the -h flag. To see a list of operations run:

python conveyor_cmdline_clieny.py -c conveyor-dev.conf list

Logging messages while running conveyor are stored in the conveyord.log file, located at the top level of the conveyor directory.

conveyor's People

Contributors

dgs3 avatar nicholasbishop avatar phooky avatar farmckon avatar fgelm01 avatar nmsl1993 avatar jsadusk avatar aleonard avatar wdcrith avatar bmatzelle avatar

Watchers

Richard Berwick avatar

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.