adam.parametric.model.parametric_factories package#

Submodules#

adam.parametric.model.parametric_factories.parametric_joint module#

class adam.parametric.model.parametric_factories.parametric_joint.ParametricJoint(joint: Joint, math: SpatialMath, parent_link: ParametricLink, idx: int | None = None)[source]#

Bases: Joint

Parametric Joint class

modify(parent_joint_offset: Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str])[source]#
Parameters:

parent_joint_offset (npt.ArrayLike) – offset of the parent joint

Returns:

the origin of the joint, parametric with respect to the parent link dimensions

Return type:

npt.ArrayLike

homogeneous(q: Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str]) Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str][source]#
Parameters:

q (npt.ArrayLike) – joint value

Returns:

the homogenous transform of a joint, given q

Return type:

npt.ArrayLike

spatial_transform(q: Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str]) Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str][source]#
Parameters:

q (npt.ArrayLike) – joint motion

Returns:

spatial transform of the joint given q

Return type:

npt.ArrayLike

motion_subspace() Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str][source]#
Parameters:

joint (Joint) – Joint

Returns:

motion subspace of the joint

Return type:

npt.ArrayLike

adam.parametric.model.parametric_factories.parametric_model module#

class adam.parametric.model.parametric_factories.parametric_model.URDFParametricModelFactory(path: str, math: SpatialMath, links_name_list: list, length_multiplier, densities)[source]#

Bases: ModelFactory

This factory generates robot elements from urdf_parser_py parametrized w.r.t. link lengths and densities

Parameters:

ModelFactory – the Model factory

get_joints() list[Joint][source]#
Returns:

build the list of the joints

Return type:

list[Joint]

Returns:

build the list of the links

Return type:

list[Link]

get_frames() list[StdLink][source]#
Returns:

build the list of the links

Return type:

list[Link]

build_joint(joint: Joint) Joint[source]#
Parameters:

joint (Joint) – the urdf_parser_py joint

Returns:

our joint representation

Return type:

StdJoint/ParametricJoint

Parameters:

link (Link) – the urdf_parser_py link

Returns:

our link representation

Return type:

StdLink/ParametricLink

get_element_by_name(link_name)[source]#
Parameters:

link_name (Link) – the link name

Returns:

the urdf parser link object associated to the link name

Return type:

Link