Move tricycle in circle during x sec at speed s

  • Thread starter Thread starter transilvanian
  • Start date Start date
  • Tags Tags
    Circle Speed
AI Thread Summary
The discussion revolves around programming a tricycle's movement in a circular path using MATLAB, focusing on the relationship between the tricycle's center point, front wheel angle, speed, and duration. Key variables include the center point (M), front wheel angle (phi), speed, and duration, with an emphasis on calculating the instant center of rotation. The user has shared a partial function and is seeking assistance with determining the new position of the tricycle after movement. There are concerns about the correctness of the movement calculations and geometry used in the function. The thread highlights the need for clarity in mathematical modeling for accurate simulation.
transilvanian
Messages
2
Reaction score
0

Homework Statement


I need to get a tricycle to move around a circle (depending on the angle of the front wheel) in MATLAB (but any mathematical formulae would help).
I have the variables: M (x, y, theta) which is the center point between the 2 back wheels and the angle of the tricycle, the angle phi of the front wheel, the speed in m/s and the duration in s.

Homework Equations


The instant center or rotation calculated from the position and angle of the front wheel.
http://en.wikipedia.org/wiki/Instant_centre_of_rotation

The Attempt at a Solution


This is what I got so far... and I am stuck.

function [x, y, theta] = MoveTricycle(M, phi, speed, duration)

front_wheel = [30*cos(M(3))+M(1) 30*sin(M(3))+Xt(2)];
distance = (v * dt)/2*pi;

alpha = 180-phi-90
radius = 30/cos(alpha);
ICR = [radius*cos(alpha*180/pi)+M(1) radius*sin(alpha*180/pi)+M(2)];
Angle_ICR = 180-90-alpha;front_wheel_after(1) = IRC(1) + cos(distance) * radius ;
front_wheel_after(2) = IRC(1) + sin(distance) * radius ;

% I need to find the position of M after the movement...
M = ?

I'm not even sure if the movement part is ok...
Thanks for your help
 
Last edited:
Physics news on Phys.org
Does the following look like the right geometry?
 

Attachments

  • tri071.jpg
    tri071.jpg
    22.5 KB · Views: 436
I multiplied the values first without the error limit. Got 19.38. rounded it off to 2 significant figures since the given data has 2 significant figures. So = 19. For error I used the above formula. It comes out about 1.48. Now my question is. Should I write the answer as 19±1.5 (rounding 1.48 to 2 significant figures) OR should I write it as 19±1. So in short, should the error have same number of significant figures as the mean value or should it have the same number of decimal places as...
Thread 'A cylinder connected to a hanging mass'
Let's declare that for the cylinder, mass = M = 10 kg Radius = R = 4 m For the wall and the floor, Friction coeff = ##\mu## = 0.5 For the hanging mass, mass = m = 11 kg First, we divide the force according to their respective plane (x and y thing, correct me if I'm wrong) and according to which, cylinder or the hanging mass, they're working on. Force on the hanging mass $$mg - T = ma$$ Force(Cylinder) on y $$N_f + f_w - Mg = 0$$ Force(Cylinder) on x $$T + f_f - N_w = Ma$$ There's also...
Back
Top