test.py 290 B

123456789101112
  1. #!/usr/bin/env python3
  2. import sys
  3. import logging
  4. logging.basicConfig(stream=sys.stderr, level='DEBUG', format='%(levelname)s: %(message)s')
  5. from uavcan import dsdl
  6. parsed = dsdl.parse_namespaces(['uavcan']);
  7. if parsed:
  8. logging.info('%d data types parsed successfully', len(parsed))