How to Model a Bicycle's Trajectory Using Continuous Time?

  • Context: Graduate 
  • Thread starter Thread starter hazuki
  • Start date Start date
  • Tags Tags
    Bicycle Modeling
Click For Summary
SUMMARY

This discussion focuses on modeling a bicycle's trajectory using continuous time from a discrete time model. The bicycle's position is defined in a 2D plane with parameters such as position (x, y), orientation (theta), steering angle (alpha), and distance between wheels (L). The transformation equations for the new position and orientation are provided, leading to the need for a continuous model where all variables become time-varying. The conversation emphasizes the importance of numerical integration techniques and stability constraints when transitioning from discrete to continuous models.

PREREQUISITES
  • Understanding of bicycle dynamics and kinematics
  • Familiarity with differential equations and numerical integration techniques
  • Knowledge of trigonometric functions and their applications in modeling
  • Experience with stability analysis in numerical methods
NEXT STEPS
  • Research numerical integration methods for differential equations, such as Runge-Kutta methods
  • Study stability constraints in numerical integration schemes
  • Explore time-varying functions and their implications in dynamic systems
  • Examine simpler models of bicycle dynamics before generalizing to more complex scenarios
USEFUL FOR

Mathematicians, engineers, and researchers interested in dynamic modeling, particularly in the fields of robotics, vehicle dynamics, and numerical analysis.

hazuki
Messages
1
Reaction score
0
First off, this is not a homework question. I am simply trying to figure out how to make a discrete time model into a continuous one. I don't expect anyone to work this out for me, I just want to start heading in the right direction.


I have a model of a bicycle on a 2d plane that has a position (x,y) and an orientation (theta). Theta is with respect to the X axis. The bike steers with the front wheel at an angle (alpha) with respect to the orientation (theta). The distance between the rear wheel and the front wheel is L. Now, given an initial state (x,y,theta), I am given a distance the bike will travel (d) at a certain steering angle (alpha). It can be shown that the new position and orientation of the bike is as follows:

x' = cx + sin(theta+Beta)*R
y' = cy - cos(theta+Beta)*R
theta' = (theta+Beta) (%mod 2pi optionally)

where

cx = x - sin(theta)*R
cy = y + cos(theta)*R
R = d/Beta
Beta = d*tan(alpha)/L

Now what I want to do is generate a trajectory of the bicycle given an arbitrary time varying function for both the steering angle (alpha) and the instantaenous velocity d(d)/dt. How would I go about starting a problem like this?

If we ignore all the details that I listed above, I should be able to write the new position and orentation as a vector:

| x' |
| y' | = f(x,y,theta,alpha,d)
|theta|

What steps do I need to take next? When I move to a continuous model, all the variables become time varying: f(x(t),y(t),theta(t),d(t)). My first thought is that I take the derivative of each component with respect to alpha and d. I would then end up integrating from time zero to time T given the initial state vector and given time varying functions for alpha and d.

Thanks
 
Physics news on Phys.org
You cannot integrate arbitrary functions in closed form. For most, numerical solutions are all that's possible. I assume the issue you're worried about is accumulation of errors using a finite time step, but in general I doubt there's much can be done about that.
 
Hey hazuki and welcome to the forums.

Are you aware of how to derive stability constraints for differential equations?

This kind of analysis is done for numerical integration schemes and I suggest you get a reference source, be it a text or an online source for error analysis.

Also a suggestion would be to start with the simpler model and then generalize the parameter after you have done the analysis for the simpler version.

So in terms of the specifics, start with R being a constant. Then extend R to the definition and keep Beta a constant. Then allow Beta to be defined in the way its defined.

What background do you have with numerical techniques for integrating systems of differential equations?
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
2
Views
2K
Replies
1
Views
1K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
Replies
8
Views
2K