Simulating Drone Lift Off
Posted: 21 Feb 2024, 03:19
Hello,
I'm trying to make a drone that I have modelled lift off the ground to a certain altitude. I understand that it can be done by using sim.addForceandTorque. However, it either is stuck to the ground or it is flying off to the sky very fast while flipping off and going all over the place. Can someone explain how simulating lift off works and maybe give a python example if possible? This is my code:
sim.addForceAndTorque(self.drone, [0,0,1], [0,0,0])
I'm trying to make a drone that I have modelled lift off the ground to a certain altitude. I understand that it can be done by using sim.addForceandTorque. However, it either is stuck to the ground or it is flying off to the sky very fast while flipping off and going all over the place. Can someone explain how simulating lift off works and maybe give a python example if possible? This is my code:
sim.addForceAndTorque(self.drone, [0,0,1], [0,0,0])