Move a Tricycle: Calculate X_current Position

  • Thread starter Thread starter transilvanian
  • Start date Start date
AI Thread Summary
To calculate the new position of a tricycle, define the initial position as X_initial = (x, y, theta) and incorporate the angle of the front wheel (phi), speed, and duration. The distance between the back wheels and the front wheel is Z cm, which is crucial for the calculations. A function can be created in MATLAB or any programming language to model the motion, using a time vector to represent the duration of movement. The new position X_current can be expressed as a combination of the initial position and the parametric equations for x(t), y(t), and theta(t). This approach allows for flexible path modeling, such as circular trajectories.
transilvanian
Messages
2
Reaction score
0
Hi,
I have a fairly simple question, but I am a newbie. I have to move a tricycle from one position to another. The position of the middle of the two back wheels is described as X_initial = (x, y, theta). The function (in matlab, but I guess it could be in any language) should take in parameter the initial position, the angle of the front wheel (phi), the speed of the front wheel (meter/second) and the duration (in second) and then return the new position X_current (x,y, theta).

The distance between the two back wheels is Z cm and the distance between X and the front wheel is also Z cm.

How can I calculate such a problem?
Thanks
 
Last edited:
Physics news on Phys.org
are you trying to write a function modelling the motion of your tricycle?

make a vector t, t=t0:tmax (t = [0 1 2 3 4 ... tmax]

Pos = < X0 + X(t), Y0 +Y(t), theta0 + theta(t) >

choose x(t), y(t), and theta(t) to parametrize any curve you want the tricycle to take, like a circle. hope this helps
 
Hello! Let's say I have a cavity resonant at 10 GHz with a Q factor of 1000. Given the Lorentzian shape of the cavity, I can also drive the cavity at, say 100 MHz. Of course the response will be very very weak, but non-zero given that the Loretzian shape never really reaches zero. I am trying to understand how are the magnetic and electric field distributions of the field at 100 MHz relative to the ones at 10 GHz? In particular, if inside the cavity I have some structure, such as 2 plates...
Back
Top