Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aaronchongth/74c9641202dbdc4e60142a8547449a1f to your computer and use it in GitHub Desktop.
Save aaronchongth/74c9641202dbdc4e60142a8547449a1f to your computer and use it in GitHub Desktop.
Output of modified parser_TEST.cc
aaron@biryani:~/workspaces/sdf$ ./build/sdformat11/src/UNIT_parser_TEST
[==========] Running 12 tests from 2 test cases.
[----------] Global test environment set-up.
[----------] 11 tests from Parser
[ RUN ] Parser.initStringTrim
[ OK ] Parser.initStringTrim (0 ms)
[ RUN ] Parser.CustomUnknownElements
[ OK ] Parser.CustomUnknownElements (25 ms)
[ RUN ] Parser.ReusedSDFVersion
Warning [Utils.cc:110] SDF Element[initial_position] is deprecated
Warning [Utils.cc:110] SDF Element[initial_position] is deprecated
[ OK ] Parser.ReusedSDFVersion (32 ms)
[ RUN ] Parser.readFileConversions
Warning [Utils.cc:110] SDF Element[initial_position] is deprecated
Warning [Utils.cc:110] SDF Element[initial_position] is deprecated
Warning [Utils.cc:110] SDF Element[initial_position] is deprecated
Warning [Utils.cc:110] SDF Element[initial_position] is deprecated
[ OK ] Parser.readFileConversions (66 ms)
[ RUN ] Parser.NameUniqueness
Error: Non-unique names detected in type world in
<sdf version='1.8'>
<world name='default'>
<gravity>0 0 -9.8</gravity>
<magnetic_field>6e-06 2.3e-05 -4.2e-05</magnetic_field>
<atmosphere type='adiabatic'/>
<physics type='ode'>
<max_step_size>0.001</max_step_size>
<real_time_factor>1</real_time_factor>
<real_time_update_rate>1000</real_time_update_rate>
</physics>
<scene>
<ambient>0.4 0.4 0.4 1</ambient>
<background>0.7 0.7 0.7 1</background>
<shadows>1</shadows>
</scene>
</world>
<world name='default'>
<gravity>0 0 -9.8</gravity>
<magnetic_field>6e-06 2.3e-05 -4.2e-05</magnetic_field>
<atmosphere type='adiabatic'/>
<physics type='ode'>
<max_step_size>0.001</max_step_size>
<real_time_factor>1</real_time_factor>
<real_time_update_rate>1000</real_time_update_rate>
</physics>
<scene>
<ambient>0.4 0.4 0.4 1</ambient>
<background>0.7 0.7 0.7 1</background>
<shadows>1</shadows>
</scene>
</world>
</sdf>
Error: Non-unique names detected in <world name='default'>
<physics name='my_physics' type='bullet'>
<max_step_size>0.10000000000000001</max_step_size>
<real_time_factor>0.5</real_time_factor>
<real_time_update_rate>1000</real_time_update_rate>
</physics>
<light name='spot' type='spot'>
<cast_shadows>1</cast_shadows>
<spot>
<inner_angle>0.10000000000000001</inner_angle>
<outer_angle>0.5</outer_angle>
<falloff>2.2000000000000002</falloff>
</spot>
<direction>0 0 -1</direction>
</light>
<model name='spot'>
<link name='L'/>
</model>
<gravity>0 0 -9.8</gravity>
<magnetic_field>6e-06 2.3e-05 -4.2e-05</magnetic_field>
<atmosphere type='adiabatic'/>
<scene>
<ambient>0.4 0.4 0.4 1</ambient>
<background>0.7 0.7 0.7 1</background>
<shadows>1</shadows>
</scene>
</world>
Error: Non-unique names detected in type link in
<model name='duplicate_links'>
<link name='link'>
<pose>1 1 1 0 -0 0</pose>
</link>
<link name='link'>
<pose>2 2 2 0 -0 0</pose>
</link>
</model>
Error: Non-unique names detected in type joint in
<model name='duplicate_joints'>
<link name='link1'/>
<link name='link2'/>
<link name='link3'/>
<joint name='joint' type='fixed'>
<parent>link1</parent>
<child>link2</child>
</joint>
<joint name='joint' type='fixed'>
<parent>link2</parent>
<child>link3</child>
</joint>
</model>
Error: Non-unique names detected in <model name='link_joint_same_name'>
<link name='base'>
<pose>1 0 0 0 -0 0</pose>
</link>
<link name='attachment'>
<pose>0 2 0 0 -0 0</pose>
</link>
<joint name='attachment' type='fixed'>
<pose>0 0 3 0 -0 0</pose>
<parent>base</parent>
<child>attachment</child>
</joint>
</model>
Error: Non-unique names detected in type collision in
<link name='link'>
<collision name='collision'>
<geometry/>
</collision>
<collision name='collision'>
<geometry/>
</collision>
</link>
Error: Non-unique names detected in <link name='link'>
<visual name='visual'>
<geometry/>
</visual>
<visual name='visual'>
<geometry/>
</visual>
</link>
[ OK ] Parser.NameUniqueness (234 ms)
[ RUN ] Parser.SyntaxErrorInValues
[ OK ] Parser.SyntaxErrorInValues (78 ms)
[ RUN ] Parser.MissingRequiredAttributesErrors
[ OK ] Parser.MissingRequiredAttributesErrors (26 ms)
[ RUN ] Parser.IncludesErrors
[ OK ] Parser.IncludesErrors (127 ms)
[ RUN ] Parser.PlacementFrameMissingPose
Error: Could not find the 'robot' element in the xml file
at line 80 in /tmp/binarydeb/ros-foxy-urdfdom-2.3.3/urdf_parser/src/model.cpp
[ OK ] Parser.PlacementFrameMissingPose (45 ms)
[ RUN ] Parser.DoubleColonNameAttrError
Error: Detected delimiter '::' in element name in
<link name='A::B'/>
Error: Could not find the 'robot' element in the xml file
at line 80 in /tmp/binarydeb/ros-foxy-urdfdom-2.3.3/urdf_parser/src/model.cpp
Error [parser_urdf.cc:3219] Unable to call parseURDF on robot model
Error [parser.cc:594] parse as old deprecated model file failed.
[ OK ] Parser.DoubleColonNameAttrError (48 ms)
[ RUN ] Parser.ReadStringError
Error: Could not find the 'robot' element in the xml file
at line 80 in /tmp/binarydeb/ros-foxy-urdfdom-2.3.3/urdf_parser/src/model.cpp
Error [parser_urdf.cc:3219] Unable to call parseURDF on robot model
Error [parser.cc:594] parse as old deprecated model file failed.
Error Code 4: [data-string:L1]: Msg: Required attribute[name] in element[link] is not specified in SDF.
/home/aaron/workspaces/sdf/src/sdformat/src/parser_TEST.cc:665: Failure
Value of: errors[0].FilePath().has_value()
Actual: true
Expected: false
/home/aaron/workspaces/sdf/src/sdformat/src/parser_TEST.cc:666: Failure
Value of: errors[0].LineNumber().has_value()
Actual: true
Expected: false
[ FAILED ] Parser.ReadStringError (23 ms)
[----------] 11 tests from Parser (704 ms total)
[----------] 1 test from ValueConstraintsFixture
[ RUN ] ValueConstraintsFixture.ElementMinMaxValues
[ OK ] ValueConstraintsFixture.ElementMinMaxValues (39 ms)
[----------] 1 test from ValueConstraintsFixture (39 ms total)
[----------] Global test environment tear-down
[==========] 12 tests from 2 test cases ran. (743 ms total)
[ PASSED ] 11 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] Parser.ReadStringError
1 FAILED TEST
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment