Phyton vs c++
Hi guys
which language is better for using in ros for programming in slam or navigation or ...
Thanks Hamid
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
Hi guys
which language is better for using in ros for programming in slam or navigation or ...
Thanks Hamid
This is a very broad question and for a general discussion you'll probably find thousands of discussions (and flamewars :) ) on the internet. As a rule of thumb, if one is proficient in both languages, Python allows to get things done faster, while a implementation in C++ likely takes longer to implement but might be faster during runtime. In practice, this rule of thumb can also turn out to be very wrong for numerous reasons (availability of fast library implementations, implementation errors etc.).
The vast majority of SLAM and navigation code for ROS is implemented in C++ currently, so most implementers apparently felt that this was the better choice.
IMHO, the pragmatic answer looking at a short to medium time frame is that you should use what you know to use best. A expert Python programmer but C++ novice will have a hard time using C++ and vice versa. Still, I'd recommend learning both languages over time, as they have complimentary strength and weaknesses.
C++ also has better support in terms of the tutorials posted on ROS wiki
C++ it is. Not just for ROS, but if you want to use other librairies, then C++ becomes handy.
Asked: 2014-04-26 19:57:09 -0600
Seen: 764 times
Last updated: Apr 26 '14