fork(1) download
  1. # Website https://c...content-available-to-author-only...x.org/courses/course-v1:TUMx+AUTONAVx+2T2015/courseware/535451105f364d2e852366ed8204cf68/568642e8ce5a42ec8108b57b0f86a818/
  2.  
  3. import quadrotor.command as cmd
  4. from math import sqrt
  5.  
  6. def plan_mission(mission):
  7.  
  8. # this is an example illustrating the different motion commands,
  9. # replace them with your own commands and activate all beacons
  10. commands = [
  11. cmd.up(1),
  12. cmd.right(2),
  13. cmd.forward(sqrt(25)),
  14. cmd.turn_left(90),
  15. cmd.forward(sqrt(16)),
  16. cmd.turn_left(90),
  17. cmd.forward(sqrt(16)),
  18. cmd.turn_left(90),
  19. cmd.forward(sqrt(4)),
  20. cmd.turn_left(90),
  21. cmd.forward(sqrt(4)),
  22. ]
  23.  
  24. mission.add_commands(commands)
  25.  
  26.  
Runtime error #stdin #stdout #stderr 0.01s 7732KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "prog.py", line 3, in <module>
ImportError: No module named quadrotor.command