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.1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebff2e36d1a2ca6c1a387cad957471a558175632ba4d7afc7da41aa6cd0d2d41 |
|
MD5 | b8b58b8aff485b5441510489e0838f59 |
|
BLAKE2b-256 | 4557e8fefb4a0bee5a5eec4cfed1f38e104245181577abd21d781e3aab28b6be |
Hashes for revolve2_ci_group-1.0.1-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8346978a25737f2036a5a91d8d1fe4ddbe81ce60cfd875cabcebc61e13929426 |
|
MD5 | cf14ebafd88a1cd19c187a7d4700c2ca |
|
BLAKE2b-256 | 0f435dd0f7dcc5fe66c074cd0baaa9d4d16fb54fbf0c30e8e0323bbc2f8dc7e7 |
Hashes for revolve2_ci_group-1.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e7ae52e15aaab27274fe3214d33651697e2ed80b13b61646e6003b0d7430690 |
|
MD5 | eebea0a42ea8c3272d0a88f54e61dde0 |
|
BLAKE2b-256 | 366f16e81580f69b0d6018ef3866d547314205580fc0eb11bee3828c1c7f1964 |
Hashes for revolve2_ci_group-1.0.1-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4eb796bfe7035dd5d8e921869f675a4443fbf48f1c1a9ceb522321422c2028ca |
|
MD5 | c1de1b364d744e778bb16c47422d95a2 |
|
BLAKE2b-256 | 3dd5b60cec48bad236986a3dbc0fc3ff3a7f4d4d4a78473c4e0d8d620c597d83 |
Hashes for revolve2_ci_group-1.0.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e225d66008c6eea1038d3723ee8868c89c754a7044261ee68f1a59d76143b909 |
|
MD5 | c6dab8301611c539e59c13f9e561c069 |
|
BLAKE2b-256 | 54538f0db9d6662057bd63129449db7f5f7fddfadc0794d2d8c5b213619955ee |
Hashes for revolve2_ci_group-1.0.1-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e82ea5efdb3937a8551c370eebbf3588f303aedfd8cdb0fe5c8285b792892aa |
|
MD5 | ad823eb8587d26044e10511aadd418b3 |
|
BLAKE2b-256 | 02dace73e77303f05a238d745dea7ef39011ec204b06384b4f8eade3f3d16b1d |
Hashes for revolve2_ci_group-1.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 643d6d457e1ba2a523828056dada937851b343c361c259a6b5f68623daffb6ff |
|
MD5 | d21f475a3fe6155a8146ff69e1036992 |
|
BLAKE2b-256 | d9d9b00153790f4a43262dfbe92b481514c1cc14a4a691c5638ba9a1e4a95efc |
Hashes for revolve2_ci_group-1.0.1-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e4ff0a2c714abac12dd9dca03f6082af84cd240a349721382e8c8151b9de69d |
|
MD5 | 847c94483ca75fa071a3c84953723fad |
|
BLAKE2b-256 | 5f2848cd9cb7fab5711f7bee09b5b403c28af4b1983ef0d27a19c8e0ddc6f5ed |