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

I found the answer, here it is:

#include <custom_msgs/gnssSample.h>

and for callBack:

 void gnssCallback(const custom_msgs::gnssSample::ConstPtr& msg) {

also don't forget to add "custom_msgs" to CMakeLists.txt of your package:

find_package(catkin REQUIRED COMPONENTS
.
.
custom_msgs