mrpt_bridge::GPS Namespace Reference


bool mrpt2ros (const CObservationGPS &obj, const std_msgs::Header &msg_header, sensor_msgs::NavSatFix &msg)
bool ros2mrpt (const sensor_msgs::NavSatFix &msg, CObservationGPS &obj)

Function Documentation

bool mrpt_bridge::GPS::mrpt2ros ( const CObservationGPS &  obj,
const std_msgs::Header &  msg_header,
sensor_msgs::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.

Since COnservationGPS does not contain "position_covariance" and "position_covariance_type" sensor_msgs::NavSatFix::position_covariance_type and sensor_msgs::NavSatFix::position_covariance will be empty.

true on sucessful conversion, false on any error.

following parameter assigned as per

position_covariance is not available in mrpt position_covariance type is not available in mrpt

Definition at line 56 of file GPS.cpp.

bool mrpt_bridge::GPS::ros2mrpt ( const sensor_msgs::NavSatFix &  msg,
CObservationGPS &  obj 

Convert sensor_msgs/NavSatFix -> mrpt::obs::CObservationGPS

true on sucessful conversion, false on any error.

Definition at line 24 of file GPS.cpp.

Author(s): Markus Bader , Raphael Zack
autogenerated on Mon Sep 18 2017 03:12:06