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

how to add a repository as a dependency in the package.xml and add it as a component to in the cmakelists.

asked 2014-12-03 20:48:59 -0600

A.M Dynamics gravatar image

updated 2014-12-03 21:16:32 -0600

Dear All,

There is a repository API for Kuka youbot named youbot_driver which includes other packages/folder and libraries and a Yaml file. I want to link against this repository from a catkin package(IT DOSE NOT consist of Include folder as a catkin package). There is a folder named youbot which includes .ccp and .h files. Regardless of declaring these headers in the main node, I have to add this repository to .xml and cmakelists. Would you please tell how I can do this?

sincerely,

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-12-04 00:52:22 -0600

BennyRe gravatar image

In your package.xml add

<build_depend>youbot_driver</build_depend>
<run_depend>youbot_driver</run_depend>

and in your CMakeLists.txt add youbot_driver to find_package and catkin_package.

edit flag offensive delete link more

Comments

Thanks. It means that there is no difference between a repository including some packages/folders and a single package in the way that we declare them in .xml and cmakelists?

A.M Dynamics gravatar image A.M Dynamics  ( 2014-12-04 09:59:17 -0600 )edit

Well, youbot_driver is a single package. How complexd the package is plays no role.

BennyRe gravatar image BennyRe  ( 2014-12-05 00:49:11 -0600 )edit

@BennyRe. My problem is solved. The package could drive the youbot well. Thanks for your help.

A.M Dynamics gravatar image A.M Dynamics  ( 2014-12-26 17:52:19 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2014-12-03 20:48:59 -0600

Seen: 135 times

Last updated: Dec 04 '14