Menu

General questions

PS-Drone
2015-05-22
2015-06-06
  • Pierre Schegg

    Pierre Schegg - 2015-05-22

    Hi
    First of all thank you for your work.
    When launching python ps_drone.py in a terminal it works just fine but when i go in a python interpreter (spyder python 2.7) and i try to "import ps_drone" i get the "ImportError: No module named ps_drone" error.
    I tried to export PYTHONPATH=$PYTHONPATH:.
    and sudo python ps_drone.py install
    both work but i still get the same error in spyder.

    What did i miss?

    Thank you for your help

     
  • PS-Drone

    PS-Drone - 2015-05-22

    Hi Pierre,

    I don't know spyder python, is it that "Scientific PYthon Development EnviRonmen"-library ?
    However, I tested PS-Drone with PyPy and IronPython. PS-Drone has no install-function yet, so the only thing I had to do is to copy ps_drone.py to my working directory with the programs I am coding.

    This may not be the most satisfactory answer, but I hope it helps anyway.

    Have a great day,
    Philipp

     
  • Pierre Schegg

    Pierre Schegg - 2015-06-06

    Hi
    Other quick question. Is there a way we can get the camera's image in the form of a matrix (numpy array for instance) in python?
    Can we use this in OpenCV, or get something i can use in OpenCV?
    Thank you

     
  • PS-Drone

    PS-Drone - 2015-06-06

    Hi Pierre,
    yes, this is possible (and often necessary). Just google for openCV and NumPy, there are tons of discriptions and tutorials.
    CU,
    Philipp

     

Log in to post a comment.

MongoDB Logo MongoDB