Ask Your Question
0

adding new dependency to a package

asked 2011-10-12 15:09:04 -0500

Tim C gravatar image

Sorry this is probably a stupid questions...

I've downloaded and successfully built the mrpt_common, mrpt_slam, and mrpt_hwdrivers packages. I assume this now allows me to reference some, if not all, MRPT functionality in a ros package.

However, when I add a reference to a mrpt class and add the include it get errors.

So now I'm wondering whether doing rosmake --rosdep-install <mypkg> doesn't resolve things.

Can someone help me out? My goal is to be able to reference and use any of the many useful MRPT classes from within a ROS package.

Thanks

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
3

answered 2011-10-12 17:57:30 -0500

CaptainTrunky gravatar image

updated 2011-10-12 17:59:09 -0500

Hello! If I understand you in right way, you should open next file:

your_project_dir/manifest.xml

and add something like this:

<depend package="mrpt_common"/>

Also, you can create new package with dependencies, e.g.

roscreate-pkg yourProjectName mrpt_common mrpt_slam mrpt_hwdrivers

After package name you should list all dependecies. Hope this will be useful.

edit flag offensive delete link more
2

answered 2012-03-29 12:53:58 -0500

updated 2012-03-29 12:55:32 -0500

CaptainTrunky is right, you should just add one line to your manifest.xml.

But the correct package to depend on is mrpt_libs, which exports the required {c,l}flags. So it would be like:

<depend package="mrpt_libs"/>


Cheers!

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: 2011-10-12 15:09:04 -0500

Seen: 1,748 times

Last updated: Mar 29 '12