Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

descarga

Robot Compiler

Created by:

Diego Partida Romero - A01641113
Carlos Alberto Veryan Peña - A01641147
Alan Antonio Ruelas Robles - A01641426

Students of Tecnológico de Monterrey Campus GDA

Implementation of Computational Methods (Gpo 601) - TC2037.601

June 11, 2023


Table of Contents


About

Industry 4.0 encompasses intelligent manufacturing and the emergence of smart factories, which have recently extended their influence to the mechanical industry. This expansion is driven by the rapid advancement of technology and the growing demand for high-quality products with increased efficiency. Consequently, the role of robots has become crucial, highlighting the significance of robot programming languages. To address this challenge, the development and implementation of a robust robot language compiler are necessary.


Folders

The repository contains the following folders:

  • compiler: This folder includes the source code and utilities for the robot compiler.
  • cpu: The cpu folder contains the implementation of the robot's central processing unit.
  • testing: The testing folder includes test cases and scripts to ensure the accuracy and reliability of the robot compiler.

Installation

To install the Robot Compiler, please follow these steps:

  1. Clone the repository: git clone https://github.com/your-username/robot-compiler.git
  2. Navigate to the project directory: cd robot-compiler
  3. Navigate to the src directory: cd cpu/src
  4. Install the dependencies: pip3 install numpy csv subprocess

Usage

To compile and run a robot program, follow these steps:

  1. Insert the desired intructions for the robot in the cpu/src/instructions.txt file, or leave them as they are.
  2. Navigate to the compiler directory: cd compiler
  3. Remove the current C files for the executable and the executable itself: make clean
  4. Remake the C files for the executable and the executable itself: make all
  5. Navigate to the src directory: cd ../cpu/src
  6. Run the python file: python3 cpu.py

About

Basic compiler that transaltes movement instruction into actions for a robot in a grid

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages