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
+22-8Lines changed: 22 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -21,9 +21,9 @@ this frame.
21
21
22
22
# Arguments and parameters:
23
23
24
-
name: Name of the rolling wheel joint component
25
-
radius: Radius of the wheel
26
-
angles: Angles to rotate world-frame into frame_a around y-, z-, x-axis
24
+
- `radius`: Radius of the wheel
25
+
- `angles`: Angles to rotate world-frame into frame_a around y-, z-, x-axis
26
+
- `surface`: By default, the wheel is rolling on a flat xz plane. A function `surface = (x, z)->y` may be provided to define a road surface. The function should return the height of the road at `(x, z)`.
27
27
28
28
# Variables:
29
29
- `x`: x-position of the wheel axis
@@ -52,7 +52,7 @@ angles: Angles to rotate world-frame into frame_a around y-, z-, x-axis
sol =solve(prob, FBDF(autodiff=false), abstol=1e-8, reltol=1e-8)
106
+
# plot(sol)
107
+
tv =0:0.5:4
108
+
@testsol(tv, idxs=worldwheel.wheel.body.r_0[1]) ≈sol(tv, idxs=worldwheel.wheel.body.r_0[2]) .-0.3*sqrt(2) rtol=1e-6# The sqrt(2) is to account for the shifted contact point at a 45 degree plane
0 commit comments