@@ -63,8 +63,10 @@ def test_revolute_joints(self):
6363
6464 # Custom attributes.
6565 self .assertTrue (revolute_joint .GetPrim ().GetAttribute ("urdf:limit:effort" ).HasAuthoredValue ())
66+ self .assertTrue (revolute_joint .GetPrim ().GetAttribute ("urdf:limit:effort" ).IsCustom ())
6667 self .assertAlmostEqual (revolute_joint .GetPrim ().GetAttribute ("urdf:limit:effort" ).Get (), 0.0 , places = 6 )
6768 self .assertTrue (revolute_joint .GetPrim ().GetAttribute ("urdf:limit:velocity" ).HasAuthoredValue ())
69+ self .assertTrue (revolute_joint .GetPrim ().GetAttribute ("urdf:limit:velocity" ).IsCustom ())
6870 self .assertAlmostEqual (revolute_joint .GetPrim ().GetAttribute ("urdf:limit:velocity" ).Get (), 0.0 , places = 6 )
6971
7072 # Joint_arm_2.
@@ -84,8 +86,10 @@ def test_revolute_joints(self):
8486
8587 # Custom attributes.
8688 self .assertTrue (revolute_joint .GetPrim ().GetAttribute ("urdf:limit:effort" ).HasAuthoredValue ())
89+ self .assertTrue (revolute_joint .GetPrim ().GetAttribute ("urdf:limit:effort" ).IsCustom ())
8790 self .assertAlmostEqual (revolute_joint .GetPrim ().GetAttribute ("urdf:limit:effort" ).Get (), 0.0 , places = 6 )
8891 self .assertTrue (revolute_joint .GetPrim ().GetAttribute ("urdf:limit:velocity" ).HasAuthoredValue ())
92+ self .assertTrue (revolute_joint .GetPrim ().GetAttribute ("urdf:limit:velocity" ).IsCustom ())
8993 self .assertAlmostEqual (revolute_joint .GetPrim ().GetAttribute ("urdf:limit:velocity" ).Get (), 0.0 , places = 6 )
9094
9195 # Joint_arm_3.
@@ -105,8 +109,10 @@ def test_revolute_joints(self):
105109
106110 # Custom attributes.
107111 self .assertTrue (revolute_joint .GetPrim ().GetAttribute ("urdf:limit:effort" ).HasAuthoredValue ())
112+ self .assertTrue (revolute_joint .GetPrim ().GetAttribute ("urdf:limit:effort" ).IsCustom ())
108113 self .assertAlmostEqual (revolute_joint .GetPrim ().GetAttribute ("urdf:limit:effort" ).Get (), 0.01 , places = 6 )
109114 self .assertTrue (revolute_joint .GetPrim ().GetAttribute ("urdf:limit:velocity" ).HasAuthoredValue ())
115+ self .assertTrue (revolute_joint .GetPrim ().GetAttribute ("urdf:limit:velocity" ).IsCustom ())
110116 self .assertAlmostEqual (revolute_joint .GetPrim ().GetAttribute ("urdf:limit:velocity" ).Get (), 0.02 , places = 6 )
111117
112118 def test_fixed_continuous_joints (self ):
@@ -214,8 +220,10 @@ def test_fixed_prismatic_joints(self):
214220
215221 # Custom attributes.
216222 self .assertTrue (prismatic_joint .GetPrim ().GetAttribute ("urdf:limit:effort" ).HasAuthoredValue ())
223+ self .assertTrue (prismatic_joint .GetPrim ().GetAttribute ("urdf:limit:effort" ).IsCustom ())
217224 self .assertAlmostEqual (prismatic_joint .GetPrim ().GetAttribute ("urdf:limit:effort" ).Get (), 0.01 , places = 6 )
218225 self .assertTrue (prismatic_joint .GetPrim ().GetAttribute ("urdf:limit:velocity" ).HasAuthoredValue ())
226+ self .assertTrue (prismatic_joint .GetPrim ().GetAttribute ("urdf:limit:velocity" ).IsCustom ())
219227 self .assertAlmostEqual (prismatic_joint .GetPrim ().GetAttribute ("urdf:limit:velocity" ).Get (), 0.0 , places = 6 )
220228
221229 # Joint_arm_2.
@@ -235,8 +243,10 @@ def test_fixed_prismatic_joints(self):
235243
236244 # Custom attributes.
237245 self .assertTrue (prismatic_joint .GetPrim ().GetAttribute ("urdf:limit:effort" ).HasAuthoredValue ())
246+ self .assertTrue (prismatic_joint .GetPrim ().GetAttribute ("urdf:limit:effort" ).IsCustom ())
238247 self .assertAlmostEqual (prismatic_joint .GetPrim ().GetAttribute ("urdf:limit:effort" ).Get (), 0.02 , places = 6 )
239248 self .assertTrue (prismatic_joint .GetPrim ().GetAttribute ("urdf:limit:velocity" ).HasAuthoredValue ())
249+ self .assertTrue (prismatic_joint .GetPrim ().GetAttribute ("urdf:limit:velocity" ).IsCustom ())
240250 self .assertAlmostEqual (prismatic_joint .GetPrim ().GetAttribute ("urdf:limit:velocity" ).Get (), 0.01 , places = 6 )
241251
242252 # Joint_arm_3.
@@ -256,8 +266,10 @@ def test_fixed_prismatic_joints(self):
256266
257267 # Custom attributes.
258268 self .assertTrue (prismatic_joint .GetPrim ().GetAttribute ("urdf:limit:effort" ).HasAuthoredValue ())
269+ self .assertTrue (prismatic_joint .GetPrim ().GetAttribute ("urdf:limit:effort" ).IsCustom ())
259270 self .assertAlmostEqual (prismatic_joint .GetPrim ().GetAttribute ("urdf:limit:effort" ).Get (), 0.03 , places = 6 )
260271 self .assertTrue (prismatic_joint .GetPrim ().GetAttribute ("urdf:limit:velocity" ).HasAuthoredValue ())
272+ self .assertTrue (prismatic_joint .GetPrim ().GetAttribute ("urdf:limit:velocity" ).IsCustom ())
261273 self .assertAlmostEqual (prismatic_joint .GetPrim ().GetAttribute ("urdf:limit:velocity" ).Get (), 0.01 , places = 6 )
262274
263275 def test_fixed_planar_joints (self ):
0 commit comments