latch in rospy.publisher code example
Example: latch in rospy.publisher
self._pub = rospy.Publisher("joint/command", Float64, latch=True)
self._pub.publish(45.0)
self._pub = rospy.Publisher("joint/command", Float64, latch=True)
self._pub.publish(45.0)