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.1.1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3884c14a1d2147ca1457c7fe681a26b6e0409b2aeefe50e40ec881371a736b18 |
|
MD5 | 5f220048e89c712b21a3e99bb4ef58e2 |
|
BLAKE2b-256 | 9b7699aaf2e5cc14dfb39574396e4077005259840634ae75db9532a3d3bdf135 |
Hashes for revolve2_ci_group-1.1.1-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbbbb80f7e075a816ff2830c8ff3bf7bb7cff47987a0d5b93cbe366ec820447c |
|
MD5 | f484f0b772238eac49abfac9289e4b17 |
|
BLAKE2b-256 | 23abbff173c0abd7d203477d3e74d500751b61c3a1d2c65743416297c5674882 |
Hashes for revolve2_ci_group-1.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b310d54325ecbf0445355c8a2db755226fe63ff1010b9507f4f836658ff2000e |
|
MD5 | 177c3f47351b22f22a02906ff2bd2857 |
|
BLAKE2b-256 | 48cc3b6aa995557afb9007d04e49125a28932659f0980a885fb3e18e21a6b7a5 |
Hashes for revolve2_ci_group-1.1.1-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 237703d1b1939e3fa4f5ac719aa5ed946856a68b903ac87ed02c71cb8bbcc9bb |
|
MD5 | a19cd975aaa41f7d17599fabffd76fc9 |
|
BLAKE2b-256 | 19cb92e1206d567962b0cf2317f5599614ab26aba3b3747957414454ebfa79e2 |
Hashes for revolve2_ci_group-1.1.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02df27d1bfdc676ae10266af0e32a4383b037ee0aed4a0cf0ca4fe08e2448b41 |
|
MD5 | d745025fc3c81f7c6cf72ef42feca789 |
|
BLAKE2b-256 | 9b9459fa1987ff80c3b07924ee343de2c03590c45fe5c92023f2cf53d3d0137d |
Hashes for revolve2_ci_group-1.1.1-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f3f6a33acce6da5e00009973256ed9d294c4cbd3c88e343fa9434928098b5d2 |
|
MD5 | 87ca131364982a7d2f59441fe368a4c6 |
|
BLAKE2b-256 | af384a488c7322399bfa661f65cd955dbd7c19581c7779f6bbbd98a938425918 |
Hashes for revolve2_ci_group-1.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15bb29f6a951b64a8d03b304ab4f3f92143b03ff45ffc2fe9b2187a34b3475de |
|
MD5 | b1562dc0391006481a8d2c0936ed6da5 |
|
BLAKE2b-256 | 6793ec0d6952ffd65f959a921a044f384d4e92742607d0b60b9fc194a47c9b3e |
Hashes for revolve2_ci_group-1.1.1-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7775ee432e70d8a3e396718f4e5b7cd5711032fa2f5ea882c3ede297f8af107a |
|
MD5 | c37c9210e910b88fafdad8298d5fadea |
|
BLAKE2b-256 | a4a252481d491ffccf819690ce4e65a59e61ae0fb23191675e8ba8fa48261d6b |