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

beginner's questoin: How to Compile ROS PKG?

asked 2013-05-23 04:06:08 -0500

Gazer gravatar image

updated 2013-05-23 04:07:58 -0500

Hi all

I have followed all the beginner's tutorial from ROS webpage. I still have trouble understanding the precise procedure of compiling a pkg, obtained from a website. In my particular interest is :, after download it. I did:

1.Rosmake [package_name] 2.Roscd to [package_name] 3.make

Are these the correct steps in compiling packages like this? why Makefile is missing from the top level of the package?

Thank you

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-05-23 05:04:28 -0500

dornhege gravatar image

There are two build systems in ROS: rosbuild - the original one and catkin- the newer one. The package you are referring to uses catkin.

Instructions for compiling catkin packages can also be found in the tutorials. There should be a button at the top in the tutorials where you can switch between rosbuild and catkin.

edit flag offensive delete link more


ok. I see. I was told to use rosbuild, not catkin. Thank you, I now go and explore the catkin version. But as for the rosbuild version, do you agree with the steps I took?

Gazer gravatar image Gazer  ( 2013-05-23 05:06:23 -0500 )edit

rosmake package_name is sufficient. You can also still use rosbuild with your own code and depend on the catkin packages. Just for building a catkin package catkin is required.

dornhege gravatar image dornhege  ( 2013-05-24 05:41:46 -0500 )edit

Question Tools


Asked: 2013-05-23 04:06:08 -0500

Seen: 81 times

Last updated: May 23 '13