How to add other people's packages into workspace!!

asked 2016-03-17 09:14:52 -0500

Inzamam Anwar gravatar image

Hi members,

I have started learning ROS by following a book i:e. "Learning ROS for Robotics Programming". There are tutorials with this book. I have tried to integrate these with my ROS workspace but I am unable to do that. Can anyone comment on this problem?, I will be very thankful to you.


edit retag flag offensive close merge delete


How have you "tried to integrate" these packages? Are you getting errors? All you should need to do is put a desired package into ~/path_to_your_workspace/src/, then change directory to the root of the workspace, and then run catkin_make.

jarvisschultz gravatar image jarvisschultz  ( 2016-03-17 12:04:18 -0500 )edit

If that works with no errors, then you source ~/path_to_your_workspace/devel/setup.bash and your terminal should be setup to use the newly integrated package.

jarvisschultz gravatar image jarvisschultz  ( 2016-03-17 12:05:04 -0500 )edit

I have done the same thing but it didn't make executable in build folder although a folder is made with the name of package.

Inzamam Anwar gravatar image Inzamam Anwar  ( 2016-03-17 22:34:54 -0500 )edit

A compiled executable won't be in the build/ .... Likely if you run catkin_make it will be in the devel/ dir. Check out ~/path_to_workspace/devel/lib/package_name/

jarvisschultz gravatar image jarvisschultz  ( 2016-03-18 07:41:42 -0500 )edit

Also, if catkin_make successfully builds the package you added, you can navigate to the compiled package by roscd new_package_name

DavidN gravatar image DavidN  ( 2016-03-20 12:07:56 -0500 )edit

I believe that @DavidN means that roscd will take you to the source directory of the package.

jarvisschultz gravatar image jarvisschultz  ( 2016-03-20 20:32:09 -0500 )edit

Oops, I was thinking about the installing method (section 2.2.4 ). Please ignore my confusing comment if you are not using installing of packages. Sorry for the confusion

DavidN gravatar image DavidN  ( 2016-03-20 21:20:40 -0500 )edit