Example #1
0
def talker(zero_utm):
    pub = rospy.Publisher('/crw_geopose_pub', GeoPose, queue_size=10)
    rospy.init_node('simple_simulator', anonymous=True)
    rate = rospy.Rate(10) # 10hz
    pp = GeoPose()
    while not rospy.is_shutdown():
        zero_utm.northing -= 0.1
        pp.position = zero_utm.toMsg()
        pub.publish(pp)
        rate.sleep()
Example #2
0
 def clicked_callback(self, msg):
     gpose = self.get_utm_coords([msg.point.x, msg.point.y])
     outmsg = GeoPose()
     outmsg.position = gpose.toMsg()
     self.wp_pub_.publish(outmsg)