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
 
Thread 'Gauss' law seems to imply instantaneous electric field'
Imagine a charged sphere at the origin connected through an open switch to a vertical grounded wire. We wish to find an expression for the horizontal component of the electric field at a distance ##\mathbf{r}## from the sphere as it discharges. By using the Lorenz gauge condition: $$\nabla \cdot \mathbf{A} + \frac{1}{c^2}\frac{\partial \phi}{\partial t}=0\tag{1}$$ we find the following retarded solutions to the Maxwell equations If we assume that...
Maxwell’s equations imply the following wave equation for the electric field $$\nabla^2\mathbf{E}-\frac{1}{c^2}\frac{\partial^2\mathbf{E}}{\partial t^2} = \frac{1}{\varepsilon_0}\nabla\rho+\mu_0\frac{\partial\mathbf J}{\partial t}.\tag{1}$$ I wonder if eqn.##(1)## can be split into the following transverse part $$\nabla^2\mathbf{E}_T-\frac{1}{c^2}\frac{\partial^2\mathbf{E}_T}{\partial t^2} = \mu_0\frac{\partial\mathbf{J}_T}{\partial t}\tag{2}$$ and longitudinal part...
Back
Top