Anders and Briegel in Python
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
438B

  1. import requests
  2. import abp, json
  3. import time
  4. client = abp.Client(clear=True)
  5. client.add_node(0)
  6. client.add_node(1)
  7. client.add_node(99)
  8. client.act_local_rotation(0, 10)
  9. client.act_local_rotation(1, 10)
  10. client.act_local_rotation(99, 10)
  11. client.act_cz(0, 1)
  12. client.act_cz(0, 99)
  13. client.act_cz(1, 99)
  14. for i in range(10):
  15. client.add_node(i+10)
  16. client.act_local_rotation(i+10, 10)
  17. client.act_cz(0, i+10)
  18. print client.get_state()