importing rospy and actionlib causes embedding python code in c++ to fail

asked 2017-11-29 13:12:35 -0500

zeinab gravatar image

updated 2017-11-30 07:16:29 -0500

Hi, I am using a large code base were our robot path planning is entirely coded in python. We need to call the planner in one c++ code file to find the path length. I have tested my code with other python scripts and it compiles and works well. However, when calling a function from a python file that is a rosnode and imports rospy and actionlib, the returned object from the python code in c++ is NULL. I am guessing rospy must be the problem here. Any ideas about what could be causing this and what could be the solution? Thanks a lot, Zeynab

edit retag flag offensive close merge delete

Comments

1

Could you share the relevant part of the code that fails?

Ruben Alves gravatar imageRuben Alves ( 2018-01-19 14:31:41 -0500 )edit