Giter VIP home page Giter VIP logo

nusisschad / industrial-robots-vscode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from robodk/industrial-robots-vscode

0.0 0.0 0.0 22.54 MB

The Industrial Robots extension for VSCode adds syntax highlighting to robot programs. This extension aims to support syntax highlighting for all industrial robot programming languages (such as ABB RAPID, KUKA KRC, Fanuc LS, Motoman JBI, Universal Robots urscript, Staubli VAL3, etc.).

Home Page: https://robodk.com/

License: MIT License

Python 99.10% Batchfile 0.53% PowerShell 0.37%

industrial-robots-vscode's Introduction

Industrial Robots extension for VSCode

The Industrial Robots extension for VSCode/VSCodium is an open source extension that aims to provide syntax highlighting for industrial robot programs. This extension aims to support all industrial robot controllers.

If you installed RoboDK v4.0 for Windows or later you should already have this extension installed with VSCodium.

VSCode in RoboDK

Features

This extension currently supports the following robots and their corresponding robot controllers and programing languages.

  • ABB (MOD/PRG files)
  • KUKA (SRC/DAT files)
  • Comau (PDL)
  • Motoman (JBI)
  • Fanuc (LS files)
  • Universal Robots (script)
  • Staubli (VAL3/XML)
  • Kawasaki (PRG)

About RoboDK

This extension is developed and maintained by RoboDK Software. You can simulate and program any industrial robot with RoboDK.

Useful links:

Requirements

Installing the extension has no requirements, simply install Industrial Robots from within visual studio like any other add-on.

If you installed RoboDK v3.8.5 or later you should have VSCodium with this extension available. VSCodium is a simplified version of VSCode with almost the same functionality.

Building and making changes

The Industrial robots VSCode extension is automatically generated from Python files. Therefore, it is better to understand and modify the Python scripts to automatically update the plugin.

The files in the Python directory of the plugin are used to add keywords and regular expressions to the add-on. Python scripts work with Python 2 and Python 3. Each Python file generates a theme for one programming language. You can add or edit the theme_* files which use a common library to apply the changes to the plugin.

Most of the functions contained within the python files are self descriptive and can be understood by taking a look at the Python/update_themes.py file.

repo_match() can either take a list of keywords to add to that category or a regular expression. If there is a "\" at the start of the string it will be interpreted as a regular expression and passed as is to the json in field specified in the function. If there isn't a "\" at the start of the string it will generate a regular expression that highlights all the space separated words in the string. As such you must not have any trailing spaces in these strings or the regular expression generated will break that files syntax.

To add a new language you would create a new python file based on the currently existing ones and modify the keywords as necessary. After modifying and running the script you also need to manually edit the plugins package.json file and the files that where generated.

Known Issues

No known issues.


Screenshots

ABB IRC5 (MOD/PRG files)

ABB IRC5 RAPID robot program

KUKA KRC2 or KUKA KRC4(SRC/DAT files)

KUKA KRC robot program

Yaskawa Motoman (JBI Inform)

Motoman Inform JBI robot program

Fanuc (LS files)

Fanuc LS robot program

Stäubli (VAL3)

Staubli VAL3 robot program

Universal Robots (script)

Universal Robots Script robot program

industrial-robots-vscode's People

Contributors

phillip-may avatar robodk 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.