def __init__(self): self.name = "" self.year = 2013 self.pose = pyCarmen.carmen_point_t() self.gps = pyCarmen.carmen_vector_3D_t() self.dataset_file = open("/dados/DIARA/UFES-{0}.csv".format(self.year), "w") self.dataset_file.write("year,timestamp,x,y\n") pyMessageHandler.__init__(self)
def set_pose(self, x, y, theta): pt = pyCarmen.carmen_point_t() pt.x = x pt.y = y pt.theta = theta pyCarmen.carmen_simulator_set_truepose(pt)