amymcgovern / pyparrot

Python interface for Parrot Drones
MIT License
274 stars 129 forks source link

features in move_relative and current drone state #163

Open ahafeez8 opened 5 years ago

ahafeez8 commented 5 years ago

The value of dradians in move_relative function, is this degree of rotation? If so, in which axis does it rotate? Also, I am publishing pyparrot's commands to Bebop 1 for Reinforcement learning, I need to obtain an initial state of the drone. I saw move_relative function as most related to my problem where I can make my algorithm learn how much distance in x, y, z to cover to obtain optimal score. Given a scenario, I run safe_takeoff(5) at default height, and from there I give control to RL algorithm which works on state and actions, it needs to know the initial state in this case x,y,z so it can learn and move relative according to the initial state. How do I find that initial state? It worked for me in gazebo simulation since that work on grids.

Other solution seemed like obtaining latitude, longitude value to capture my initial state, but using sensors.sensors_dict.get(moveToChanged_latitude') keeps giving me None or 500 default value.

amymcgovern commented 5 years ago

by definition, it is not degrees. it is radians. And the rotation is about the z axis (e.g the drone turns).

for your initial state, they are all 0. They are all relative to where you turned on your drone.