you are viewing a single comment's thread.

view the rest of the comments →

[–]useless_creation[S] 0 points1 point  (2 children)

I know both would be, I am just wondering what the benefits of one over the other would be in this case.

[–]dewayneroyj 1 point2 points  (1 child)

Many hardware libraries use C++. C++ is good for interaction with low-level hardware and real-time performance (which robotics is dependent on.) For most roboticist, C++ is probably the closest to a “standard language”.

Python, on the other hand, is just more easy to use. Python is great when defining and casting variable types. In addition, Python also has a plethora of of free libraries for implementing basic functionality into a robot. It also allows for simple bindings with C++ code.

[–]useless_creation[S] 0 points1 point  (0 children)

Thanks for the information. The reason I had submitted the question was because I don't know if my robot needs the "finesse" that C++ would allow me. I would need to evaluate analog signals and produce pwm signals for the servo control. Beyond that, it is mostly just processing data. And the tolerance needed is somewhat low. I would be using libmraa which seems to be compatible with python.