Skip to content

Commit fd863ce

Browse files
Fix typos in Python Car Lib (cyberbotics#5897)
* Fix typos in Python Car Lib The wheel_base vs wheelbase part might want some further looking into for the sake of consistency * Update car.py --------- Co-authored-by: Olivier Michel <Olivier.Michel@cyberbotics.com>
1 parent 9ac9434 commit fd863ce

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • lib/controller/python/vehicle

lib/controller/python/vehicle/car.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ def __init__(self):
5050
self.api.wbu_car_get_right_steering_angle.restype = ctypes.c_double
5151
self.api.wbu_car_get_track_front.restype = ctypes.c_double
5252
self.api.wbu_car_get_track_rear.restype = ctypes.c_double
53-
self.api.wbu_car_get_wheel_base.restype = ctypes.c_double
53+
self.api.wbu_car_get_wheelbase.restype = ctypes.c_double
5454
self.api.wbu_car_get_wheel_encoder.restype = ctypes.c_double
5555
self.api.wbu_car_get_wheel_speed.restype = ctypes.c_double
5656

5757
self.api.wbu_car_init()
5858

5959
def __del__(self):
60-
self.api.wbu_can_cleanup()
60+
self.api.wbu_car_cleanup()
6161
super().__del__()
6262

6363
def enableIndicatorAutoDisabling(self, enable: bool):
@@ -100,7 +100,7 @@ def getType(self) -> int:
100100
return self.type
101101

102102
def getWheelbase(self):
103-
return self.wheel_base
103+
return self.wheelbase
104104

105105
def getWheelEncoder(self, wheel_index):
106106
return self.api.wbu_car_get_wheel_encoder(wheel_index)
@@ -174,5 +174,5 @@ def type(self) -> int:
174174
return self.api.wbu_car_get_type()
175175

176176
@property
177-
def wheel_base(self) -> float:
178-
return self.api.wbu_car_get_wheel_base()
177+
def wheelbase(self) -> float:
178+
return self.api.wbu_car_get_wheelbase()

0 commit comments

Comments
 (0)