Git Product home page Git Product logo

for_chia_chun_chao's Introduction

pyrosim: A python robot simulator.

Installation instructions.

Download or clone the repository using the green button at the top of this page.

If you downloaded the zipped version, unzip the directory somewhere you can access it.

For Windows users:

Install Anaconda--a package that includes Python and useful Python libraries--if you don't already have it by choosing `Download for Windows', the Python2.7 version, and the 64-bit version if you have a 64-bit machine and 32-bit otherwise. (You can find out whether you have a 32-bit or 64-bit machine here.)

Now open the file called pyrosim.py in the pyrosim directory using your favorite text editor.

Change line 20 from

commandsToSend = ['./simulator']

to

commandsToSend = ['./simulator7.exe']

if you have Windows 7 or 8, or change the line to

commandsToSend = ['./simulator10.exe']

if you have a Windows 10 machine.

Save the file and close it.

Now open Demo_00_Empty_Sim.py, again using your favorite text editor, and change this line

sim = PYROSIM() 

to this

sim = PYROSIM(evalTime=10000) 

Save the file and close it.

Now open a command prompt and navigate into the Pyrosim directory.

Now run Demo_00_Empty_Sim.py by typing

c:\pyrosim> python Demo_00_Empty_Sim.py

If you get an error message such as python: command not found, this means that your computer does not know where to find the python interpreter. Locate the directory where you installed Anaconda. There should be a file called python.exe in there. Now change your path environment variable to include the directory that contains python.exe. Execute c:\pyrosim> python Demo_00_Empty_Sim.py again.

When the command works, you should see a new window open onto an empty virtual environment, like this.

If that does not work, follow the tutorial here.

For Mac and Linux users:

Open a terminal window, and navigate into that directory. For example:

$ cd ~/Desktop/pyrosim

Run build.sh:

$ sh build.sh

This takes three to five minutes. The output should look like this:

Unpacking ode-0.12.tar.bz2...done
Building ode-0.12...done
Building simulator...done

If you are installing from Linux and you do not get the third `done' confirmation, install these additional packages

$ sudo apt-get install build-essential
$ sudo apt-get install freeglut3-dev

then re-install Pyrosim:

$ sh build.sh

Once you get all three `done' confirmations, test the package by running

$ python Demo_00_Empty_Sim.py 

This should bring up an OpenGL window displaying an empty, virtual world. The window will close on its own after a few seconds.

Next steps.

At the command line, type

python geneticAlgorithm.py

for_chia_chun_chao's People

Contributors

jbongard avatar proteusinstitute avatar

Watchers

 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.