Skip to content

Commit d27306b

Browse files
scpetersaditya.agrawal.a.777@gmail.com
authored and
aditya.agrawal.a.777@gmail.com
committed
Add custom attribute to custom element in test (gazebosim#1406)
Update test to confirm that gazebosim#54 is fixed. Signed-off-by: Steve Peters <scpeters@openrobotics.org>
1 parent 7930178 commit d27306b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/integration/custom_elems_attrs.sdf

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<child>L2</child>
1111
</joint>
1212

13-
<mysim:transmission name="simple_trans">
13+
<mysim:transmission name="simple_trans" mysim:attr="custom_attribute">
1414
<mysim:type>transmission_interface/SimpleTransmission</mysim:type>
1515
<mysim:joint name="J1">
1616
<mysim:hardwareInterface>EffortJointInterface</mysim:hardwareInterface>

test/integration/sdf_custom.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ TEST(SDFParser, ReloadCustomElements)
139139
ASSERT_NE(nullptr, customElem2);
140140

141141
const std::string customElemStr =
142-
R"(<mysim:transmission name='simple_trans'>
142+
R"(<mysim:transmission name='simple_trans' mysim:attr='custom_attribute'>
143143
<mysim:type>transmission_interface/SimpleTransmission</mysim:type>
144144
<mysim:joint name='J1'>
145145
<mysim:hardwareInterface>EffortJointInterface</mysim:hardwareInterface>

0 commit comments

Comments
 (0)