from sdfbuilder import Pose from sdfbuilder.math import Vector3 import random import csv import itertools import logging # Add "tol" directory to Python path sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/../') from tol.config import parser from tol.manage import World from tol.logging import logger, output_console # Log output to console output_console() logger.setLevel(logging.DEBUG) # Add offline evolve arguments parser.add_argument('--population-size', default=10, type=int, help="Population size in each generation.") parser.add_argument('--num-children', default=10, type=int, help="The number of children produced in each generation.") parser.add_argument( '--keep-parents',
import trollius from trollius import From, Return, Future from pygazebo.msg.request_pb2 import Request # Revolve / sdfbuilder from sdfbuilder.math import Vector3 from sdfbuilder import Pose, Model, Link, SDF # ToL from tol.config import parser from tol.manage import World from tol.logging import logger, output_console from revolve.util import multi_future # Log output to console output_console() logger.setLevel(logging.DEBUG) parser.add_argument("-s", "--seed", default=-1, help="Supply a random seed", type=int) parser.add_argument("-n", "--num-initial-bots", default=3, help="Number of initial bots", type=int) parser.add_argument("-f", "--fast", help="Short reproduction wait.", action="store_true") parent_color = (1, 0, 0, 0.5) child_color = (0, 1, 0, 0.5) insert_z = 1.5