forcedimension_core.containers module
Submodules
- class forcedimension_core.containers.DOFFloat(initializer: Iterable[float] = (0, 0, 0, 0, 0, 0, 0, 0))[source]
Bases:
arrayRepresents an array of floats, one for each degree-of-freedom as a
array.array. Typically used by functions that request joint angles or linear/angular velocities for each degree-of-freedom.- property ptr: LP_c_double
A pointer to the front of the underlying contiguous data.
- class forcedimension_core.containers.DOFInt(initializer: Iterable[int] = (0, 0, 0, 0, 0, 0, 0, 0))[source]
Bases:
arrayRepresents an array of C ints, one for each degree-of-freedom as a Python
array.array. Typically used by functions that get encoder values for each degree-of-freedom.- property ptr: LP_c_int
A pointer to the front of the underlying contiguous data.
- class forcedimension_core.containers.DOFMotor(initializer: Iterable[int] = (0, 0, 0, 0, 0, 0, 0, 0))[source]
Bases:
arrayRepresents an array of C unsigned shorts, one for each degree-of-freedom as a Python
array.array. Typically used by functions that request motor commands for each degree-of-freedom.- property ptr: LP_c_ushort
A pointer to the front of the underlying contiguous data.
- class forcedimension_core.containers.Enc3(initializer: Iterable[int] = (0, 0, 0))[source]
Bases:
arrayRepresents an array of three C ints as a
array.array. Typically used by functions which return information about encoders from the WRIST or DELTA structure.- property ptr: LP_c_int
A pointer to the front of the array.
- class forcedimension_core.containers.Enc4(initializer: Iterable[int] = (0, 0, 0, 0))[source]
Bases:
arrayRepresents an array of four C ints as a
array.array. Typically used functions which convert gripper motor commands to forces and vice versa.- property ptr: LP_c_int
A pointer to the front of the underlying contiguous data.
- class forcedimension_core.containers.Mat3x3(initializer: Iterable[float] = (0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0))[source]
Bases:
arrayRepresents the type of a 3x3 matrix of floats
array.array. Typically used to represent a 3x3 coordinate frame matrix.- property ptr: LP_c_double
A pointer to the front of the underlying contiguous data.
- class forcedimension_core.containers.Mat6x6(initializer: Iterable[float] = (0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0))[source]
Bases:
arrayRepresents the type of a 6x6 matrix of floats
array.array. Typically used to represent a 6x6 inertia matrix.- property ptr: LP_c_double
A pointer to the front of the underlying contiguous data.
- class forcedimension_core.containers.Mot3(initializer: Iterable[int] = (0, 0, 0))[source]
Bases:
arrayRepresents an array of three C ushorts as a
array.array. Typically used functions which take motor commands or convert motor commands to forces (and vice versa). In those functions, represents an array of motor commands for each axis of the delta or wrist structure.- property ptr: LP_c_ushort
A pointer to the front of the array.
- class forcedimension_core.containers.Status(*args, **kwargs)[source]
Bases:
StructureAdapts the status array returned by
forcedimension.bindings.dhd.getStatus()- axis_checked: int
A bit vector that indicates the validation status of each axis. The validation status of all device axes can be assessed by calling the drd.checkInit() function in the Force Dimension Robotic SDK (DRD). Each bit of the status value returned corresponds to a the validation status of the corresponding axis:
- forceoffcause: int
The event that caused forces to be disabled on the device (the last time forces were turned off).
- locks: int
The status of the locks on supported devices. The value can be either 1 if the locks are engaged, 0 if the locks are disengagned, or -1 if the status of the locks is unknown.
- property ptr: LP_c_int
- class forcedimension_core.containers.Vec3(initializer: Iterable[float] = (0.0, 0.0, 0.0))[source]
Bases:
arrayRepresents an array of three C floats as a
array.array. Typically used by functions which return a vector or take a vector. Can also be used by functions which convert a set of 3 float such as in the functions which get orientation. Has convinence “x”, “y”, and “z” properties to access the 0th, 1st, and 2nd elements, respectively.- property ptr: LP_c_double
A pointer to the front of the array.
- class forcedimension_core.containers.VersionTuple(major: int, minor: int, release: int, revision: int)[source]
Bases:
NamedTupleAdapts the four seperate number return into a single grouped
typing.NamedTuple.