Why C++ is THE Best Programming Language for ROBOTICS?
------------------------------
Sign up for my Free online course on "How to become a Robotics Engineer by Google former Robotics Engineer". Subscribe and Enter your Email here: http://bit.ly/2HJzIAE
-----------------------------
#topProgrammingLanguages #Robotics
The reason is real robots are complex beasts. And C++ can be used to manage that complexity.
If you think about a standard car-manufacturing spray painting robot, you can see it has a jointed arm that allows it to run a paint spray over a complex car body shape.
The car body shape is going to be specified as planar and curved surfaces. The paint spray will need to be held at a constant distance from that.
To do that, you get to move circular joints in the arm.
So, we’ve got equations of curved planes, the cross product of the plane to figure out a height above it, moving a vector along that to a point in 3D space, then getting the spray head there. This, in turn, needs converting to polar coordinates, so you can dial in the Euler angles for the spray head.
It is exactly as you do all this in games. Which is exactly how you do all this in Physics, because this now is physics. And that needs a lot of maths.
At this point, I’ve lost all interest in C.
I don’t want to be limited to functions and structs to describe all this. I want the power of classes and objects. I want overloaded operators. In fact, I want to be able to get a pre-built vector/matrix/3D maths library, and use words like Vector and so on in my code.
So, C++ hits the spot.
At the top end, you get class libraries, and meaningful names. But down at the deep end, you can bit-twiddle registers, binary numbers, ports and interrupt routines to actual make the robot work.
For toy robots, C might be all you need.
But as the physics cranks up, I want C++
What is THE Best programming language for Robotics cppo | |
| 132 Likes | 132 Dislikes |
| 11,023 views views | 5.96K followers |
| Science & Technology | Upload TimePublished on 5 Sep 2018 |
Không có nhận xét nào:
Đăng nhận xét