blueprints package#
The Blueprints library interfaces the Mujoco (Multi Joints Contact) physics simulation.
To construct a World you can combine many Things
via attachment, while blueprints translates
your construction to xml in the background. Things are differentiated in concrete Things, which
are the onse that you can use directly and abstract classes which implement a utilities for multiple
concrete Things. Abstract Things are mostly located in thing and should not be instantiated directly.
Never the less they contain documentation relevant for many concrete Things, so you might want to
have a look at it. Concrete Things are:
Concrete Things#
Actuators(All butBaseActuator)Geoms(All butBaseGeom)Sites(All butBaseSite)Joints(All butBaseJoint)Textures(All butBaseTexture)Sensors(All but<Thing>Sensor)Tendons(OnlyTendon)
Caches and Assets are handeled in the background, so you don’t
have to create them manually and can most often treat their occurences in ordinary mujoco as
another attachment.
Some helpful Things that are not part of the mujoco XML scheme but that are directly useable by the user are:
Modificators#
Blueprints design is centered around the idea to reduce redundancy, that would be encountered in XML editing. Once you have created some Things you can easily produce on the fly modified copies through many helpful utility methods. We list some of the most important ones.
The copy method in particular can be used to perform all sorts of modifications
by passing the desired changes as keyword arguments.
Kinematic Tree#
To modify the kinematic hierarchy there are some methods and attributes to have a look at:
parentreturns the parent of a Thing. If the Thing has no parent it returnsNone.rootreturns the root of a Things kinematic hierarchy (which might be itself).pathreturns a list containing the path from a Thing to its root.attachattaches copies of any number of Things.detachreverses the effect ofattach.NodeThing.<children_type>returns aViewof the given children type.
Alternatively kinematic trees can also be constructed by passing children as additional arguments to the __init__ of
all concrete NodeThings.
Types#
To enable typesafty restrictions via type hints, the
inheritance hierarchy of Things is mirrored in types.

