Skip to content

Instantly share code, notes, and snippets.

@marcoag
Created November 17, 2022 13:34
Show Gist options
  • Save marcoag/bc3a3bd5f90e98833dc97d1c33f57b14 to your computer and use it in GitHub Desktop.
Save marcoag/bc3a3bd5f90e98833dc97d1c33f57b14 to your computer and use it in GitHub Desktop.
SDF error through drake: Unable to read SDF string
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 = '';
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