30 template <
class OBSERVATION_T>
35 using obs_t =
typename OBSERVATION_T::Ptr;
43 &OBSERVATION_T::GetRuntimeClassIdStatic();
44 if (observation && observation->GetRuntimeClass()->derivedFrom(class_ID))
46 cobs_ptr = std::dynamic_pointer_cast<OBSERVATION_T>(observation);
52 cobs_ptr = observations->getObservationByClass<OBSERVATION_T>();
56 if (cobs_ptr && sf_ptr)
58 obs_out = priority_to_sf ? sf_ptr : cobs_ptr;
70 obs_out =
typename OBSERVATION_T::Ptr();
A structure that holds runtime class type information.
OBSERVATION_T::Ptr getObservation(mrpt::obs::CSensoryFrame::Ptr &observations, mrpt::obs::CObservation::Ptr &observation, bool priority_to_sf=true)
Given an mrpt::obs::CSensoryFrame and a mrpt::obs::CObservation pointer if a OBSERVATION_T type obser...