ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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