Function mrpt::ros2bridge::toROS(const mrpt::obs::CObservationGPS&, const std_msgs::msg::Header&, sensor_msgs::msg::NavSatFix&)

Function Documentation

bool mrpt::ros2bridge::toROS(const mrpt::obs::CObservationGPS &obj, const std_msgs::msg::Header &msg_header, sensor_msgs::msg::NavSatFix &msg)

Convert mrpt::obs::CObservationGPS -> sensor_msgs/NavSatFix The user must supply the “msg_header” field to be copied into the output message object, since that part does not appear in MRPT classes.

Returns:

true on successful conversion, only if the input observation has a GGA message.