16 #include <geometry_msgs/Pose.h> 19 #include <mrpt_msgs/ObservationRangeBearing.h> 24 #include <mrpt/version.h> 25 #include <mrpt/obs/CObservationBearingRange.h> 48 convert(_msg.sensor_pose_on_robot, cpose_obj);
56 ASSERT_(_msg.sensed_data.size() >= 1);
57 const size_t N = _msg.sensed_data.size();
61 for (std::size_t i_mrpt = 0; i_mrpt < N; i_mrpt++)
63 _obj.
sensedData[i_mrpt].range = _msg.sensed_data[i_mrpt].range;
64 _obj.
sensedData[i_mrpt].landmarkID = _msg.sensed_data[i_mrpt].id;
65 _obj.
sensedData[i_mrpt].yaw = _msg.sensed_data[i_mrpt].yaw;
66 _obj.
sensedData[i_mrpt].pitch = _msg.sensed_data[i_mrpt].pitch;
79 convert(cpose_obj, _msg.sensor_pose_on_robot);
90 _msg.sensed_data.resize(N);
92 for (std::size_t i_msg = 0; i_msg < N; i_msg++)
94 _msg.sensed_data[i_msg].range = _obj.
sensedData[i_msg].range;
95 _msg.sensed_data[i_msg].id = _obj.
sensedData[i_msg].landmarkID;
96 _msg.sensed_data[i_msg].yaw = _obj.
sensedData[i_msg].yaw;
97 _msg.sensed_data[i_msg].pitch = _obj.
sensedData[i_msg].pitch;
File includes methods for converting CNetworkOfPoses*DInf <=> NetworkOfPoses message types...
TMeasurementList sensedData
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