Re: [ros-users] C++ versus Python in ROS

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
Delete this message
Reply to this message
Author: Cedric Pradalier
Date:  
To: ros-users
Subject: Re: [ros-users] C++ versus Python in ROS
Hello Sam,

My personal split between python and C++ is the following:

I use Python for code where I want to favor code simplicity and
reliability (less line of code, more use of existing code block, easier
text parsing). I find Python faster to write and easier to debug. I've
written simple web server, or driver for serial port sensors in 10th of
lines.

I use C++ when I need speed optimisation, I'm working with big objects
(image, point clouds) and when I use multiple threads.

In summary, most of my glue and simple programs are in python, but the
core number crunching code is in c++.

Again, this my personal use. I'm not sure you can make a rule of it.

Best,

On 07/19/10 08:31, Sam Quintanar wrote:
> I know C++, but Python is new to me. It seems like it would be fun to
> learn Python.
> Please talk me in or out of using Python!
>
> 1- What justifies using Python in ROS?
>
> 2- Are the majority of tutorials in Python or C++?
>
> 3- I notice that if one wants to use an IDE, Eclipse and Code:Blocks
> are suggested in the ROS wiki along with how to create an ROS package
> in Code:Blocks......but I see nothing like this for Python......what
> is a suggested IDE for Python?
>
> 4- Looking towards future robot-building tools integration, does
> Python support possibilities of using
> ROS+Orocos+OpenCV+Gazebo......C++ can be used with Orocos, but can Python?
>
> 5- I know C++ can be used for real-time action due to its speed, but
> can Python?
>
> Thanks.
>
> SamQ
>
> ------------------------------------------------------------------------
> The New Busy think 9 to 5 is a cute idea. Combine multiple calendars
> with Hotmail. Get busy.
> <http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5>
>
>
>
> _______________________________________________
> ros-users mailing list
>
> https://code.ros.org/mailman/listinfo/ros-users
>



--
Dr. Cedric Pradalier
http://www.asl.ethz.ch/people/cedricp