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

Is the Tag in Package.xml redundant?

asked 2017-03-24 04:46:52 -0500

LbrRobix gravatar image

Am learning :::ROS from here:

but is not 100% clear to me what is this in the package.xml file

find_package(catkin REQUIRED COMPONENTS roscpp rospy std_msgs genmsg)

I need to do REQUIRED and COMPONENTS, but hold on, is not a roscpp required too? what belowns to REQUIRED and what to COMPONENTS ???


edit retag flag offensive close merge delete


Are you sure that roscpp is required? What if I wrote my entire ROS package in Python? Would roscpp still be required?

jayess gravatar image jayess  ( 2017-03-24 16:37:19 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-03-24 13:03:19 -0500

Wolf gravatar image

The REQUIRED refers to the ROS build system catkin mentioned before the REQUIRED. I.e. build shall fail if catkin (For whatever reason is) Not found.

The COMPONENTS refers to the COMPONENTS (catkin packages, hence ROS packages) that are needed to build your package because your package depends in Them. These package are listed after COMPONENTS.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-03-24 04:46:52 -0500

Seen: 227 times

Last updated: Mar 24 '17