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

why do we need roslib.load_manifest?

asked 2014-04-30 09:37:14 -0600

uzair gravatar image

I was going through the numpy tutorials and found import roslib; roslib.load_manifest('YOUR_PACKAGE_NAME') in the beginning of the publisher and subscriber code. I never saw them while following the tutorials for publisher and subscriber for ros hydro. What is the need for rosblib.load_manifest?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-04-30 15:24:17 -0600

In large projects, your code might depend on many external packages. A manifest contain meta-information about what your software is doing and how to set it up. The documentation is quite exhaustive on the topic: wiki.ros.org/Manifest

Practically speaking, you can very well just "import roslib; import rospy" and your code will still work. You might however want to think of writing a manifest as soon as you start depending on other libraries and want to share you code with other people.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-04-30 09:37:14 -0600

Seen: 800 times

Last updated: Apr 30 '14