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

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

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

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 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
4

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

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

Question Tools

Stats

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

Seen: 253 times

Last updated: Jul 09 '12