I Solving Sub-Problem for OpenAI Lunar Lander v2: Seeking Advice

AI Thread Summary
The discussion focuses on solving a sub-problem related to the OpenAI Lunar Lander v2 project, specifically in a 2D context. The user seeks to determine the magnitudes of main and side engine thrusts, as well as the angle of the main engine nozzle, given various parameters like expected accelerations, mass, moment of inertia, and current angles. The dynamics are expressed through equations involving thrust and acceleration, which the user finds challenging to solve. Suggestions include simplifying the equations by using body coordinates to account for the rotation of input acceleration and gravity. The user is primarily interested in numerical solutions, although an analytical approach would be welcomed.
genxium
Messages
137
Reaction score
2
I'm currently working on a pet project which is similar to the OpenAI Lunar Lander v2 (hence the problem is in a 2D context), and seeking help for a sub-problem that's been blocking me for a while.

At any instant of time, I'm to find
  • Fe: magnitude of main engine thrust, must be >0
  • Fs: magnitude of side engine thrust (>0 to point to the "right w.r.t. lander body", and < 0 to point to opposite direction),
  • φ: tilted angle of main engine nozzle w.r.t. lander body, should be within [-π/2, +π/2]

, given
  • ax: the expected x-acceleration of COG (center of gravity, same below)
  • ay: the expected y-acceleration of COG
  • βC: the expected angular acceleration w.r.t axis through COG and perpendicular to the plane (this screen)
  • m: current mass of the whole lander
  • IC: current moment of inertia of the whole lander w.r.t. same axis of βC
  • θ: current tilted angle of the lander body w.r.t. the fixed gravity direction
  • h: current distance of COG and the nozzle hinge as shown in the figure below
  • g: fixed gravity acceleration
  • H: total height of the lander body
lunarlander_rotation-lunarlander_forces.jpg


To my understanding, the dynamics are (don't know whether I can use TeX here, tried wrapping with $$ and ## but preview didn't work)
  • -Fe*sin(θ+φ) + Fs*cosθ = ax*m
  • Fe*cos(θ+φ) + Fs*sinθ - g*m = ay*m
  • Fe*sinφ*h + Fs*(H-h) = βC*IC
and the "to find variables (in red)" seem non-trivial to solve for.

Is there any advice for solving them at least numerically? An analytical solution will certainly be much appreciated but not a pursuit here.
 
Last edited:
Physics news on Phys.org
At a glance it appears your equations can be simplified a bit by expressing the force and torque equations using body coordinates in which input acceleration and gravity are rotated by ##\theta##.
 
I have recently been really interested in the derivation of Hamiltons Principle. On my research I found that with the term ##m \cdot \frac{d}{dt} (\frac{dr}{dt} \cdot \delta r) = 0## (1) one may derivate ##\delta \int (T - V) dt = 0## (2). The derivation itself I understood quiet good, but what I don't understand is where the equation (1) came from, because in my research it was just given and not derived from anywhere. Does anybody know where (1) comes from or why from it the...
This has been discussed many times on PF, and will likely come up again, so the video might come handy. Previous threads: https://www.physicsforums.com/threads/is-a-treadmill-incline-just-a-marketing-gimmick.937725/ https://www.physicsforums.com/threads/work-done-running-on-an-inclined-treadmill.927825/ https://www.physicsforums.com/threads/how-do-we-calculate-the-energy-we-used-to-do-something.1052162/
Back
Top