URDF files dont work
조회 수: 12 (최근 30일)
이전 댓글 표시
robot = importrobot('irb6640.urdf');
by using a irb6640.urdf file from the internet the code I used for generating a robot traject doesnt work.
I tried this for different urdf files but the code can't run the inverse dynamics for some reason. Normally this should be possible. I need this for my thesis :(. Does someone know what I did wrong . this is the urdf file <?xml version="1.0" ?>
<!-- =================================================================================== -->
<!-- | This document was autogenerated by xacro from irb6640.xacro | -->
<!-- | EDITING THIS FILE BY HAND IS NOT RECOMMENDED | -->
<!-- =================================================================================== -->
<robot name="abb_irb6640" xmlns:xacro="http://ros.org/wiki/xacro">
<link name="base_link">
<collision name="collision">
<geometry>
<mesh filename="package://collision/base_link.stl"/>
</geometry>
<material name="yellow">
<color rgba="0 1 1 1"/>
</material>
</collision>
<visual name="visual">
<geometry>
<mesh filename="package://visual/base_link.stl"/>
</geometry>
<material name="orange">
<color rgba="1 0.43 0 1"/>
</material>
</visual>
</link>
<link name="link_1">
<collision name="collision">
<geometry>
<mesh filename="package://collision/link_1.stl"/>
</geometry>
<material name="yellow"/>
</collision>
<visual name="visual">
<geometry>
<mesh filename="package://visual/link_1.stl"/>
</geometry>
<material name="orange"/>
</visual>
</link>
<link name="link_2">
<collision name="collision">
<geometry>
<mesh filename="package://collision/link_2.stl"/>
</geometry>
<material name="yellow"/>
</collision>
<visual name="visual">
<geometry>
<mesh filename="package://visual/link_2.stl"/>
</geometry>
<material name="orange"/>
</visual>
</link>
<link name="link_3">
<collision name="collision">
<geometry>
<mesh filename="package://collision/link_3.stl"/>
</geometry>
<material name="yellow"/>
</collision>
<visual name="visual">
<geometry>
<mesh filename="package://visual/link_3.stl"/>
</geometry>
<material name="orange"/>
</visual>
</link>
<link name="link_4">
<collision name="collision">
<geometry>
<mesh filename="package://collision/link_4.stl"/>
</geometry>
<material name="yellow"/>
</collision>
<visual name="visual">
<geometry>
<mesh filename="package://visual/link_4.stl"/>
</geometry>
<material name="orange"/>
</visual>
</link>
<link name="link_5">
<collision name="collision">
<geometry>
<mesh filename="package://collision/link_5.stl"/>
</geometry>
<material name="yellow"/>
</collision>
<visual name="visual">
<geometry>
<mesh filename="package://visual/link_5.stl"/>
</geometry>
<material name="orange"/>
</visual>
</link>
<link name="link_6">
<collision name="collision">
<geometry>
<mesh filename="package://collision/link_6.stl"/>
</geometry>
<material name="yellow"/>
</collision>
<visual name="visual">
<geometry>
<mesh filename="package://visual/link_6.stl"/>
</geometry>
<material name="orange"/>
</visual>
</link>
<link name="tool0"/>
<link name="link_cylinder">
<collision name="collision">
<geometry>
<mesh filename="package://collision/cylinder.stl"/>
</geometry>
<material name="yellow"/>
</collision>
<visual name="visual">
<geometry>
<mesh filename="package://visual/cylinder.stl"/>
</geometry>
<material name="orange"/>
</visual>
</link>
<link name="link_piston">
<collision name="collision">
<geometry>
<mesh filename="package://collision/piston.stl"/>
</geometry>
<material name="yellow"/>
</collision>
<visual name="visual">
<geometry>
<mesh filename="package://visual/piston.stl"/>
</geometry>
<material name="orange"/>
</visual>
</link>
<joint name="joint_1" type="revolute">
<origin rpy="0 0 0" xyz="0 0 0.227"/>
<axis xyz="0 0 1"/>
<parent link="base_link"/>
<child link="link_1"/>
<limit effort="0" lower="-2.967" upper="2.967" velocity="1.7453"/>
</joint>
<joint name="joint_2" type="revolute">
<origin rpy="0 0 0" xyz="0.322 0.03 0.551"/>
<axis xyz="0 1 0"/>
<parent link="link_1"/>
<child link="link_2"/>
<limit effort="0" lower="-1.134" upper="1.4855" velocity="1.5707"/>
</joint>
<joint name="joint_3" type="revolute">
<origin rpy="0 0 0" xyz="0 -0.2 1.07"/>
<axis xyz="0 1 0"/>
<parent link="link_2"/>
<child link="link_3"/>
<limit effort="0" lower="-3.142" upper="1.222" velocity="1.5707"/>
</joint>
<joint name="joint_4" type="revolute">
<origin rpy="0 0 0" xyz="-0.275 0.181 0.2"/>
<axis xyz="1 0 0"/>
<parent link="link_3"/>
<child link="link_4"/>
<limit effort="0" lower="-5.236" upper="5.236" velocity="2.9671"/>
</joint>
<joint name="joint_5" type="revolute">
<origin rpy="0 0 0" xyz="1.67 0 0 "/>
<axis xyz="0 1 0"/>
<parent link="link_4"/>
<child link="link_5"/>
<limit effort="0" lower="-2.094" upper="2.094" velocity="2.4435"/>
</joint>
<joint name="joint_6" type="revolute">
<origin rpy="0 0 0" xyz="0.153 0 0 "/>
<axis xyz="1 0 0"/>
<parent link="link_5"/>
<child link="link_6"/>
<limit effort="0" lower="-6.283" upper="6.283" velocity="3.3161"/>
</joint>
<joint name="joint_6-tool0" type="fixed">
<parent link="link_6"/>
<child link="tool0"/>
<origin rpy="0 1.57079632679 0" xyz=".055 0 0"/>
</joint>
<joint name="joint_cylinder" type="fixed">
<origin rpy="0 -0.170 0" xyz="-0.365 -0.1895 0.405"/>
<axis xyz="0 1 0"/>
<parent link="link_1"/>
<child link="link_cylinder"/>
<limit effort="0" lower="-2.96705973" upper="2.96705973" velocity="0"/>
</joint>
<joint name="joint_piston" type="fixed">
<origin rpy="0 0 0" xyz="0.475 0 0"/>
<axis xyz="1 0 0"/>
<parent link="link_cylinder"/>
<child link="link_piston"/>
<limit effort="0" lower="0" upper="0.6" velocity="0"/>
</joint>
<link name="base"/>
<joint name="base_link-base" type="fixed">
<origin rpy="0 0 0" xyz="0 0 0"/>
<parent link="base_link"/>
<child link="base"/>
</joint>
</robot>
댓글 수: 0
답변 (1개)
Gaurav Bhosale
2024년 4월 22일
편집: Gaurav Bhosale
2024년 4월 22일
Hi Tim De Witte,
I am able to run shared URDF without any issue.
Can you please share me more details such as MATLAB version, error/warning message details or reproduction steps ?
Thanks
댓글 수: 6
참고 항목
카테고리
Help Center 및 File Exchange에서 Inverse Kinematics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!