klampt.model.types module

Utilities for inspecting Klamp’t objects to retrieve a type string / create objects from type strings.

Functions:

knownTypes()

Returns a set of all known Klampt types

make(type[, object])

Makes a default instance of the given type.

objectToTypes(object[, world])

Returns a string defining the type of the given Python Klamp’t object.

klampt.model.types.knownTypes()[source]

Returns a set of all known Klampt types

klampt.model.types.make(type, object=None)[source]

Makes a default instance of the given type.

Parameters
  • type (str) – the name of the desired type

  • object (optional) – If type is ‘Config’, ‘Configs’, ‘Vector’, or ‘Trajectory’, can provide the object for which the new instance will be compatible.

klampt.model.types.objectToTypes(object, world=None)[source]

Returns a string defining the type of the given Python Klamp’t object. If multiple types could be associated with it, then it returns a list of all possible valid types.