Skip to content

Commit e974d41

Browse files
committed
more black formatting
1 parent 2751fcb commit e974d41

12 files changed

+550
-345
lines changed

roboticstoolbox/mobile/Animations.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from abc import ABC
66
from math import pi, atan2
77
import numpy as np
8+
89
# from scipy import integrate, linalg, interpolate
910
from pathlib import Path
1011
import matplotlib.pyplot as plt
@@ -14,6 +15,7 @@
1415
from spatialmath import SE2, base
1516
from roboticstoolbox import rtb_load_data
1617

18+
1719
class VehicleAnimationBase(ABC):
1820
"""
1921
Abstract base class to support animation of a vehicle on Matplotlib plot
@@ -114,6 +116,7 @@ def __del__(self):
114116
if self._object is not None:
115117
self._object.remove()
116118

119+
117120
# ========================================================================= #
118121
class VehicleMarker(VehicleAnimationBase):
119122
def __init__(self, **kwargs):
@@ -161,6 +164,7 @@ def _add(self, x=None, **kwargs):
161164

162165
# ========================================================================= #
163166

167+
164168
class VehiclePolygon(VehicleAnimationBase):
165169
def __init__(self, shape="car", scale=1, **kwargs):
166170
"""
@@ -272,7 +276,7 @@ def __init__(self, filename, origin=None, scale=1, rotation=0):
272276
273277
Creates an object that can be passed to a ``Vehicle`` subclass to
274278
depict the moving robot as an image icon during simulation. The image
275-
is translated and rotated to represent the vehicle configuration.
279+
is translated and rotated to represent the vehicle configuration.
276280
277281
The car is scaled to an image with a horizontal length (width) of
278282
``scale`` in the units of the plot. By default the image is assumed to
@@ -416,7 +420,7 @@ def _update(self, x):
416420

417421
V = np.diag(np.r_[0.02, 0.5 * pi / 180] ** 2)
418422

419-
v = VehiclePolygon(facecolor='None', edgecolor='k')
423+
v = VehiclePolygon(facecolor="None", edgecolor="k")
420424
# v = VehicleIcon('greycar2', scale=2, rotation=90)
421425

422426
veh = Bicycle(covar=V, animation=v, control=RandomPath(10), verbose=False)

roboticstoolbox/mobile/DistanceTransformPlanner.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class DistanceTransformPlanner(PlannerBase):
4040
4141
The map is described by a 2D occupancy ``occgrid`` whose elements are zero
4242
if traversable of nonzero if untraversable, ie. an obstacle.
43-
43+
4444
The cells are assumed to be unit squares. Crossing the cell horizontally or
4545
vertically is a travel distance of 1, and for the Euclidean distance
4646
measure, the crossing the cell diagonally is a distance of :math:`\sqrt{2}`.
@@ -148,7 +148,7 @@ def next(self, position):
148148
:raises RuntimeError: no plan has been computed
149149
:return: next robot position
150150
:rtype: ndarray(2)
151-
151+
152152
Return the robot position that is one step closer to the goal. Called
153153
by :meth:`query` to find a path from start to goal.
154154

0 commit comments

Comments
 (0)