Move a Tricycle: Calculate X_current Position

  • Context: Undergrad 
  • Thread starter Thread starter transilvanian
  • Start date Start date
Click For Summary
SUMMARY

The discussion focuses on calculating the current position of a tricycle using a function in MATLAB. The initial position is defined as X_initial = (x, y, theta), with parameters including the angle of the front wheel (phi), speed (in meters per second), and duration (in seconds). The distance between the back wheels and the front wheel is specified as Z cm. The proposed solution involves creating a time vector and parametrizing the motion through functions for x(t), y(t), and theta(t) to model the tricycle's trajectory.

PREREQUISITES
  • Understanding of MATLAB programming
  • Basic knowledge of kinematics and motion modeling
  • Familiarity with trigonometric functions for angle calculations
  • Concept of parametric equations in motion
NEXT STEPS
  • Implement a MATLAB function to calculate X_current position based on given parameters
  • Explore MATLAB's vectorization techniques for efficient computation
  • Research how to model circular motion using parametric equations
  • Learn about the effects of varying speed and angle on trajectory in motion simulations
USEFUL FOR

Students learning motion dynamics, MATLAB programmers developing simulation models, and engineers designing vehicle motion algorithms.

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
 

Similar threads

  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 10 ·
Replies
10
Views
6K
  • · Replies 11 ·
Replies
11
Views
2K
Replies
9
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 19 ·
Replies
19
Views
10K
  • · Replies 35 ·
2
Replies
35
Views
5K