Skip to content

Commit

Permalink
fake talker 向视觉伺服发送假消息,保证云台稳定
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin970822 committed Apr 1, 2018
1 parent aaf2d94 commit 7c51062
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/fake_talker.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,15 @@
def talker():
pub = rospy.Publisher('armor_detection', ArmorDetection, queue_size=10)
rospy.init_node('fake_talker', anonymous=True)
rate = rospy.Rate(100) # 100hz
rate = rospy.Rate(71) # 100hz
while not rospy.is_shutdown():
rospy.loginfo(hello_str)
fake_talker = ArmorDetection()
fake_talker.kind = "Fake News"
fake_talker.x1 = 0.5
fake_talker.x2 = 0.5
fake_talker.y1 = 0.5
fake_talker.y2 = 0.5
pub.publish(fake_talker)
rate.sleep()

if __name__ == '__main__':
Expand Down

0 comments on commit 7c51062

Please sign in to comment.