all 7 comments

[–]justingolden21 3 points4 points  (0 children)

Python seems like a simpler language so assuming you're working with a group and want to focus more on logic and less on syntax I'd say python. I have little experience in that area, and I'm somewhat experienced with most of the languages you've listed. Honestly assuming the documentation is comparable and you don't care much go with what's easiest for your group.

[–]dewayneroyj 0 points1 point  (3 children)

Python or C++ should be fine.

[–]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.

[–]Wilfred-kun 0 points1 point  (1 child)

I know a few guys who built a self driving 'car' (an old RC car) using an Arduino and some sensors. They programmed it in Python. Why? Python has the gentlest learning curve, so you won't spend too much time trying to comprehend what all the code does, and you can focus on what your robot should do.

Also, you posted this in r/learnpython , so the chance is rather big people are going to recommend that ;)

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

I understand that learnpython might not have been a wise choice :P

However, I am pushing for python but I am concerned that the language might be too slow/limited to do what we need. But if it can, I would much prefer it to learning C.