Ask Your Question
1

How can I add a dependency after I have created a package?

asked 2012-07-09 09:33:59 -0500

Nishant gravatar image

Hi all,

I created a package called demo. It has two dependencies

1) roscpp

2) robot_comm

Now I want to interface it with a sensor, so I created a node called 'cell_node' for the sensor. I plan to use information from a topic in 'cell_node' which publishes the message 'loadMsg' at 50Hz.

But then, I am getting an error

cell_node/loadMsg.h : No such file or directory.

I kind of know why this is happening. It is because I never added cell_node to the list of dependencies when I first created my package demo.

My question is, how can I add a new dependency to an already existing package, so that it compiles code in that dependency too?

Thanks! All help is appreciated :)

edit retag flag offensive close merge delete

Comments

1
Nishant gravatar image Nishant  ( 2012-07-09 09:39:54 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
4

answered 2012-07-09 09:37:14 -0500

Rydel gravatar image

in the manifest.xml file of your package add a dependency near the others

<depend package="cell_node"/>
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-07-09 09:33:59 -0500

Seen: 145 times

Last updated: Jul 09 '12