Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check_urdf: no loop detection #154

Open
simonschmeisser opened this issue Apr 9, 2021 · 0 comments
Open

check_urdf: no loop detection #154

simonschmeisser opened this issue Apr 9, 2021 · 0 comments

Comments

@simonschmeisser
Copy link
Contributor

If the URDF file contains a loop, printTree

printTree(root_link);
loops infinitely

Example:

<robot name="loopy">
    <link name="world" />

    <link name="gripper_frame" />
    
    <joint name="world_to_gripper" type="fixed">
        <parent link="world"/>
        <child link="gripper_frame"/>
        <origin xyz="0.0 0.1 0.17" rpy="0 0 0"/>
    </joint>

    <link name="calibration_plate" />

    <joint name="gripper_to_calibration_plate" type="fixed">
        <parent link="gripper_frame"/>
        <child link="calibration_plate"/>
        <origin xyz="0.0 0.1 0.17" rpy="0 0 0"/>
    </joint>

    <joint name="gripper_to_calibration_plate2" type="fixed">
        <parent link="gripper_frame"/>
        <child link="gripper_frame"/>
        <origin xyz="0.0 0.1 0.17" rpy="0 0 0"/>
    </joint>
</robot>

Are there consumers of URDF that accept loops (then this could be handled with a warning), otherwise it should give an error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant