Revolve2: Computational Intelligence Group experimentation tools and standards.
Project description
Revolve2
Revolve2 is a collection of Python packages used for researching evolutionary algorithms and modular robotics. Its primary features are a modular robot framework, an abstraction layer around physics simulators, and evolutionary algorithms.
Documentation: ci-group.github.io/revolve2
Installation: ci-group.github.io/revolve2/installation
Get help: github.com/ci-group/revolve2/discussions/categories/ask-for-help
Sample
Here we create and simulate a modular robot, and then calculate how far it moved over the xy plane. This is a shortened version of examples/evaluate_single_robot
.
# (...) Omitted preamble
# Create a modular robot.
body = modular_robots_v1.gecko_v1()
brain = BrainCpgNetworkNeighborRandom(body=body, rng=rng)
robot = ModularRobot(body, brain)
# Create a scene.
scene = ModularRobotScene(terrain=terrains.flat())
scene.add_robot(robot)
# Create a simulator.
simulator = LocalSimulator(headless=False)
# Simulate the scene and obtain states sampled during the simulation.
scene_states = simulate_scenes(
simulator=simulator,
batch_parameters=make_standard_batch_parameters(),
scenes=scene,
)
# Get the state at the beginning and end of the simulation.
scene_state_begin = scene_states[0]
scene_state_end = scene_states[-1]
# Retrieve the states of the modular robot.
robot_state_begin = scene_state_begin.get_modular_robot_simulation_state(robot)
robot_state_end = scene_state_end.get_modular_robot_simulation_state(robot)
# Calculate the xy displacement of the robot.
xy_displacement = fitness_functions.xy_displacement(
robot_state_begin, robot_state_end
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for revolve2_ci_group-1.0.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ab1c13a382bcb259b010d761bf145670579159a9dc73eddf8973a7816ee93eb |
|
MD5 | d2dfbf42ad05c29827c1fc4d3254448a |
|
BLAKE2b-256 | 326efc977ed675612616700754f13c817db3e92222e3cb5287aced2481f38341 |
Hashes for revolve2_ci_group-1.0.0-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85517f1e9d72558f3c4da4ac03e90341b662608c73d8135b863ee96a5bcbd3be |
|
MD5 | eb490e120675653017887df1d45a8ede |
|
BLAKE2b-256 | 3af74ed7d5aed52670fc93b15771383f8c7ee0ca0cc9658f58f45b1c63985c09 |
Hashes for revolve2_ci_group-1.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec9e879aa190fab08350124a4b32d3bf7458811890e2c3089b00a68575fda3ea |
|
MD5 | d33ba2c5c8d92867c9832f235872b475 |
|
BLAKE2b-256 | 615ed8727d5aad4830eaa19a09f3a19c2b711a286a0a2d83a4b16c9fb3c9030d |
Hashes for revolve2_ci_group-1.0.0-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab1ea61212f6aaf653f60d68633abffa63b3a15dd7c6c6432399032f3b74d33a |
|
MD5 | 226dcde23dd0f9345a903c29fd4748c4 |
|
BLAKE2b-256 | f30b85916beb759f994af652d2678d0f875bd1a274f8c275a447ce43889155ba |
Hashes for revolve2_ci_group-1.0.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0bd2379002fb8c3d833fe2ba8dbb51a4c769b88e2a9e02648a41704469712e5 |
|
MD5 | 035d3a3b63524da4bef8200814154fc3 |
|
BLAKE2b-256 | e15656ee8cf063c3c3250419ed51b81d63ebfe397b3f3fc2fe6cf4dd7b1ec320 |
Hashes for revolve2_ci_group-1.0.0-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a94d9b035c2e62cd6981f007d8a8de8fdd36e87476c34272f891bfaf69753fc3 |
|
MD5 | 7ef85b8ad6d1d409f36f0c4c828ee701 |
|
BLAKE2b-256 | e5782bc34a256b80a64ce15d64d09b938f967ea4b5ffd0fdc524ea2adacec2f5 |
Hashes for revolve2_ci_group-1.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 329f81a98b003d6d4a81dbf7cd41ba20b955f6b1b56975e223f0d988e7683b7b |
|
MD5 | 6db10316231d2a5ea159560c0b54ce15 |
|
BLAKE2b-256 | 2f0ac9c237eaac86c687e698440b430f696f57dc73c0af03022a8773adb77334 |
Hashes for revolve2_ci_group-1.0.0-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eaba8aac94c52d19a8098d3a9d9df1eece5d03110db5f0d1fe2d82450d028966 |
|
MD5 | fc619d8f55d36224d4b35f0806cab914 |
|
BLAKE2b-256 | 5e44f0e54a17e78e638e27e99a8bb7d06cc8ec97656c91dfff1d7c2845978f19 |