@@ -22,7 +22,7 @@ class Vehicle(ABC):
22
22
def __init__ (self , covar = None , speed_max = np .inf , accel_max = np .inf , x0 = None , dt = 0.1 ,
23
23
control = None , animation = None , verbose = False , dim = 10 ):
24
24
r"""
25
- Superclass for vehicle kino-dynamic models
25
+ Superclass for vehicle kinematic models
26
26
27
27
:param covar: odometry covariance, defaults to zero
28
28
:type covar: ndarray(2,2), optional
@@ -260,7 +260,7 @@ def deriv(self, x, u):
260
260
261
261
def add_driver (self , driver ):
262
262
"""
263
- Add a driver agent
263
+ Add a driver agent (superclass method)
264
264
265
265
:param driver: a driver agent object
266
266
:type driver: VehicleDriver subclass
@@ -277,7 +277,7 @@ def add_driver(self, driver):
277
277
278
278
def run (self , N = 1000 , x0 = None , control = None , animation = None , plot = True ):
279
279
"""
280
- Simulate motion of vehicle
280
+ Simulate motion of vehicle (superclass method)
281
281
282
282
:param N: Number of simulation steps, defaults to 1000
283
283
:type N: int, optional
@@ -330,7 +330,7 @@ def run(self, N=1000, x0=None, control=None, animation=None, plot=True):
330
330
331
331
def init (self , x0 = None , animation = None , plot = False , control = None ):
332
332
"""
333
- Initialize for simulation
333
+ Initialize for simulation (superclass method)
334
334
335
335
:param x0: Initial state, defaults to value given to Vehicle constructor
336
336
:type x0: array_like(3) or array_like(2)
@@ -390,7 +390,7 @@ def init(self, x0=None, animation=None, plot=False, control=None):
390
390
391
391
def step (self , u1 = None , u2 = None ):
392
392
"""
393
- Step simulator by one time step
393
+ Step simulator by one time step (superclass method)
394
394
395
395
:return: odometry :math:`(\delta_d, \delta_\t heta)`
396
396
:rtype: ndarray(2)
@@ -453,7 +453,7 @@ def step(self, u1=None, u2=None):
453
453
454
454
def eval_control (self , control , x ):
455
455
"""
456
- Evaluate vehicle control input
456
+ Evaluate vehicle control input (superclass method)
457
457
458
458
:param control: vehicle control
459
459
:type control: [type]
@@ -500,7 +500,7 @@ def eval_control(self, control, x):
500
500
501
501
def stopif (self , stop ):
502
502
"""
503
- Stop the simulation
503
+ Stop the simulation (superclass method)
504
504
505
505
:param stop: stop condition
506
506
:type stop: bool
@@ -515,7 +515,7 @@ def stopif(self, stop):
515
515
516
516
def plot (self , path = None , block = True ):
517
517
"""
518
- [summary]
518
+ [summary] (superclass method)
519
519
520
520
:param path: [description], defaults to None
521
521
:type path: [type], optional
@@ -540,7 +540,7 @@ def plot_xyt_t(self, block=True, **kwargs):
540
540
541
541
def limits_va (self , v ):
542
542
"""
543
- Apply velocity and acceleration limits
543
+ Apply velocity and acceleration limits (superclass method)
544
544
545
545
:param v: commanded velocity
546
546
:type v: float
@@ -564,7 +564,7 @@ def limits_va(self, v):
564
564
565
565
def path (self , t = 10 , u = None , x0 = None ):
566
566
"""
567
- Compute path by integration
567
+ Compute path by integration (superclass method)
568
568
569
569
:param t: [description], defaults to None
570
570
:type t: [type], optional
@@ -621,14 +621,16 @@ def __init__(self,
621
621
** kwargs
622
622
):
623
623
r"""
624
- Create new bicycle kino-dynamic model
624
+ Create new bicycle kinematic model
625
625
626
626
:param l: wheel base, defaults to 1
627
627
:type l: float, optional
628
628
:param steer_max: [description], defaults to :math:`0.45\pi`
629
629
:type steer_max: float, optional
630
- :param **kwargs: additional arguments passed to :func :`Vehicle`
630
+ :param **kwargs: additional arguments passed to :class :`Vehicle`
631
631
constructor
632
+
633
+ :seealso: :class:`.Vehicle`
632
634
"""
633
635
super ().__init__ (** kwargs )
634
636
@@ -803,6 +805,16 @@ class Unicycle(Vehicle):
803
805
def __init__ (self ,
804
806
w = 1 ,
805
807
** kwargs ):
808
+ r"""
809
+ Create new unicycle kinematic model
810
+
811
+ :param w: vehicle width, defaults to 1
812
+ :type w: float, optional
813
+ :param **kwargs: additional arguments passed to :class:`Vehicle`
814
+ constructor
815
+
816
+ :seealso: :class:`.Vehicle`
817
+ """
806
818
super ().__init__ (** kwargs )
807
819
self ._w = w
808
820
0 commit comments