10 #include <geometry_msgs/Pose.h> 13 #include <mrpt_msgs/ObservationRangeBeacon.h> 18 #include <mrpt/version.h> 19 #include <mrpt/obs/CObservationBeaconRanges.h> 31 _obj.
stdError = _msg.sensor_std_range;
38 convert(_msg.sensor_pose_on_robot, cpose_obj);
46 ASSERT_(_msg.sensed_data.size() >= 1);
47 const size_t N = _msg.sensed_data.size();
51 for (std::size_t i_mrpt = 0; i_mrpt < N; i_mrpt++)
53 _obj.
sensedData[i_mrpt].sensedDistance = _msg.sensed_data[i_mrpt].range;
54 _obj.
sensedData[i_mrpt].beaconID = _msg.sensed_data[i_mrpt].id;
67 convert(cpose_obj, _msg.sensor_pose_on_robot);
69 _msg.sensor_std_range = _obj.
stdError;
77 _msg.sensed_data.resize(N);
79 for (std::size_t i_msg = 0; i_msg < N; i_msg++)
81 _msg.sensed_data[i_msg].range = _obj.
sensedData[i_msg].sensedDistance;
82 _msg.sensed_data[i_msg].id = _obj.
sensedData[i_msg].beaconID;
std::deque< TMeasurement > sensedData
mrpt::system::TTimeStamp timestamp
File includes methods for converting CNetworkOfPoses*DInf <=> NetworkOfPoses message types...
bool convert(const mrpt_msgs::ObservationRangeBeacon &_msg, const mrpt::poses::CPose3D &_pose, mrpt::obs::CObservationBeaconRanges &_obj)
void setSensorPose(const mrpt::poses::CPose3D &newSensorPose) MRPT_OVERRIDE
void getSensorPose(mrpt::poses::CPose3D &out_sensorPose) const MRPT_OVERRIDE