Last active
November 17, 2022 13:24
-
-
Save marcoag/c475774a6c33ba638997ea2cf32fc1a6 to your computer and use it in GitHub Desktop.
SDF error through drake: Axis missing in joint
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""" | |
<sdf version="1.7"> | |
<model name="robot2"> | |
<link name="base_link"/> | |
<link name="moving_link"/> | |
<joint name="slider" type="prismatic"> | |
<parent>base_link</parent> | |
<child>moving_link</child> | |
</joint> | |
</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