Skip to content

Commit

Permalink
not adding materials randomly
Browse files Browse the repository at this point in the history
  • Loading branch information
zevbo committed Aug 31, 2023
1 parent 8659240 commit 5422623
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
3 changes: 3 additions & 0 deletions tests/extender.urdf
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<robot name="vgc10_extender_stick">
<material name="Silver">
<color rgba="0.753 0.753 0.753 1.0" />
</material>
<link name="INPUT-extender_stick">
<inertial>
<origin xyz="-1.14523654741374E-09 -2.79672501268441E-08 0.0228788479998501" rpy="0 0 0" />
Expand Down
3 changes: 3 additions & 0 deletions tests/extender2.urdf
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<robot name="vgc10_extender_stick">
<material name="Silver">
<color rgba="0.753 0.753 0.753 1.0" />
</material>
<link name="INPUT-extender_stick-2">
<inertial>
<origin xyz="-1.14523654741374E-09 -2.79672501268441E-08 0.0228788479998501" rpy="0 0 0" />
Expand Down
8 changes: 4 additions & 4 deletions tests/output.urdf
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?xml version='1.0' encoding='UTF-8'?>
<robot name="vgc10_extender_stick">
<material name="Silver">
<color rgba="0.753 0.753 0.753 1.0" />
</material>
<link name="INPUT-extender_stick">
<inertial>
<origin xyz="-1.14523654741374E-09 -2.79672501268441E-08 0.0228788479998501" rpy="0 0 0" />
Expand Down Expand Up @@ -27,10 +30,7 @@
<child link="CONNECTED:OUTPUT-vgc10_extender_stick" />
<axis xyz="0 0 0" />
</joint>
<material name="Silver">
<color rgba="0.753 0.753 0.753 1.0" />
</material>
<joint name="GENERATED_CONNECTION(1)" type="fixed">
<joint name="GENERATED_CONNECTION(1)" type="fixed">
<origin xyz="0 0 0" rpy="0 0 0" />
<parent link="CONNECTED:OUTPUT-vgc10_extender_stick" />
<child link="CONNECTED:INPUT-extender_stick(1)" />
Expand Down
2 changes: 0 additions & 2 deletions urdf_compose/urdf_obj.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import copy
import os
import subprocess
import xml.etree.ElementTree as ET
from pathlib import Path
from uuid import uuid1

from urdf_compose.xml_utils import elements_equal

Expand Down

0 comments on commit 5422623

Please sign in to comment.