i want to move a drone to the left ,right,front and back .can anyone show any command or api to satisfy these works. anyone can help me?
its very important for me.
I would suggest to use Velocity APIs instead of Attitude Control APIs.
It is very difficult to control the drone if you are sending Attitude commands, you will need to compute the commands at a very fast rate and make sure there is minimum communication delay.
If you still want to control the drone via Attitude, please check this Mavros guide or DJI ROS sdk [/dji_sdk/flight_control_setpoint_rollpitch_yawrate_zposition] guide depending upon your choice of autopilot.