Created
November 17, 2022 13:24
-
-
Save marcoag/63bb891dbcd42b315530a5844b03f557 to your computer and use it in GitHub Desktop.
SDF error through drake: unknown element
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from pydrake.multibody.parsing import ( | |
Parser, | |
) | |
from pydrake.multibody.plant import ( | |
MultibodyPlant, | |
) | |
def main() -> None: | |
plant = MultibodyPlant(time_step=0.01) | |
parser = Parser(plant) | |
notknownelement = R"""<?xml version="1.0"?> | |
<sdf version="1.7"> | |
<model name="robot2"> | |
<unknownelement>moving_link</unknownelement> | |
</model> | |
</sdf> | |
"""; | |
parser.AddModelFromString(notknownelement, 'sdf'); | |
if __name__ == '__main__': | |
sys.exit(main()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment