<?xml version="1.0" encoding="UTF-8"?>
<!--This does not replace URDF, and is not an extension of URDF.
    This is a format for representing semantic information about the robot structure.
    A URDF file must exist for this robot as well, where the joints and the links that are referenced are defined
-->
<robot xmlns:xacro="http://ros.org/wiki/xacro">
    <xacro:macro name="toyo_xyz_srdf" params="device_name">
        <!--GROUPS: Representation of a set of joints and links. This can be useful for specifying DOF to plan for, defining arms, end effectors, etc-->
        <!--LINKS: When a link is specified, the parent joint of that link (if it exists) is automatically included-->
        <!--JOINTS: When a joint is specified, the child link of that joint (which will always exist) is automatically included-->
        <!--CHAINS: When a chain is specified, all the links along the chain (including endpoints) are included in the group. Additionally, all the joints that are parents to included links are also included. This means that joints along the chain and the parent joint of the base link are included in the group-->
        <!--SUBGROUPS: Groups can also be formed by referencing to already defined group names-->
        <group name="${device_name}toyo_xyz">
            <chain base_link="${device_name}base_link" tip_link="${device_name}slider3_link"/>
        </group>
        <!--DISABLE COLLISIONS: By default it is assumed that any link of the robot could potentially come into collision with any other link in the robot. This tag disables collision checking between a specified pair of links. -->
        <disable_collisions link1="${device_name}base2_link" link2="${device_name}base3_link" reason="Never"/>
        <disable_collisions link1="${device_name}base2_link" link2="${device_name}base_link" reason="Never"/>
        <disable_collisions link1="${device_name}base2_link" link2="${device_name}chain_link" reason="Never"/>
        <disable_collisions link1="${device_name}base2_link" link2="${device_name}end2_link" reason="Never"/>
        <disable_collisions link1="${device_name}base2_link" link2="${device_name}end3_link" reason="Never"/>
        <disable_collisions link1="${device_name}base2_link" link2="${device_name}end_link" reason="Never"/>
        <disable_collisions link1="${device_name}base2_link" link2="${device_name}fixed_link" reason="Never"/>
        <disable_collisions link1="${device_name}base2_link" link2="${device_name}length1_link" reason="Never"/>
        <disable_collisions link1="${device_name}base2_link" link2="${device_name}length2_link" reason="Default"/>
        <disable_collisions link1="${device_name}base2_link" link2="${device_name}length3_link" reason="Never"/>
        <disable_collisions link1="${device_name}base2_link" link2="${device_name}slider1_link" reason="Adjacent"/>
        <disable_collisions link1="${device_name}base2_link" link2="${device_name}slider2_link" reason="Never"/>
        <disable_collisions link1="${device_name}base2_link" link2="${device_name}slider3_link" reason="Never"/>
        <disable_collisions link1="${device_name}base3_link" link2="${device_name}base_link" reason="Never"/>
        <disable_collisions link1="${device_name}base3_link" link2="${device_name}chain_link" reason="Never"/>
        <disable_collisions link1="${device_name}base3_link" link2="${device_name}end2_link" reason="Never"/>
        <disable_collisions link1="${device_name}base3_link" link2="${device_name}end3_link" reason="Never"/>
        <disable_collisions link1="${device_name}base3_link" link2="${device_name}end_link" reason="Never"/>
        <disable_collisions link1="${device_name}base3_link" link2="${device_name}fixed_link" reason="Never"/>
        <disable_collisions link1="${device_name}base3_link" link2="${device_name}length1_link" reason="Never"/>
        <disable_collisions link1="${device_name}base3_link" link2="${device_name}length2_link" reason="Never"/>
        <disable_collisions link1="${device_name}base3_link" link2="${device_name}length3_link" reason="Never"/>
        <disable_collisions link1="${device_name}base3_link" link2="${device_name}slider1_link" reason="Never"/>
        <disable_collisions link1="${device_name}base3_link" link2="${device_name}slider2_link" reason="Adjacent"/>
        <disable_collisions link1="${device_name}base3_link" link2="${device_name}slider3_link" reason="Never"/>
        <disable_collisions link1="${device_name}base_link" link2="${device_name}chain_link" reason="Never"/>
        <disable_collisions link1="${device_name}base_link" link2="${device_name}end2_link" reason="Never"/>
        <disable_collisions link1="${device_name}base_link" link2="${device_name}end3_link" reason="Never"/>
        <disable_collisions link1="${device_name}base_link" link2="${device_name}end_link" reason="Adjacent"/>
        <disable_collisions link1="${device_name}base_link" link2="${device_name}fixed_link" reason="Never"/>
        <disable_collisions link1="${device_name}base_link" link2="${device_name}length1_link" reason="Adjacent"/>
        <disable_collisions link1="${device_name}base_link" link2="${device_name}length2_link" reason="Never"/>
        <disable_collisions link1="${device_name}base_link" link2="${device_name}length3_link" reason="Never"/>
        <disable_collisions link1="${device_name}base_link" link2="${device_name}slider1_link" reason="Adjacent"/>
        <disable_collisions link1="${device_name}base_link" link2="${device_name}slider2_link" reason="Never"/>
        <disable_collisions link1="${device_name}base_link" link2="${device_name}slider3_link" reason="Never"/>
        <disable_collisions link1="${device_name}chain_link" link2="${device_name}end2_link" reason="Never"/>
        <disable_collisions link1="${device_name}chain_link" link2="${device_name}end3_link" reason="Never"/>
        <disable_collisions link1="${device_name}chain_link" link2="${device_name}end_link" reason="Never"/>
        <disable_collisions link1="${device_name}chain_link" link2="${device_name}fixed_link" reason="Default"/>
        <disable_collisions link1="${device_name}chain_link" link2="${device_name}length1_link" reason="Never"/>
        <disable_collisions link1="${device_name}chain_link" link2="${device_name}length2_link" reason="Never"/>
        <disable_collisions link1="${device_name}chain_link" link2="${device_name}length3_link" reason="Never"/>
        <disable_collisions link1="${device_name}chain_link" link2="${device_name}slider1_link" reason="Adjacent"/>
        <disable_collisions link1="${device_name}chain_link" link2="${device_name}slider2_link" reason="Never"/>
        <disable_collisions link1="${device_name}chain_link" link2="${device_name}slider3_link" reason="Never"/>
        <disable_collisions link1="${device_name}end2_link" link2="${device_name}end3_link" reason="Never"/>
        <disable_collisions link1="${device_name}end2_link" link2="${device_name}end_link" reason="Never"/>
        <disable_collisions link1="${device_name}end2_link" link2="${device_name}fixed_link" reason="Never"/>
        <disable_collisions link1="${device_name}end2_link" link2="${device_name}length1_link" reason="Never"/>
        <disable_collisions link1="${device_name}end2_link" link2="${device_name}length2_link" reason="Default"/>
        <disable_collisions link1="${device_name}end2_link" link2="${device_name}length3_link" reason="Never"/>
        <disable_collisions link1="${device_name}end2_link" link2="${device_name}slider1_link" reason="Adjacent"/>
        <disable_collisions link1="${device_name}end2_link" link2="${device_name}slider2_link" reason="Never"/>
        <disable_collisions link1="${device_name}end2_link" link2="${device_name}slider3_link" reason="Never"/>
        <disable_collisions link1="${device_name}end3_link" link2="${device_name}end_link" reason="Never"/>
        <disable_collisions link1="${device_name}end3_link" link2="${device_name}fixed_link" reason="Never"/>
        <disable_collisions link1="${device_name}end3_link" link2="${device_name}length1_link" reason="Never"/>
        <disable_collisions link1="${device_name}end3_link" link2="${device_name}length2_link" reason="Never"/>
        <disable_collisions link1="${device_name}end3_link" link2="${device_name}length3_link" reason="Default"/>
        <disable_collisions link1="${device_name}end3_link" link2="${device_name}slider1_link" reason="Never"/>
        <disable_collisions link1="${device_name}end3_link" link2="${device_name}slider2_link" reason="Adjacent"/>
        <disable_collisions link1="${device_name}end3_link" link2="${device_name}slider3_link" reason="Never"/>
        <disable_collisions link1="${device_name}end_link" link2="${device_name}fixed_link" reason="Never"/>
        <disable_collisions link1="${device_name}end_link" link2="${device_name}length1_link" reason="Default"/>
        <disable_collisions link1="${device_name}end_link" link2="${device_name}length2_link" reason="Never"/>
        <disable_collisions link1="${device_name}end_link" link2="${device_name}length3_link" reason="Never"/>
        <disable_collisions link1="${device_name}end_link" link2="${device_name}slider1_link" reason="Never"/>
        <disable_collisions link1="${device_name}end_link" link2="${device_name}slider2_link" reason="Never"/>
        <disable_collisions link1="${device_name}end_link" link2="${device_name}slider3_link" reason="Never"/>
        <disable_collisions link1="${device_name}fixed_link" link2="${device_name}length1_link" reason="Never"/>
        <disable_collisions link1="${device_name}fixed_link" link2="${device_name}length2_link" reason="Never"/>
        <disable_collisions link1="${device_name}fixed_link" link2="${device_name}length3_link" reason="Default"/>
        <disable_collisions link1="${device_name}fixed_link" link2="${device_name}slider1_link" reason="Never"/>
        <disable_collisions link1="${device_name}fixed_link" link2="${device_name}slider2_link" reason="Adjacent"/>
        <disable_collisions link1="${device_name}fixed_link" link2="${device_name}slider3_link" reason="Never"/>
        <disable_collisions link1="${device_name}length1_link" link2="${device_name}length2_link" reason="Never"/>
        <disable_collisions link1="${device_name}length1_link" link2="${device_name}length3_link" reason="Never"/>
        <disable_collisions link1="${device_name}length1_link" link2="${device_name}slider1_link" reason="Never"/>
        <disable_collisions link1="${device_name}length1_link" link2="${device_name}slider2_link" reason="Never"/>
        <disable_collisions link1="${device_name}length1_link" link2="${device_name}slider3_link" reason="Never"/>
        <disable_collisions link1="${device_name}length2_link" link2="${device_name}length3_link" reason="Never"/>
        <disable_collisions link1="${device_name}length2_link" link2="${device_name}slider1_link" reason="Adjacent"/>
        <disable_collisions link1="${device_name}length2_link" link2="${device_name}slider2_link" reason="Never"/>
        <disable_collisions link1="${device_name}length2_link" link2="${device_name}slider3_link" reason="Never"/>
        <disable_collisions link1="${device_name}length3_link" link2="${device_name}slider1_link" reason="Never"/>
        <disable_collisions link1="${device_name}length3_link" link2="${device_name}slider2_link" reason="Adjacent"/>
        <disable_collisions link1="${device_name}length3_link" link2="${device_name}slider3_link" reason="Never"/>
        <disable_collisions link1="${device_name}slider1_link" link2="${device_name}slider2_link" reason="Adjacent"/>
        <disable_collisions link1="${device_name}slider1_link" link2="${device_name}slider3_link" reason="Never"/>
        <disable_collisions link1="${device_name}slider2_link" link2="${device_name}slider3_link" reason="Adjacent"/>
    </xacro:macro>
</robot>
