Hi everyone
In every piece of code, be it on the wiki or forums, everyone seems to automatically know what .h files to include for whatever ROS functionality they are using, be it some special nodes, services, messages, functions, whatever. I have no idea how to find what I should include. What is the key??
Say I want to write code such as in [Writing a tf listener (C++)](http://wiki.ros.org/tf/Tutorials/Writing%20a%20tf%20listener%20(C%2B%2B)) tutorial. How do I deduce that "tf/transform_listener.h" exists and I want to use it? Or what should I include if I want to use code from an answer relevant to what I currently do:
tf::Pose pose;
tf::poseMsgToTF(odom->pose.pose, pose);
double yaw_angle = tf::getYaw(pose.getRotation());
The only principle I have found so far is to include exact message type with .h, e.g.
#include "nav_msgs/OccupancyGrid.h"
So how does everyone do it?
↧