blueprints.utils.register module#
- class blueprints.utils.register.Register[source]#
Bases:
objectThe Register is used to assign Thing IDs and to amalgamate all Thing classes for object recostruction from an xml element.
- ACTUATOR_THINGS#
A dictionary containing the respective Actuator classes with their xml tags as keys.
- Type:
dict
- ASSET_THINGS#
A dictionary containing the respective Asset classes with their xml type attributes as keys.
- Type:
dict
- assets#
A list of all assets that have been created.
- Type:
list
- BASIC_THINGS#
A dictionary containing basic Thing classes with their xml tags as keys.
- Type:
dict
- CACHE_THINGS#
A dictionary containing the respective Cache classes with their xml type attributes as keys.
- Type:
dict
- caches#
A list of all caches that have been created
- Type:
list
- DERIVED_THINGS#
A dictionary containing dictionaries of Things for which the specific class is derived from the xml type attribute.
- Type:
dict
- GEOM_THINGS#
A dictionary containing the respective Geom classes with their xml type attributes as keys.
- Type:
dict
- JOINT_THINGS#
A dictionary containing the respective Joint classes with their xml type attributes as keys.
- Type:
dict
- SENSOR_THINGS#
A dictionary containing the respective Sensor classes with their xml tags as keys.
- Type:
dict
- SITE_THINGS#
A dictionary containing the respective Actuator classes with their xml type attributes as keys.
- Type:
dict
- BASIC_THINGS = {'body': <class 'blueprints.body.Body'>, 'camera': <class 'blueprints.camera.Camera'>, 'light': <class 'blueprints.light.Light'>}#
- GEOM_THINGS = {'box': <class 'blueprints.geoms.Box'>, 'capsule': <class 'blueprints.geoms.Capsule'>, 'cylinder': <class 'blueprints.geoms.Cylinder'>, 'ellipsoid': <class 'blueprints.geoms.Ellipsoid'>, 'hfield': <class 'blueprints.geoms.HField'>, 'mesh': <class 'blueprints.geoms.Mesh'>, 'plane': <class 'blueprints.geoms.Plane'>, 'sphere': <class 'blueprints.geoms.Sphere'>}#
- SITE_THINGS = {'box': <class 'blueprints.sites.Box'>, 'capsule': <class 'blueprints.sites.Capsule'>, 'cylinder': <class 'blueprints.sites.Cylinder'>, 'ellipsoid': <class 'blueprints.sites.Ellipsoid'>, 'sphere': <class 'blueprints.sites.Sphere'>, None: <class 'blueprints.sites.Site'>}#
- JOINT_THINGS = {'ball': <class 'blueprints.joints.Ball'>, 'free': <class 'blueprints.joints.Free'>, 'hinge': <class 'blueprints.joints.Hinge'>, 'slide': <class 'blueprints.joints.Slide'>, None: <class 'blueprints.joints.Joint'>}#
- ASSET_THINGS = {'hfield': <class 'blueprints.assets.HFieldAsset'>, 'mesh': <class 'blueprints.assets.MeshAsset'>}#
- SENSOR_THINGS = {'accelerometer': <class 'blueprints.sensors.Accelerometer'>, 'actuatorfrc': <class 'blueprints.sensors.ActuatorFrc'>, 'actuatorpos': <class 'blueprints.sensors.ActuatorPos'>, 'actuatorvel': <class 'blueprints.sensors.ActuatorVel'>, 'ballangvel': <class 'blueprints.sensors.BallAngVel'>, 'ballquat': <class 'blueprints.sensors.BallQuat'>, 'force': <class 'blueprints.sensors.Force'>, 'gyro': <class 'blueprints.sensors.Gyro'>, 'jointlimitfrc': <class 'blueprints.sensors.JointLimitFrc'>, 'jointlimitpos': <class 'blueprints.sensors.JointLimitPos'>, 'jointlimitvel': <class 'blueprints.sensors.JointLimitVel'>, 'jointpos': <class 'blueprints.sensors.JointPos'>, 'jointvel': <class 'blueprints.sensors.JointVel'>, 'rangefinder': <class 'blueprints.sensors.Rangefinder'>, 'torque': <class 'blueprints.sensors.Torque'>, 'touch': <class 'blueprints.sensors.Touch'>, 'velocimeter': <class 'blueprints.sensors.Velocimeter'>}#
- ACTUATOR_THINGS = {'adhesion': <class 'blueprints.actuators.Adhesion'>, 'cylinder': <class 'blueprints.actuators.Cylinder'>, 'damper': <class 'blueprints.actuators.Damper'>, 'general': <class 'blueprints.actuators.General'>, 'intvelocity': <class 'blueprints.actuators.IntVelocity'>, 'motor': <class 'blueprints.actuators.Motor'>, 'muscle': <class 'blueprints.actuators.Muscle'>, 'position': <class 'blueprints.actuators.Position'>, 'velocity': <class 'blueprints.actuators.Velocity'>}#
- CACHE_THINGS = {'hfield': <class 'blueprints.cache.HFieldCache'>, 'mesh': <class 'blueprints.cache.MeshCache'>}#
- DERIVED_THINGS = {'geom': {'box': <class 'blueprints.geoms.Box'>, 'capsule': <class 'blueprints.geoms.Capsule'>, 'cylinder': <class 'blueprints.geoms.Cylinder'>, 'ellipsoid': <class 'blueprints.geoms.Ellipsoid'>, 'hfield': <class 'blueprints.geoms.HField'>, 'mesh': <class 'blueprints.geoms.Mesh'>, 'plane': <class 'blueprints.geoms.Plane'>, 'sphere': <class 'blueprints.geoms.Sphere'>}, 'joint': {'ball': <class 'blueprints.joints.Ball'>, 'free': <class 'blueprints.joints.Free'>, 'hinge': <class 'blueprints.joints.Hinge'>, 'slide': <class 'blueprints.joints.Slide'>, None: <class 'blueprints.joints.Joint'>}, 'site': {'box': <class 'blueprints.sites.Box'>, 'capsule': <class 'blueprints.sites.Capsule'>, 'cylinder': <class 'blueprints.sites.Cylinder'>, 'ellipsoid': <class 'blueprints.sites.Ellipsoid'>, 'sphere': <class 'blueprints.sites.Sphere'>, None: <class 'blueprints.sites.Site'>}}#