Robotics StackExchange | Archived questions

ADDING CUSTOM LIBRARY TO ROS

Hello everyone. I have have downloaded some C++ library like eigen, SDL, ... from their websites and I have written some other C++ libraries with .h and .cpp files also. However, i don't know how to add them to ROS to use in my program. Can you tell me how to use custom libraries in ROS please ?

Asked by N.N.Huy on 2020-08-12 13:56:41 UTC

Comments

I'm closing this, not because I believe your question is not a valid question, but because there are many duplicates of your exact question already here on this site.

I would advise you to use Google to search for them. Append site:answers.ros.org to your query, and you should see many results.

Example: use custom library site:answers.ros.org.

Finally: this is a CMake question, not so much a ROS one. Catkin ~= CMake, so once you learn how to do this with CMake, you'd know how to do this with Catkin.

Asked by gvdhoorn on 2020-08-12 14:09:24 UTC

Thank you so much !

Asked by N.N.Huy on 2020-08-13 00:58:54 UTC

Answers