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

Using two roscreate-pkg packages and being able to read the src file code

asked 2013-10-05 14:55:53 -0600

JP gravatar image

updated 2013-11-14 12:35:02 -0600

tfoote gravatar image

Hi everyone,

I have one package (lets call it a) and inside this is the CMakeLists.txt file, manifest.xml and a few .h and .cpp files of code that talk to each other in the src folder. My src file is starting to get a little big so ideally I want to have more than one package (such as one called b) that has its own CMakeLists.txt file, manifest.xml and src file. What I want is the code in the src folder for package a to be able to communicate with the src folder for package b. I added the line: <depend package="a"/> to the manifest.xml in package b but I am unable to read the src code from package a.

Perhaps my way of thinking is wrong. If so, could you explain to me the best way to partition the code would be? If I am on the right track, what have I missed out?

Thanks in advance.

edit retag flag offensive close merge delete

Comments

Thanks for the reply. I do not have any cflags and Iflags in my manifest.xml for my package. (I used ros-create pkg). how to I get these?

JP gravatar image JP  ( 2013-10-06 10:34:24 -0600 )edit
jdorich gravatar image jdorich  ( 2013-10-06 10:42:04 -0600 )edit

Thanks so much!

JP gravatar image JP  ( 2013-10-06 11:09:52 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-10-06 10:22:29 -0600

jdorich gravatar image

updated 2013-10-08 13:51:46 -0600

See this ROS answer. You have to export cflags and lflags in package a in your case mentioned.

edit flag offensive delete link more

Comments

Thank you!!

JP gravatar image JP  ( 2013-10-06 11:39:06 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2013-10-05 14:55:53 -0600

Seen: 146 times

Last updated: Oct 08 '13