Example #1
0
sensor_msgs::msg::dds_::Joy_DataWriter_ptr sensor_msgs::msg::dds_::Joy_DataWriter::_narrow (DDS::Object_ptr p)
{
   sensor_msgs::msg::dds_::Joy_DataWriter_ptr result = NULL;
   if (p && p->_is_a (sensor_msgs::msg::dds_::Joy_DataWriter::_local_id))
   {
      result = dynamic_cast < sensor_msgs::msg::dds_::Joy_DataWriter_ptr> (p);
      if (result) result->m_count++;
   }
   return result;
}
proxyPoseStampedTypeSupportInterface_ptr proxyPoseStampedTypeSupportInterface::_narrow (DDS::Object_ptr p)
{
   proxyPoseStampedTypeSupportInterface_ptr result = NULL;
   if (p && p->_is_a (proxyPoseStampedTypeSupportInterface::_local_id))
   {
      result = dynamic_cast < proxyPoseStampedTypeSupportInterface_ptr> (p);
      if (result) result->m_count++;
   }
   return result;
}
proxyPoseStampedDataWriter_ptr proxyPoseStampedDataWriter::_narrow (DDS::Object_ptr p)
{
   proxyPoseStampedDataWriter_ptr result = NULL;
   if (p && p->_is_a (proxyPoseStampedDataWriter::_local_id))
   {
      result = dynamic_cast < proxyPoseStampedDataWriter_ptr> (p);
      if (result) result->m_count++;
   }
   return result;
}
nav_msgs::srv::dds_::Sample_GetPlan_Request_DataWriter_ptr nav_msgs::srv::dds_::Sample_GetPlan_Request_DataWriter::_narrow (DDS::Object_ptr p)
{
   nav_msgs::srv::dds_::Sample_GetPlan_Request_DataWriter_ptr result = NULL;
   if (p && p->_is_a (nav_msgs::srv::dds_::Sample_GetPlan_Request_DataWriter::_local_id))
   {
      result = dynamic_cast < nav_msgs::srv::dds_::Sample_GetPlan_Request_DataWriter_ptr> (p);
      if (result) result->m_count++;
   }
   return result;
}
rcl_interfaces::srv::dds_::Sample_DescribeParameters_Request_DataWriter_ptr rcl_interfaces::srv::dds_::Sample_DescribeParameters_Request_DataWriter::_narrow (DDS::Object_ptr p)
{
   rcl_interfaces::srv::dds_::Sample_DescribeParameters_Request_DataWriter_ptr result = NULL;
   if (p && p->_is_a (rcl_interfaces::srv::dds_::Sample_DescribeParameters_Request_DataWriter::_local_id))
   {
      result = dynamic_cast < rcl_interfaces::srv::dds_::Sample_DescribeParameters_Request_DataWriter_ptr> (p);
      if (result) result->m_count++;
   }
   return result;
}
sensor_msgs::msg::dds_::CompressedImage_TypeSupportInterface_ptr sensor_msgs::msg::dds_::CompressedImage_TypeSupportInterface::_narrow (DDS::Object_ptr p)
{
   sensor_msgs::msg::dds_::CompressedImage_TypeSupportInterface_ptr result = NULL;
   if (p && p->_is_a (sensor_msgs::msg::dds_::CompressedImage_TypeSupportInterface::_local_id))
   {
      result = dynamic_cast < sensor_msgs::msg::dds_::CompressedImage_TypeSupportInterface_ptr> (p);
      if (result) result->m_count++;
   }
   return result;
}
rcl_interfaces::srv::dds_::Sample_GetParameterTypes_Response_TypeSupportInterface_ptr rcl_interfaces::srv::dds_::Sample_GetParameterTypes_Response_TypeSupportInterface::_narrow (DDS::Object_ptr p)
{
   rcl_interfaces::srv::dds_::Sample_GetParameterTypes_Response_TypeSupportInterface_ptr result = NULL;
   if (p && p->_is_a (rcl_interfaces::srv::dds_::Sample_GetParameterTypes_Response_TypeSupportInterface::_local_id))
   {
      result = dynamic_cast < rcl_interfaces::srv::dds_::Sample_GetParameterTypes_Response_TypeSupportInterface_ptr> (p);
      if (result) result->m_count++;
   }
   return result;
}
sensor_msgs::msg::dds_::CompressedImage_DataReaderView_ptr sensor_msgs::msg::dds_::CompressedImage_DataReaderView::_narrow (DDS::Object_ptr p)
{
   sensor_msgs::msg::dds_::CompressedImage_DataReaderView_ptr result = NULL;
   if (p && p->_is_a (sensor_msgs::msg::dds_::CompressedImage_DataReaderView::_local_id))
   {
      result = dynamic_cast < sensor_msgs::msg::dds_::CompressedImage_DataReaderView_ptr> (p);
      if (result) result->m_count++;
   }
   return result;
}
rcl_interfaces::srv::dds_::GetParameterTypes_Response_DataReaderView_ptr rcl_interfaces::srv::dds_::GetParameterTypes_Response_DataReaderView::_narrow (DDS::Object_ptr p)
{
   rcl_interfaces::srv::dds_::GetParameterTypes_Response_DataReaderView_ptr result = NULL;
   if (p && p->_is_a (rcl_interfaces::srv::dds_::GetParameterTypes_Response_DataReaderView::_local_id))
   {
      result = dynamic_cast < rcl_interfaces::srv::dds_::GetParameterTypes_Response_DataReaderView_ptr> (p);
      if (result) result->m_count++;
   }
   return result;
}
Example #10
0
Chat::ChatMessageDataWriter_ptr Chat::ChatMessageDataWriter::_narrow (DDS::Object_ptr p)
{
   Chat::ChatMessageDataWriter_ptr result = NULL;
   if (p && p->_is_a (Chat::ChatMessageDataWriter::_local_id))
   {
      result = dynamic_cast < Chat::ChatMessageDataWriter_ptr> (p);
      if (result) result->m_count++;
   }
   return result;
}
Example #11
0
Chat::NamedMessageDataReaderView_ptr Chat::NamedMessageDataReaderView::_narrow (DDS::Object_ptr p)
{
   Chat::NamedMessageDataReaderView_ptr result = NULL;
   if (p && p->_is_a (Chat::NamedMessageDataReaderView::_local_id))
   {
      result = dynamic_cast < Chat::NamedMessageDataReaderView_ptr> (p);
      if (result) result->m_count++;
   }
   return result;
}
Example #12
0
Chat::ChatMessageTypeSupportInterface_ptr Chat::ChatMessageTypeSupportInterface::_narrow (DDS::Object_ptr p)
{
   Chat::ChatMessageTypeSupportInterface_ptr result = NULL;
   if (p && p->_is_a (Chat::ChatMessageTypeSupportInterface::_local_id))
   {
      result = dynamic_cast < Chat::ChatMessageTypeSupportInterface_ptr> (p);
      if (result) result->m_count++;
   }
   return result;
}