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

Revision history [back]

click to hide/show revision 1
initial version

For ROS message types, your observation is correct; the include file name is the package name and the message name.

Most packages will put their functions in a C++ namespace that matches the package name, so the namespace that a function is in can often guide you to the right package. (moveit is a common exception to this, but there are also a few others)

Most packages have a "Code API" link on the right sidebar of the wiki page (see: Navigating the ROS Wiki ). These docs usually include the header name for each function, and more detailed information about how to use each function.

Some packages also have API usage examples directly on their wiki page, or under their Tutorials pages, or on their own website.

You can also use google to search for the function name, which will usually find the Code API docs, or you can search your local disk with the grep command-line tool. (Keep in mind that grep is a simple string-matching program, so you'll have to search for the function name without the namespace, like: grep -r poseToMsgTf /opt/ros/indigo/include , and then you'll have to look through each match to find the one that actually defines the function)