def publishPosition(self):
msg = PointStamped()
msg.header.stamp = rospy.Time.now()
msg.header.frame_id = self.frame
msg.point = Point(self.position[0], self.position[1], 0)
self.publisher.publish(msg)
评论列表
文章目录