004-template.py 515 B

12345678910111213141516171819202122232425262728
  1. import pathlib
  2. test_file = pathlib.Path(__file__)
  3. test_dir = test_file.parent
  4. project_dir = test_dir.parent
  5. import sys
  6. sys.path.append(str(project_dir.absolute()))
  7. import source as communication
  8. def main():
  9. helper = communication.position_message_builder()
  10. helper.set_x("10")
  11. helper.set_y("15")
  12. helper.set_z("11")
  13. helper.set_yaw("0")
  14. helper.set_roll("90")
  15. helper.set_pitch("70")
  16. result = helper.build()
  17. print(type(result))
  18. if __name__ == "__main__":
  19. main()