@classmethod<EOL><INDENT>def from_urdf_file(cls, urdf_file, base_elements=None, last_link_vector=None, base_element_type="<STR_LIT>", active_links_mask=None, name="<STR_LIT>"):<DEDENT>
if base_elements is None:<EOL><INDENT>base_elements = ["<STR_LIT>"]<EOL><DEDENT>links = URDF_utils.get_urdf_parameters(urdf_file, base_elements=base_elements, last_link_vector=last_link_vector, base_element_type=base_element_type)<EOL>return cls([link_lib.OriginLink()] + links, active_links_mask=active_links_mask, name=name)<EOL>
Creates a chain from an URDF file

        Parameters
        ----------
        urdf_file: str
            The path of the URDF file
        base_elements: list of strings
            List of the links beginning the chain
        last_link_vector: numpy.array
            Optional : The translation vector of the tip.
        name: str
            The name of the Chain
        base_element_type: str
        active_links_mask: list[bool]