def publish_particles(self, particles): """ Helper function for publishing a pose array of particles particles: To particles to publish """ pa = PoseArray() pa.header = utils.make_header("map") pa.poses = utils.particles_to_poses(particles) self.particle_pub.publish(pa)
def publish_particles(self, particles): pa = PoseArray() pa.header = Utils.make_header("map") pa.poses = Utils.particles_to_poses(particles) self.particle_pub.publish(pa)
def poses_to_posearray(self): msg = PoseArray() msg.header = Utils.make_header('map') msg.poses = Utils.particles_to_poses(self.pose) return msg
def publish_particles(self, particles): # publish the given particles as a PoseArray object pa = PoseArray() pa.header = Utils.make_header("map") pa.poses = Utils.particles_to_poses(particles) self.particle_pub.publish(pa)