modular_robot

Classes and functions to describe and work with modular robots as used in the CI Group at VU Amsterdam.

Subpackages

Package Contents

Classes

ModularRobot

A module robot consisting of a body and brain.

ModularRobotControlInterface

Interface for controlling modular robots.

class ModularRobot(body: modular_robot.body.base.Body, brain: modular_robot.brain.Brain)

A module robot consisting of a body and brain.

property uuid: uuid.UUID

Get the uuid, used for identification.

Returns:

The uuid.

body: modular_robot.body.base.Body
brain: modular_robot.brain.Brain
class ModularRobotControlInterface

Bases: abc.ABC

Inheritance diagram of modular_robot.ModularRobotControlInterface

Interface for controlling modular robots.

abstract set_active_hinge_target(active_hinge: modular_robot.body.base.ActiveHinge, target: float) None

Set the position target for an active hinge on the modular robot.

Parameters:
  • active_hinge – The active hinge object to set the target for.

  • target – The target value to set.