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.2.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | addab57cee1241f1b410ad29df4c813437c48fa2997ada978cc1d5abe232e5c4 |
|
MD5 | 89d408bc532cecbc0ad97ed03fec4d09 |
|
BLAKE2b-256 | 974622f4143edd82a6add147601e84a80a39dae11fd60b89300566e3e53f2365 |
Hashes for revolve2_ci_group-1.2.0-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1cc68f3936066275b5c360d05a539b1943e972800e79ccf787aed4e74478eb4b |
|
MD5 | 76da2c3cb1fe28de641b91c739a79aa7 |
|
BLAKE2b-256 | ac7878e914f2b55a2e4012333d849bc8912ea55bd2560f8dbe1276cfeeef8e32 |
Hashes for revolve2_ci_group-1.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e34b600fcc8dbde6b3760c62ebce352bac8f70ac48307038671d5b0a9936e028 |
|
MD5 | 4d79971c63cac5532be10485dfe2a42f |
|
BLAKE2b-256 | d73dd1ee8bfc14da1b7fda247633bc78811125853a4adf282a2bba99dc3d7c76 |
Hashes for revolve2_ci_group-1.2.0-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a22e5601ebf175274d0f3cfd8fc82bf98a97b46f49a1997788b93d7841bf1ee0 |
|
MD5 | 302e9a3e6adc9930d385589c862918a1 |
|
BLAKE2b-256 | 60696fa90a511a5201b2b4f7f1c5b834e3e195680909edb092b871cd68ca2da6 |
Hashes for revolve2_ci_group-1.2.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8667e8c753bd03d00cb705d8f061ff82e4504e248cc42e5f9747245ca95bd273 |
|
MD5 | 3fb275297daa213c842c0f564c462da4 |
|
BLAKE2b-256 | ac06dbfc304bfc4132a1c22f53b91c8fdf7bb3789b6e54f65b10eb027f93ac46 |
Hashes for revolve2_ci_group-1.2.0-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 898d504aad4ee92ee4b5723a520cf15ab435323919471030a1c9f0c768ee15cd |
|
MD5 | 636e5bd95688d28bacbf70ac6f8c0c97 |
|
BLAKE2b-256 | 700a89c62108416ec8b0106aa4a50f1ebeb439a0ca728c0578f49745ec693e6b |
Hashes for revolve2_ci_group-1.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | afd238f0376e93166c18cf12ab58313313502339de3883276f6090d8b42febfc |
|
MD5 | 07646cc27b919764fd54ed5a8a2f55cc |
|
BLAKE2b-256 | 18c32915f34baa4174fdf3db7a55f5904b13d3120cc92e54288a70f65a0cc978 |
Hashes for revolve2_ci_group-1.2.0-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e35b540c00e9dab5f9baaacf306443092bbe0b7c09101e4d21dc3ec28f9fb43e |
|
MD5 | 0bfa60b4d06ce5d660e8170e222fce4f |
|
BLAKE2b-256 | 7ac0f8be186c581ec4be2e060771d5c713ea6869f34d9be81639e5aa286342aa |