Ask Your Question

Python and C++ nodes in the same package

asked 2014-05-11 21:17:39 -0500

Mehdi. gravatar image

I have a package containing some C++ nodes. How do I add a Python node using rosbuild?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-05-12 05:51:33 -0500

makokal gravatar image

Just create your python node, then make the script executable and all should be fine. But also consider why you would want to do this in the first place.

edit flag offensive delete link more


Why not, having for example Python node for robot's hearing and automatic speech recognition and C++ node for vision and image processing, both in robot interaction package.

Mehdi. gravatar imageMehdi. ( 2014-05-12 15:45:47 -0500 )edit

I'm also curious as to why you advise to consider doing this. Oftentimes a simple interpreted script that can be edited on the fly works much better than a compiled application, at least in the research environment.

autonomy gravatar imageautonomy ( 2014-05-21 06:18:07 -0500 )edit

So if you had already implemented C++ code from older lectures/projects, you would bother translate it to Python first for the sake of on the fly editing?

Mehdi. gravatar imageMehdi. ( 2014-05-21 15:47:30 -0500 )edit

No, unless it was completely unmaintainable, I would not bother translating any existing code because it would be a duplication of effort. I don't think we're talking about duplicating existing C++ nodes in Python, but rather having them live side-by-side.

autonomy gravatar imageautonomy ( 2014-05-22 03:20:03 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-05-11 21:17:39 -0500

Seen: 1,080 times

Last updated: May 12 '14