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.2-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e41c4ba083295093141f856210dcc9e37120f427939492c3ce9a94678713d7fa |
|
MD5 | 7bb8f5f8f966e24d1427c52dfde97238 |
|
BLAKE2b-256 | 44c077499f3b1fba9fc814d946cacca74112576ab8efa0e43f9a7c55a743d61a |
Hashes for revolve2_ci_group-1.0.2-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5900f18ce0178a13c43e34d6163d32d1ba7396f7718d57baa29d9758f88b70a8 |
|
MD5 | 6261123f48adcadc0b121e80e5373b1b |
|
BLAKE2b-256 | caab234623310331559896bed8cc43f569ef52608ba6372121b2cdbcd3fd0fe3 |
Hashes for revolve2_ci_group-1.0.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c6e626fb44e05635c5203d2e6c8331049ebf89de9f568b8007e189db8f67c6b |
|
MD5 | e918d42fd33e0f6c2bd0e8dd78c2bdf1 |
|
BLAKE2b-256 | b06983bee89be6c7c606dfa9e10f3b4cadedea8c65f5cced3064b9aca0126e3f |
Hashes for revolve2_ci_group-1.0.2-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3d9842fe5743934121d9a701935d35c61ad9194e975df51a6c690d037743380 |
|
MD5 | 2b2ed292f2e7992ea89ef7898168e42c |
|
BLAKE2b-256 | 0d653b79096f7a6ebd6e7f637a817ab94f481bbcc156eb930ceb55d608e1cacf |
Hashes for revolve2_ci_group-1.0.2-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b0bc5e9461cffe72087c2fe2c0f1e38aa5619173c085e4baff6399a1d065705 |
|
MD5 | 2d436e37df746aa199443ea5dcb484ab |
|
BLAKE2b-256 | bf08a1ac3ecf88d91f3cc08080117b449b5389b2379b87bc4f0b92e655c5faea |
Hashes for revolve2_ci_group-1.0.2-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62a2f02b7dcc3a589c8f4431383c225077fe0fb362df8de213f4eabce14dc730 |
|
MD5 | f63ebbc540b7125e3b2b6256f2a8390b |
|
BLAKE2b-256 | a5e42a670ef424dd24cddc28913b203e13a736665548a43bfa23d60dbbabcd03 |
Hashes for revolve2_ci_group-1.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67aa43706ea84cdc3f32075421db0c8cd175853b0207e79f00f15a85541202ff |
|
MD5 | b7fd5d317f2d6494f02f5029d51ad7aa |
|
BLAKE2b-256 | 6f0bf6dde5579798148a766cd0d1f3cb3308a29a6b74a88f4af9f051d149d8d2 |
Hashes for revolve2_ci_group-1.0.2-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbae323098f5a50d11079ed738ebafb739becdc5ab7058e8b5562b08b2fc1ec5 |
|
MD5 | 02e3a0de8c16fada832f99c001044b46 |
|
BLAKE2b-256 | a0e61adf4904462bfe4e45dead58af4e8caf68f48738652c9ab1982806358121 |