Commonly used programming languages for industrial robots: 1. Hardware description languages (HDLs), generally used to describe electrical programming methods; 2. Assembly language; 3. MATLAB; 4. C#/.NET; 5. Java; 6. Python; 7. C/C.
The operating environment of this tutorial: Windows 7 system, Dell G3 computer.
Commonly used languages in robot programming:
1. Hardware description languages (HDLs)
Hardware description language is generally used to describe electrical programming methods. These languages will be quite familiar to some robotics experts because they are used to programming FPGAs. FPGAs allow you to develop electronic hardware without actually producing a silicon chip, which is a faster and easier option for some developments. If you don't develop electronic prototypes, you may never use HDLs. Even so, it is still necessary to understand this programming language because they are very different from other programming languages. An important point: all operations in HDLs are concurrent, as opposed to the sequential operations of processor-based programming languages.
2. Assembly
Assembly allows you to program on 0 and 1 digits. Basically this is the lowest level programming language. Just recently, the lowest level electrons required assembly to be programmed. With the rise of Arduino and other microcontrollers, you can now easily program at the bottom using C/C. This means that Assembly may become less necessary for most roboticists.
3. MATLAB
MATLAB and its related open source resources, such as Octave, are particularly liked by some robotics engineers and are used to analyze data and develop Control System. There is also a very popular robotics toolbox - MATLAB. I know experts who have developed entire robotic systems using only MATLAB. If you want to analyze data, generate advanced graphics, or implement control systems, you might want to learn MATLAB.
4. C#/.NET
C# is a special programming language provided by Microsoft. I put C#/.NET here mainly because of the Microsoft Robotics Developer Studio. The main development language of this package is C#. If you're going to use this system, you'll probably have to use C#.
5. Java
As an electrical engineer, I am always interested in some computer science degree courses that introduce Java as the first programming language for students. Learn to be surprised. Java hides the underlying storage functionality from programmers, which makes it easier to write than some languages (such as C), but it also means that you will understand less about the running logic of the underlying code. If you have a computer science background and switched to robotics (many people do, especially in research fields), you may have learned Java. Like C# and MATLAB, Java is an interpreted language, which means it is not compiled into machine code. Instead, the Java virtual machine interprets instructions at runtime. Using Java, you can theoretically run the same code on different machines, thanks to the Java Virtual Machine. In practice, this is not always possible and sometimes results in slow code. But Java is very popular in some parts of robotics, so you may need it.
#6. Python
In recent years, there has been a huge resurgence in people learning Python, especially in the field of robotics. One reason may be that Python (and C) are the two main programming languages in ROS. Unlike Java, Python's focus is on ease of use, and Python doesn't require a lot of time to do regular things like defining and casting variable types. These are very common things in programming. In addition, Python has a large number of free libraries, which means you don't have to "reinvent the wheel" when you need to implement some basic functions. And because Python allows simple bindings to C/C code. This means that the performance of heavy parts of the code can be built into these languages, thereby avoiding performance penalties. As more and more electronic products start to support Python "out of the box" (along with the Raspberry Pi), we may see more Python in robots. Note: The Raspberry Pi Foundation: A small charity organization in the UK, established with the purpose of promoting technology rather than selling technology for profit.
#7、C/C
Finally we arrive at the #1 Robot Programming Language! Many consider C and C to be a good starting point for new roboticists. Why? Because many hardware libraries use these two languages. Both languages allow interaction with low-level hardware, allow real-time performance, and are very mature programming languages. Nowadays, you'll probably use C more than C because the former has more features. C is basically an extension of C. It can be useful to learn a little C first, especially if you find a hardware library written in C. C/C is not as easy to use as Python or MATLAB. Implementing the same functionality in C would take a lot of time and would require more lines of code. However, since robotics relies heavily on real-time performance, C and C++ are the programming languages that are closest to the "standard language" for us roboticists.
For more computer programming related knowledge, please visit:Programming Teaching! !
The above is the detailed content of What language is used to program industrial robots?. For more information, please follow other related articles on the PHP Chinese website!