robot_diffdrive() describes a differential-drive base with wheel
radius \(r\) and track width \(b\) (distance between wheels):
\(v = r(\omega_R + \omega_L)/2\), \(\omega = r(\omega_R -
\omega_L)/b\). robot_bicycle() describes a kinematic bicycle (or
Ackermann car) with wheelbase \(L\), referenced at the rear axle:
\(\omega = v \tan\delta / L\). robot_unicycle() is the plain
unicycle. Optional limits are checked by mobile_simulate().
Usage
robot_unicycle(max_speed = Inf, max_turn_rate = Inf)
robot_diffdrive(
wheel_radius = 0.05,
track_width = 0.3,
max_speed = Inf,
max_turn_rate = Inf
)
robot_bicycle(wheelbase = 2.5, max_steer = pi/4, max_speed = Inf)Examples
dd <- robot_diffdrive(wheel_radius = 0.05, track_width = 0.3)
diffdrive_forward(dd, 10, 12)
#> v omega
#> 0.5500000 0.3333333