Flying Drone In A Circle With the Camera Pointed at the Center
I am attempting to take pictures of an object from 360 degrees. Doing this with the RC is very difficult to do, but I found that there is code to do this in the AirSim/MavLinkCom/README.md under Examples. Does somebody know how I can execute this code?
You don't need MavLinkTest, that is just a unit test app. But instead you can do this using DroneShell to create an orbit that keeps the drone pointed at the center of the circle:
==||=> circlebypath -radius 5 -drivetrain 1 -yaw 90 -velocity 1 -z -5
This is perfect for creating 3D scans.
==||=> circlebypath -radius 5 -drivetrain 1 -yaw 90 -velocity 1 -z -5 ==||=> Async RPC Error: rpclib: client error C0002: Function 'moveOnPath' was called with an invalid number of arguments. Expected: 7, got: 6
The drone shell is saying I do not have enough arguments. I even tried putting the duration parameter in, but I still go the same error from drone shell.
this means your unreal environment is using incompatible AirSim bits. See the steps listed in unreal_blocks.md.
It works thank you. What are the units for when we specify radius and velocity? Is it m and m/s respectively?
yes, all distances are in meters, and all velocities are in meters per second.
Thank you for your help. I am closing this thread.
We had a bug that caused yawing unnaturally for the drone. It's fixed now. There is orbit.py in PythonClient by @lovettchris which does circle while pointing at origin.