This example shows how a world in a SDF file can be converted to USD.
You will need all of the dependencies for sdformat, along with the following additional dependencies:
Build sdformat, you should now have an executable named sdf2usd
, which can be used to convert a SDF world file to a USD file.
The following command converts the example shapes.sdf
file to its USD representation, stored in a file called shapes.usd
:
sdf2usd ../shapes.sdf shapes.usd
You can now view the contents of the generated USD file with usdview
(this should have been installed when setting up the USD dependency):
usdview shapes.usd