Subpackages#
- blueprints.thing package
- Submodules
- blueprints.thing.base module
- blueprints.thing.colored module
- blueprints.thing.cyclical module
- blueprints.thing.focal module
- blueprints.thing.moveable module
MoveableThingMoveableThing.__init__()MoveableThing.view()MoveableThing.lattice()MoveableThing.rotation_matrixMoveableThing.global_rotation_matrixMoveableThing.shift()MoveableThing.locate()MoveableThing.rotate()MoveableThing.align()MoveableThing.scaled()MoveableThing.eulerMoveableThing.posMoveableThing.global_posMoveableThing.alphaMoveableThing.betaMoveableThing.gammaMoveableThing.quatMoveableThing.xMoveableThing.yMoveableThing.zMoveableThing.velMoveableThing.x_velMoveableThing.y_velMoveableThing.z_velMoveableThing.angular_vel
- blueprints.thing.node module
- blueprints.thing.unique module
- Submodules
- blueprints.utils package
- User Utilities
- Structural Subroutines
- Backend Functions
- Submodules
- blueprints.utils.geometry module
TAUPIDEGREES_TO_RADIANSRADIANS_TO_DEGREESRotationRotation.XRotation.YRotation.ZRotation.XRotation.YRotation.ZRotation.euler()Rotation.rotate_around_axis()Rotation.global_orientation()Rotation.global_rotation_matrix()Rotation.euler_to_reference_frame()Rotation.reference_frame_to_euler()Rotation.angle()Rotation.N_rot()Rotation.X_rot()Rotation.Y_rot()Rotation.Z_rot()Rotation.E_rot()Rotation.Axis_rot()Rotation.quat_to_euler()Rotation.euler_to_quat()
Vector
- blueprints.utils.lattice module
- blueprints.utils.naming module
- blueprints.utils.perlin module
- blueprints.utils.register module
RegisterRegister.ACTUATOR_THINGSRegister.ASSET_THINGSRegister.assetsRegister.BASIC_THINGSRegister.CACHE_THINGSRegister.cachesRegister.DERIVED_THINGSRegister.GEOM_THINGSRegister.JOINT_THINGSRegister.SENSOR_THINGSRegister.SITE_THINGSRegister.BASIC_THINGSRegister.GEOM_THINGSRegister.SITE_THINGSRegister.JOINT_THINGSRegister.ASSET_THINGSRegister.SENSOR_THINGSRegister.ACTUATOR_THINGSRegister.CACHE_THINGSRegister.DERIVED_THINGSRegister.__init__()Register.get_ID()
- blueprints.utils.typechecker module
- blueprints.utils.view module
- blueprints.utils.geometry module
Submodules#
- blueprints.actuators module
- Force Transmission
- Force Generation
- Usage
BaseActuatorBaseActuator.__init__()BaseActuator.forceBaseActuator.activationBaseActuator.parent_tagBaseActuator.inparentBaseActuator.refsiteBaseActuator.tagBaseActuator.ctrllimitedBaseActuator.forcelimitedBaseActuator.actlimitedBaseActuator.ctrlrangeBaseActuator.forcerangeBaseActuator.actrangeBaseActuator.lengthrangeBaseActuator.gearBaseActuator.cranklengthBaseActuator.dyntypeBaseActuator.gaintypeBaseActuator.biastypeBaseActuator.dynprmBaseActuator.gainprmBaseActuator.biasprm
GeneralMotorPositionVelocityIntVelocityDamperCylinderMuscleAdhesion
- blueprints.agent module
- blueprints.assets module
BaseAssetMaterialAssetTextureAssetTextureAsset.__init__()TextureAsset.typeTextureAsset.content_typeTextureAsset.gridsizeTextureAsset.gridlayoutTextureAsset.rgb1TextureAsset.rgb2TextureAsset.markrgbTextureAsset.hflipTextureAsset.vflipTextureAsset.nchannelTextureAsset.contentTextureAsset.fileTextureAsset.grid_sizeTextureAsset.grid_layoutTextureAsset.filerightTextureAsset.fileleftTextureAsset.fileupTextureAsset.filedownTextureAsset.filefrontTextureAsset.filebackTextureAsset.builtinTextureAsset.color_1TextureAsset.color_2TextureAsset.markTextureAsset.color_markTextureAsset.randomTextureAsset.widthTextureAsset.heightTextureAsset.n_channelTextureAsset.h_flipTextureAsset.v_flip
MeshAssetMeshAsset.builtMeshAsset.cacheMeshAsset.filenameMeshAsset.xml_dataMeshAsset.__init__()MeshAsset.load()MeshAsset.save()MeshAsset.fileMeshAsset.filenameMeshAsset.refposMeshAsset.vertexMeshAsset.faceMeshAsset.texcoordMeshAsset.normalMeshAsset.sizeMeshAsset.scaleMeshAsset.verteciesMeshAsset.faces
HFieldAsset
- blueprints.body module
- blueprints.cache module
BaseCacheMeshCacheMeshCache.builtMeshCache.centeredMeshCache.verteciesMeshCache.texcoordsMeshCache.texcoords_idxMeshCache.normalsMeshCache.face_normalsMeshCache.vertex_normalsMeshCache.normals_idxMeshCache.facesMeshCache.filenameMeshCache.__init__()MeshCache.copy()MeshCache.load()MeshCache.save()MeshCache.fileMeshCache.vertexMeshCache.faceMeshCache.texcoordMeshCache.normalMeshCache.sizeMeshCache.verteciesMeshCache.facesMeshCache.texcoordsMeshCache.texcoords_idxMeshCache.face_normalsMeshCache.vertex_normalsMeshCache.normals_idxMeshCache.vertecies_minMeshCache.vertecies_maxMeshCache.vertecies_center
HFieldCache
- blueprints.camera module
- blueprints.geoms module
- blueprints.joints module
- blueprints.light module
- blueprints.material module
- blueprints.mirrortypes module
PathTypeFunctionHandleTypeViewTypeAllViewTypeLatticeTypeLatticeViewTypeColorTypeThingTypeNodeThingTypeMoveableThingTypeColoredThingTypeCyclicalThingTypeUniqueThingTypeFocalThingTypeCacheTypeMeshCacheTypeHFieldCacheTypeAssetTypeTextureAssetTypeTextureTypePlaneTextureTypeBoxTextureTypeSkyboxTextureTypeMaterialAssetTypeMaterialTypeMeshAssetTypeHFieldAssetTypeWorldTypeBodyTypePlaceholderTypeTubeTypeGeomTypeCapsuleGeomTypeCylinderGeomTypeBoxGeomTypePlaneGeomTypeSphereGeomTypeEllipsoidGeomTypeMeshGeomTypeHFieldGeomTypeSiteTypeCapsuleSiteTypeCylinderSiteTypeBoxSiteTypeSphereSiteTypeEllipsoidSiteTypeJointTypeHingeTypeSlideTypeBallTypeFreeTypeSensorTypeSiteSensorTypeJointSensorTypeActuatorSensorTypeTendonTypeInfoLaserTypeActuatorTypePositionTypeVelocityTypeIntVelocityTypeDamperTypeCylinderTypeMuscleTypeAdhesionTypeLightTypeCameraTypeAgentType
- blueprints.placeholder module
- blueprints.sensors module
- blueprints.sites module
- blueprints.tendon module
- blueprints.texture module
- Texture Types
- Procedural Textures
BaseTextureBaseTexture.assetBaseTexture.contentBaseTexture.filenameBaseTexture.grid_sizeBaseTexture.grid_layoutBaseTexture.filename_rightBaseTexture.filename_leftBaseTexture.filename_upBaseTexture.filename_downBaseTexture.filename_frontBaseTexture.filename_backBaseTexture.builtinBaseTexture.color_1BaseTexture.color_2BaseTexture.markBaseTexture.color_markBaseTexture.randomBaseTexture.widthBaseTexture.heightBaseTexture.h_flipBaseTexture.v_flipBaseTexture.n_channel
PlaneBoxSkybox
- blueprints.tube module
- blueprints.world module
WorldWorld.angleWorld.autolimitsWorld.contactWorld.gravityWorld.integratorWorld.viscosityWorld.__init__()World.attach()World.detach()World.build()World.reset()World.unbuild()World.view()World.step()World.start_recording()World.stop_recording()World.to_xml_string()World.from_xml_string()World.modelWorld.dataWorld.sizeWorld.centerWorld.texture