28 CObservationRange &obj) {
29 obj.minSensorDistance = msg.min_range;
30 obj.maxSensorDistance = msg.max_range;
31 obj.sensorConeApperture = msg.field_of_view;
34 obj.sensedData.at(0).sensedDistance = msg.range;
43 sensor_msgs::Range *msg)
45 long num_range = obj.sensedData.size();
48 for(
int i=0 ; i<num_range ; i++)
49 msg[i].
header = msg_header;
52 for(
int i=0 ; i<num_range ; i++)
54 msg[i].max_range = obj.maxSensorDistance;
55 msg[i].min_range = obj.minSensorDistance;
56 msg[i].field_of_view = obj.sensorConeApperture;
61 for (
int i = 0; i < num_range; i++)
62 msg[i].range = obj.sensedData.at(i).sensedDistance;
bool mrpt2ros(const CObservationGPS &obj, const std_msgs::Header &msg_header, sensor_msgs::NavSatFix &msg)
File includes methods for converting CNetworkOfPoses*DInf <=> NetworkOfPoses message types...
bool ros2mrpt(const sensor_msgs::NavSatFix &msg, CObservationGPS &obj)