28 obj.
sensedData.at(0).sensedDistance = msg.range;
34 sensor_msgs::Range* msg)
39 for (
long i = 0; i < num_range; i++) msg[i].
header = msg_header;
42 for (
long i = 0; i < num_range; i++)
52 for (
long i = 0; i < num_range; i++)
53 msg[i].range = obj.
sensedData.at(i).sensedDistance;
Declares a class derived from "CObservation" that encapsules a single range measurement, and associated parameters.
float minSensorDistance
The data members.
float sensorConeApperture
Cone aperture of each ultrasonic beam, in radians.
nv_oem6_header_t header
Novatel frame: NV_OEM6_BESTPOS.
bool toROS(const mrpt::obs::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" fie...
ROS message: http://docs.ros.org/api/sensor_msgs/html/msg/NavSatFix.html MRPT message: https://github...
bool fromROS(const sensor_msgs::NavSatFix &msg, mrpt::obs::CObservationGPS &obj)
Convert sensor_msgs/NavSatFix -> mrpt::obs::CObservationGPS.
TMeasurementList sensedData
All the measurements.