def talker(): pub = rospy.Publisher('chatter', raven_automove, queue_size=10) rospy.init_node('talker', anonymous=True) r = rospy.Rate(10) # 10hz while not rospy.is_shutdown(): msg = raven_automove() rospy.loginfo(msg) pub.publish(msg) r.sleep()
def talker(): pub = rospy.Publisher('chatter', raven_automove, queue_size=10) rospy.init_node('talker', anonymous=True) r = rospy.Rate(10) # 10hz while not rospy.is_shutdown(): msg=raven_automove() rospy.loginfo(msg) pub.publish(msg) r.sleep()
def callback_ros(data): msg = raven_automove() msg.del_pos[0]=int(data.palmpos.x*1000000) msg.del_pos[1]=int(data.palmpos.y*1000000) msg.del_pos[2]=int(data.palmpos.z*1000000)