You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/wheels.jl
+13-4Lines changed: 13 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -359,11 +359,13 @@ To work properly, the gravity acceleration vector g of the world must point in t
359
359
360
360
# Arguments and parameters:
361
361
- `iscut`: if more than one wheel set is connected to the same rigid body, `iscut` must be set to true for all but one set. This avoids overconstraining the system by replacing the planar joint giving the set coordinates by an unconstrained FreeMotion joint.
362
+
- `radius`: Radius of one wheel
363
+
- `track`: Distance between the two wheels (= axle track)
362
364
363
365
# Connectors:
364
366
- `frame_middle`: Frame fixed in middle of axis connecting both wheels (z-axis: along wheel axis, y-axis: upwards)
365
-
- `frame1`: Frame fixed in center point of left wheel(z-axis: along wheel axis, y-axis: upwards)
366
-
- `frame2`: Frame fixed in center point of right wheel(z-axis: along wheel axis, y-axis: upwards)
367
+
- `frame1`: Frame fixed in center point of left wheel, rotating with the wheel (z-axis: along wheel axis, y-axis: upwards when wheel angle is zero)
368
+
- `frame2`: Frame fixed in center point of right wheel, rotating with the wheel (z-axis: along wheel axis, y-axis: upwards when wheel angle is zero)
367
369
- `axis1`: 1-dim. Rotational flange that drives the joint
368
370
- `axis2`: 1-dim. Rotational flange that drives the joint
369
371
- `support`: Support of 1-dim axes
@@ -500,14 +502,21 @@ Two wheels are connected by an axis and can rotate around this axis. The wheels
500
502
501
503
# Arguments and parameters:
502
504
- `iscut`: if more than one wheel set is connected to the same rigid body, `iscut` must be set to true for all but one set. This avoids overconstraining the system by replacing the planar joint giving the set coordinates by an unconstrained FreeMotion joint.
505
+
- `radius`: Radius of one wheel
506
+
- `m_wheel`: Mass of one wheel
507
+
- `I_axis`: Moment of inertia of one wheel around its rotation axis
508
+
- `I_long`: Moment of inertia of one wheel perpendicular to its rotation axis
509
+
- `track`: Distance between the two wheels (= axle track)
503
510
504
511
# Connectors
505
512
- `frame_middle`: Frame fixed in middle of axis connecting both wheels (z-axis: along wheel axis, y-axis: upwards)
506
-
- `frame1`: Frame fixed in center point of left wheel(z-axis: along wheel axis, y-axis: upwards)
507
-
- `frame2`: Frame fixed in center point of right wheel(z-axis: along wheel axis, y-axis: upwards)
513
+
- `frame1`: Frame fixed in center point of left wheel, rotating with the wheel (z-axis: along wheel axis, y-axis: upwards when wheel angle is zero)
514
+
- `frame2`: Frame fixed in center point of right wheel, rotating with the wheel (z-axis: along wheel axis, y-axis: upwards when wheel angle is zero)
508
515
- `axis1`: 1-dim. Rotational flange that drives the left wheel
509
516
- `axis2`: 1-dim. Rotational flange that drives the right wheel
510
517
- `support`: Support of 1D axes
518
+
519
+
To connect driving torques or friction to rotation of the wheels, connect between `axis1` and `support`, and `axis2` and `support` respectively. To connect the wheel set to, e.g., a body, connect the `frame_middle` to the body frame.
0 commit comments