ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to compile paython package in c++ work space

asked 2017-03-08 19:25:27 -0500

can-43811 gravatar image

Hi ,

I want to use paython package in c++ workspace as package available in paython not in c++ . Could you let me know the approach for the same . Is it advisable to use paython package in c++ workspace ? I don't have any experience in paython but want to use paython package so that information can be published through topics .

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-03-26 01:09:21 -0500

jayess gravatar image

I'm not sure what you mean by a C++ workspace, but you are free to mix and match different languages within the same package and workspace. Nodes written in different languages can communicate via topics and services (for the most part, I haven't yet encountered any limitations/problems). In fact, I do this all the time. I'll often write some nodes in Python and some in C++ and there's never an issue.

edit flag offensive delete link more

Comments

catkin make is different for python and c++. I do require some packages in python and c++ as well by making sure that both are compiled on similar and integrated build environment,

can-43811 gravatar image can-43811  ( 2017-03-26 02:04:08 -0500 )edit

catkin_make will only compile C++, in fact, you don't compile Python at all. You can use packages built with Python and packages built with C++ in the same workspace without any problems, except in very rare circumstances. You can also use Python and C++ in the same package.

jayess gravatar image jayess  ( 2017-03-26 02:16:24 -0500 )edit

@can-43811 if this answered your question, please click on the check mark to mark the answer as correct.

jayess gravatar image jayess  ( 2018-01-17 03:31:45 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2017-03-08 19:25:27 -0500

Seen: 298 times

Last updated: Mar 26 '17