Skip to main content

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

DOI License: LGPL v3 CI

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

revolve2_ci_group-1.2.1-cp311-cp311-win_amd64.whl (195.9 kB view details)

Uploaded CPython 3.11 Windows x86-64

revolve2_ci_group-1.2.1-cp311-cp311-musllinux_1_1_x86_64.whl (984.1 kB view details)

Uploaded CPython 3.11 musllinux: musl 1.1+ x86-64

revolve2_ci_group-1.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (973.4 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

revolve2_ci_group-1.2.1-cp311-cp311-macosx_12_0_x86_64.whl (380.1 kB view details)

Uploaded CPython 3.11 macOS 12.0+ x86-64

revolve2_ci_group-1.2.1-cp310-cp310-win_amd64.whl (120.6 kB view details)

Uploaded CPython 3.10 Windows x86-64

revolve2_ci_group-1.2.1-cp310-cp310-musllinux_1_1_x86_64.whl (511.4 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

revolve2_ci_group-1.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (502.7 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

revolve2_ci_group-1.2.1-cp310-cp310-macosx_12_0_x86_64.whl (211.4 kB view details)

Uploaded CPython 3.10 macOS 12.0+ x86-64

File details

Details for the file revolve2_ci_group-1.2.1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for revolve2_ci_group-1.2.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ddc266ec8e8dc2e0bdf4138b247f8d288f3fec125437d7a0ecf28a3add6fd2d0
MD5 3c58788c3ebc96dbded13acfcff4bb4a
BLAKE2b-256 3c58b2a5159dd22c87e9817e0aee073e0697c958f298fa3468727fee8fb7a4a5

See more details on using hashes here.

File details

Details for the file revolve2_ci_group-1.2.1-cp311-cp311-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for revolve2_ci_group-1.2.1-cp311-cp311-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 48f7f467248906d09e69a5c123573df69e96982d7d1dc02e0e5fb4f218420fa4
MD5 84cedbe0908e141f439c6e042e1626f7
BLAKE2b-256 4ff298617f2068a58983aede6188b793cf3c99693334a068ee2612b894f35714

See more details on using hashes here.

File details

Details for the file revolve2_ci_group-1.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for revolve2_ci_group-1.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bc67822a768ebe313f93d6346e6362737af09c114ca314bfabf93913e4faadeb
MD5 3359405bb2137a028da3e891fe877cd0
BLAKE2b-256 879b54447df04667984eb3c5791c7c1996d50afcb8d72e83164770651863e7ed

See more details on using hashes here.

File details

Details for the file revolve2_ci_group-1.2.1-cp311-cp311-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for revolve2_ci_group-1.2.1-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 34b085604ac91b06470b23c76c25ecf3ba565a7fbf8fbcd3bc34ca5155ea84f9
MD5 4b590727d069debb22132ed3ce422998
BLAKE2b-256 4ed890655effdba7e821f1dc9d67cc34af96a90b059bf62cb44c84632092078b

See more details on using hashes here.

File details

Details for the file revolve2_ci_group-1.2.1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for revolve2_ci_group-1.2.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 229031cdd5d88ab3d45324213438cd5870c1bd6e9fbedbb351d03e43b9d2586c
MD5 f0ee2d7f19b0d40082d7da9e568645b1
BLAKE2b-256 e307d4047b7953e8d55fe5b67c4be471b6528a7357ba28745f9bba52f3351118

See more details on using hashes here.

File details

Details for the file revolve2_ci_group-1.2.1-cp310-cp310-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for revolve2_ci_group-1.2.1-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 3e996da763ef5057170dc95079d5ec891d22d2f05e4c7f8024bd8ca59b9435be
MD5 eb01120d5dc64939c2dbc47707bd2c37
BLAKE2b-256 2d21a0245685648418051e8afc9284dd6477c34993298ec205f9e6e4714179eb

See more details on using hashes here.

File details

Details for the file revolve2_ci_group-1.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for revolve2_ci_group-1.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ebfceb8863c4319dc7ccbb8b41850607ce23d8a2cb4c549d7ec5f5b241b5ff23
MD5 7b8833e11a86e2e62a7f62867f2f9e8b
BLAKE2b-256 5d0ce38712443b869530db7bc3709b17b5166fb0b68a358d3020a110005d7c07

See more details on using hashes here.

File details

Details for the file revolve2_ci_group-1.2.1-cp310-cp310-macosx_12_0_x86_64.whl.

File metadata

File hashes

Hashes for revolve2_ci_group-1.2.1-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm Hash digest
SHA256 077046167897bfd72151de2a29fb5e7258366575db51d749734255a73c101871
MD5 87d4b6df927d5d56c3d21d28b02600d0
BLAKE2b-256 4493b72912b77b672d335f5e66e8d8dc7ca04eeaee70dab877a056d30ab43752

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page