List iteration, creation, or comprehension
def make_pose(pt):
    pose = Pose2D()
    pose.theta = 0
    pose.x, pose.y = pt
    return pose

poses = [make_pose(pt) for pt in get_points(spline)]


Alternatively, you could subclass Pose2D to give it an appropriate constructor.