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

You seem to be importing a C header and use it as if it was containing C++ classes.

Did you try importing the C++ version of the message instead?

#include "sensor_msgs/msg/nav_sat_fix.hpp"

If you are porting packages from ROS 1, you can refer to this documentation page that provides useful tips for how to update package.xml, header inclusion etc