skbot.ignition.sdformat.get_version

skbot.ignition.sdformat.get_version(sdf)[source]

Returns the version of a SDF string.

Parameters
sdfstr

The SDFormat XML to be parsed.

Returns
versionstr

A string containing the SDF version, e.g. “1.8”.

Notes

This function only checks the root tag and does not parse the entire string.

Examples

Return type

str