Move tricycle in circle during x sec at speed s

  • Thread starter Thread starter transilvanian
  • Start date Start date
  • Tags Tags
    Circle Speed
Click For Summary
SUMMARY

The discussion focuses on programming a tricycle's movement in a circular path using MATLAB, specifically by calculating the instant center of rotation based on the tricycle's parameters. Key variables include M (the center point between the back wheels), phi (the front wheel angle), speed (in m/s), and duration (in seconds). The user provides a MATLAB function to compute the new position of the tricycle but seeks assistance in determining the final position after movement. The geometry and calculations for the instant center of rotation and distance traveled are critical components of the solution.

PREREQUISITES
  • Understanding of MATLAB programming
  • Knowledge of tricycle kinematics
  • Familiarity with the concept of instant center of rotation
  • Basic trigonometry for angle and distance calculations
NEXT STEPS
  • Research MATLAB functions for circular motion simulation
  • Learn about kinematic equations for tricycles
  • Explore the concept of instant center of rotation in depth
  • Investigate how to visualize movement in MATLAB using plots
USEFUL FOR

This discussion is beneficial for robotics engineers, MATLAB programmers, and students studying kinematics who are interested in simulating vehicle motion and understanding geometric transformations in programming environments.

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: 454

Similar threads

  • · Replies 15 ·
Replies
15
Views
1K
  • · Replies 38 ·
2
Replies
38
Views
4K
Replies
15
Views
2K
  • · Replies 63 ·
3
Replies
63
Views
5K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
2
Views
2K
Replies
7
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 29 ·
Replies
29
Views
3K
  • · Replies 38 ·
2
Replies
38
Views
4K