本文整理汇总了C++中dds::SampleInfoSeq::maximum方法的典型用法代码示例。如果您正苦于以下问题:C++ SampleInfoSeq::maximum方法的具体用法?C++ SampleInfoSeq::maximum怎么用?C++ SampleInfoSeq::maximum使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类dds::SampleInfoSeq
的用法示例。
在下文中一共展示了SampleInfoSeq::maximum方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
::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;
}
示例2:
::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;
}
示例3:
::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;
}
示例4:
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;
}