Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Task 0

Software Installation in Windows


This document contains instructions to install following software on Windows:

  • CopelliaSim
  • Visual Studio Code (optional but highly recommended)
  • Python
  • C++ Compiler

1. CoppeliaSim_Edu_V4_10_0_rev0

  • In this section, we will install CoppeliaSim Robotics Simulator Platform.
  • The robot simulator CoppeliaSim is based on a distributed control architecture: each object/model can be individually controlled via an embedded script, a plugin, a ROS or BlueZero node, a remote API client, or a custom solution. This makes CoppeliaSim very versatile and ideal for multi-robot applications. Controllers can be written in C/C++, Python, Java, Lua, Matlab or Octave.

A. Installation Steps CoppeliaSim

  • Download CoppeliaSim_Edu_V4_10_0_rev0 for Windows 64-bit OS from here(238 MB)

  • Navigate to the downloaded .exe file and double-click it to install the software.

  • Once the installation is complete, a shortcut icon to launch the software would have been created on your Desktop. Double-click to launch it. CoppeliaSim will open as shown in Figure-1 with the default scene loaded.

Select Linux Debian Version
Figure 1 : CoppeliaSim default window


  • The below steps will increase your programming efficiency.
  • Programmers spend a lot of time looking at documentation, re-factoring code, debugging issues, unit testing and styling code.
  • What if you get a helping hand at this so that your code looks beautiful and you could debug issues faster? Read further to know more. Don't worry!
  • Since using tooling may be a new thing to most of you it may look difficult but none of this is difficult. It's actually rather very very easy and you will become a better programmer the earlier you master these tools.
  • Download a Text Editor. We recommend Visual Studio Code.
  • Set up VS Code for C++ and Python: Install the Python and C/C++ extension in VS Code.This will setup all the tools necessary for easy editing, running and testing Upcoming Taks.


3. Python

  • Python is a high-level, interpreted programming language known for its simplicity and readability.
  • It's widely used in robotics, automation, data analysis, machine learning, and web development.
  • Python's extensive library ecosystem makes it ideal for rapid prototyping and integration with hardware systems.
  • For robotics applications, Python provides libraries like NumPy, OpenCV, Matplotlib, and PySerial for sensor data processing, computer vision, plotting, and serial communication.

We will be using Python 3.10 in this theme. You don't have to install Python separately — it comes by default with the Miniconda installation we use below.

Conda is a package management system, created specifically to assist working with Python packages in a cross-platform fashion. Conda also has the concept of a virtual environment, which is an independent, self-contained install of Python and packages.

There are two options for getting Conda: Anaconda and Miniconda. We use Miniconda because it is lightweight.

NOTE : If you already have Anaconda or Miniconda pre-installed on your system, kindly skip section A and proceed to section B. Verification Steps Miniconda.

A. Installation Steps Miniconda

  1. Download the Miniconda for Python 3.10 Windows 64-bit installer from here. (If the link above is unavailable, grab the latest Miniconda installer from the Miniconda download page — we will pin Python 3.10 explicitly when creating the env.)

  2. Navigate to the downloaded .exe file and double-click it. You will see the Miniconda Windows Installer welcome screen.

  3. Click on I Agree to accept the terms of the agreement.

  4. It is best and recommended to install Miniconda for the local user, which does not require administrator permissions and is the most robust type of installation. Leave the default Just Me selected and click Next.

  5. Leave the destination folder to install Miniconda untouched. Note: If the directory path contains any spaces, it will throw a Warning saying that the directory name should not contain spaces — that's okay, click OK.

  6. On the Advanced Installation Options screen, you have two important choices:

    • First: You can optionally add Miniconda to your PATH environment variable. We recommend NOT adding it, since this can interfere with other software.
    • Second: You can register Miniconda as your default Python 3.10 so it is detected by other IDEs and tools. We recommend leaving this checked, unless you plan on installing multiple versions of Anaconda/Miniconda.
  7. Click on Install. The installation will take some time. Click Next when it completes. Skip the optional install of Microsoft Visual Studio Code (we install it manually — see Section 2).

  8. Un-check the two "Getting Started"/"Tutorial" boxes on the final screen and click Finish.

Cheers! Miniconda for Python 3.10 is successfully installed. Let's verify it now.


B. Verification Steps Miniconda

  1. Search for Anaconda Prompt (miniconda3) in the Start menu. Open it.

  2. Type the following command in the prompt:

    conda info
    

    You should see info about your Miniconda installation (paths, version, channels).

  3. Miniconda creates a default Python environment named base at the installation directory. List existing environments:

    conda env list
    

    (conda info --envs or conda info -e work too.) The asterisk * next to a name indicates the currently active environment — it should be base right now.

  4. When any environment is active, its name appears in (env_name) before the prompt. Activate the default base environment and inspect it:

    conda activate base
    where python
    python
    

    This will:

    • Activate base — the prompt now starts with (base).
    • Print the path of the Python that Miniconda installed.
    • Open the Python interpreter, where you can see the version (should be 3.10.x).
  5. Type exit() to leave the Python console, then deactivate the environment:

    conda deactivate
    

    The (base) prefix will disappear.


C. Setting up a Virtual Environment using Miniconda

We will now create the Sprint-specific virtual environment with Python 3.10 and install the libraries we need.

  1. Open Anaconda Prompt from the Start menu.

  2. Create a new environment named elsi_sprint with Python 3.10:

    conda create -n elsi_sprint python=3.10 -y
    

    This creates an isolated environment so this Sprint's packages don't conflict with anything else on your machine.

  3. Activate the environment:

    conda activate elsi_sprint
    

    Your prompt should now start with (elsi_sprint).

  4. Install the libraries used in this Sprint:

    pip install numpy matplotlib pyserial opencv-python pyzmq coppeliasim-zmqremoteapi-client
    
  5. Verify the environment:

    where python
    python --version
    

    You should see a Python path inside the elsi_sprint env and:

    Python 3.10.x
    
  6. (Optional) Quick import check that key libraries are available:

    python -c "import numpy, matplotlib, cv2, serial, zmq; print('all good')"
    

Tip : Always conda activate elsi_sprint before working on any Sprint task — running Python from outside the env will use the wrong interpreter and missing packages.

To deactivate later: conda deactivate. To remove the env and start over: conda env remove -n elsi_sprint.


D. Using the elsi_sprint env in VS Code

Because we did not add Miniconda to the system PATH (Section A, step 6), the conda command won't work directly in VS Code's default PowerShell / Command Prompt terminal. The cleanest fix is to let VS Code's Python extension activate the env for you — every time you open a Python file or the integrated terminal.

  1. Open VS Code and install the Python extension (from Microsoft) if you haven't already.

  2. Open the folder where your Sprint code lives: File → Open Folder...

  3. Press Ctrl + Shift + P to open the Command Palette.

  4. Type and select Python: Select Interpreter.

  5. From the list, pick the interpreter labeled Python 3.10.x ('elsi_sprint': conda).

    • If it isn't listed, click Enter interpreter path → Find...
      and browse to:
      C:\Users\<your-user>\miniconda3\envs\elsi_sprint\python.exe
      Path Might Be Different For you
  6. Open a new terminal: Terminal → New Terminal. The Python extension should automatically activate the env — you'll see (elsi_sprint) at the start of the prompt.

  7. From now on, running scripts with the ▶ button or python your_script.py in the terminal uses the right env.

NOTE :

  • If the terminal prompt does not show (elsi_sprint), open VS Code settings (Ctrl + ,), search for python.terminal.activateEnvironment, and make sure it is checked.
  • For Windows if Mini Conda Env is not Working try to use this Command :
    Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser