parameters: (self)
docstring: Function to actually send the collected ROS messages out via the publisher
  
          :return:
docstring_summary: Function to actually send the collected ROS messages out via the publisher
docstring_tokens: Function to actually send the collected ROS messages out via the publisher
function: def send_msgs(self):
          """
          Function to actually send the collected ROS messages out via the publisher
  
          :return:
          """
          # prepare tf message
          tf_msg = TFMessage(self.tf_to_publish)
          try:
              self.publishers['tf'].publish(tf_msg)
          except rospy.ROSSerializationException as error:
              rospy.logwarn("Failed to serialize message on publishing: {}".format(error))
          except Exception as error:  # pylint: disable=broad-except
              rospy.logwarn("Failed to publish message: {}".format(error))
  
          for publisher, msg in self.msgs_to_publish:
              try:
                  publisher.publish(msg)
              except rospy.ROSSerializationException as error:  # pylint: disable=broad-except
                  rospy.logwarn("Failed to serialize message on publishing: {}".format(error))
              except Exception as error:  # pylint: disable=broad-except
                  rospy.logwarn("Failed to publish message: {}".format(error))
          self.msgs_to_publish = []
          self.tf_to_publish = []
function_tokens: def send_msgs ( self ) : # prepare tf message tf_msg = TFMessage ( self . tf_to_publish ) try : self . publishers [ 'tf' ] . publish ( tf_msg ) except rospy . ROSSerializationException as error : rospy . logwarn ( "Failed to serialize message on publishing: {}" . format ( error ) ) except Exception as error : # pylint: disable=broad-except rospy . logwarn ( "Failed to publish message: {}" . format ( error ) ) for publisher , msg in self . msgs_to_publish : try : publisher . publish ( msg ) except rospy . ROSSerializationException as error : # pylint: disable=broad-except rospy . logwarn ( "Failed to serialize message on publishing: {}" . format ( error ) ) except Exception as error : # pylint: disable=broad-except rospy . logwarn ( "Failed to publish message: {}" . format ( error ) ) self . msgs_to_publish = [ ] self . tf_to_publish = [ ]