how to use the sensor_msgs/NavSatStatus ?
Hai,
I am trying to send a fake GPS position from MAVROS to pixhawk for non_gps navigation using optical flow. I'm using - "sensor_msgs/NavSatFix" for giving lat, long & alt. as per this page - http://docs.ros.org/api/sensor_msgs/h...
And in the documentation, it is shown we can get a status of it by using "sensor_msgs/NavSatStatus". as per this page - http://docs.ros.org/api/sensor_msgs/h...
but I get the following error when I use "sensor_msgs/NavSatStatus":-
ROS_INFO("status = %d", sensor_msgs.NavSatStatus.status); (this is my line of code)
error: expected primary-expression before ‘.’ token
I guess I am not understanding how to use "sensor_msgs/NavSatStatus", I don't get why this error is coming. any help in this is appreciated!
Thanks!