::DDS::ReturnCode_t ROSDDS::MsgDataReader_impl::check_preconditions( ROSDDS::MsgSeq & received_data, ::DDS::SampleInfoSeq & info_seq, ::DDS::Long max_samples) { ::DDS::ReturnCode_t status = ::DDS::RETCODE_PRECONDITION_NOT_MET; if ( received_data.length() == info_seq.length() && received_data.maximum() == info_seq.maximum() && received_data.release() == info_seq.release() ) { if ( received_data.maximum() == 0 || received_data.release() ) { if (received_data.maximum() == 0 || max_samples <= static_cast<DDS::Long>(received_data.maximum()) || max_samples == ::DDS::LENGTH_UNLIMITED ) { status = ::DDS::RETCODE_OK; } } } return status; }
::DDS::ReturnCode_t geometry_msgs::msg::dds_::PoseWithCovariance_DataReader_impl::check_preconditions( geometry_msgs::msg::dds_::PoseWithCovariance_Seq & received_data, ::DDS::SampleInfoSeq & info_seq, ::DDS::Long max_samples) { ::DDS::ReturnCode_t status = ::DDS::RETCODE_PRECONDITION_NOT_MET; if ( received_data.length() == info_seq.length() && received_data.maximum() == info_seq.maximum() && received_data.release() == info_seq.release() ) { if ( received_data.maximum() == 0 || received_data.release() ) { if (received_data.maximum() == 0 || max_samples <= static_cast<DDS::Long>(received_data.maximum()) || max_samples == ::DDS::LENGTH_UNLIMITED ) { status = ::DDS::RETCODE_OK; } } } return status; }
::DDS::ReturnCode_t rcl_interfaces::srv::dds_::Sample_SetParameters_Request_DataReader_impl::check_preconditions( rcl_interfaces::srv::dds_::Sample_SetParameters_Request_Seq & received_data, ::DDS::SampleInfoSeq & info_seq, ::DDS::Long max_samples) { ::DDS::ReturnCode_t status = ::DDS::RETCODE_PRECONDITION_NOT_MET; if ( received_data.length() == info_seq.length() && received_data.maximum() == info_seq.maximum() && received_data.release() == info_seq.release() ) { if ( received_data.maximum() == 0 || received_data.release() ) { if (received_data.maximum() == 0 || max_samples <= static_cast<DDS::Long>(received_data.maximum()) || max_samples == ::DDS::LENGTH_UNLIMITED ) { status = ::DDS::RETCODE_OK; } } } return status; }
DDS::ReturnCode_t PoseWithCovarianceDataReader_impl::check_preconditions( PoseWithCovarianceSeq & received_data, DDS::SampleInfoSeq & info_seq, CORBA::Long max_samples) { DDS::ReturnCode_t status = DDS::RETCODE_PRECONDITION_NOT_MET; if ( received_data.length() == info_seq.length() && received_data.maximum() == info_seq.maximum() && received_data.release() == info_seq.release() ) { if ( received_data.maximum() == 0 || received_data.release() ) { if (received_data.maximum() == 0 || max_samples <= static_cast<CORBA::Long>(received_data.maximum()) || max_samples == DDS::LENGTH_UNLIMITED ) { status = DDS::RETCODE_OK; } } } return status; }