Robotics StackExchange | Archived questions

Cannot import custom python module in custom python pkg

Hello everyone,

I followed documentation for creating ROS package in Python. Especially the part where I need to write setup.py, so my modules get recognized. I am still getting error ImportError: No module named ae_drone.control.rs_aruco_tf. I also took a look at some already existing packages, like this one and it seems to me, that the structure is same as mine.

My pkg is here: GitHub to my sample pkg

I deleted everything from there, just kept it clean - just to see the structure.

Could anyone advise me please?

Thank you and have a nice day!

P.S.: I am using catkin build

EDIT: I noticed the typo in ae_drone . control.rs_aruco_tf instead of ae_drone.control _ rs_aruco_tf (spaces added intentionally for good visibility). I changed it in my git repository. Still no success.

Asked by eMrazSVK on 2019-05-28 05:51:01 UTC

Comments

Can you post your CMakeList.txt file?

Asked by mch on 2019-06-07 20:07:20 UTC

Answers