HebiRobotics / hebi-matlab-api

Public download and issue tracker of the latest HEBI API for MATLAB
http://docs.hebi.us/tools.html#matlab-api
0 stars 0 forks source link

More friendly errors when parsing XML / HRDF fails. #1

Closed daverolli closed 5 years ago

daverolli commented 6 years ago

The text below came from when I accidentally passed a gains XML to HebiKinematics() Error using HebiKinematics (line 571) Java exception occurred:

javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"group_gains"). Expected elements are <{}actuator>,<{}bracket>,<{}joint>,<{}link>,<{}rigid-body>,<{}robot>,<{}yv>

ennerf commented 5 years ago

formatted

Error using HebiKinematics (line 571)
Java exception occurred:

javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"group_gains"). Expected elements are
<{}actuator>,<{}bracket>,<{}joint>,<{}link>,<{}rigid-body>,<{}robot>,<{}yv>
ennerf commented 5 years ago

Changed it to the following.

Error using HebiKinematics (line 590)
Java exception occurred:

Input file is not a valid hrdf file:

unexpected element (uri:"", local:"group_gains"). Expected
elements are
<{}actuator>,<{}bracket>,<{}joint>,<{}link>,<{}rigid-body>,<{}robot>,<{}ys>