Skip to content

Commit

Permalink
Sync submodule (#632)
Browse files Browse the repository at this point in the history
Co-authored-by: ad-daniel <[email protected]>
Co-authored-by: Yannick Goumaz <[email protected]>
  • Loading branch information
3 people authored Feb 17, 2023
1 parent e06c24c commit 039226e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions webots_ros2_driver/webots/lib/controller/python/vehicle/car.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ def __init__(self):
self.api.wbu_car_get_right_steering_angle.restype = ctypes.c_double
self.api.wbu_car_get_track_front.restype = ctypes.c_double
self.api.wbu_car_get_track_rear.restype = ctypes.c_double
self.api.wbu_car_get_wheel_base.restype = ctypes.c_double
self.api.wbu_car_get_wheelbase.restype = ctypes.c_double
self.api.wbu_car_get_wheel_encoder.restype = ctypes.c_double
self.api.wbu_car_get_wheel_speed.restype = ctypes.c_double

self.api.wbu_car_init()

def __del__(self):
self.api.wbu_can_cleanup()
self.api.wbu_car_cleanup()
super().__del__()

def enableIndicatorAutoDisabling(self, enable: bool):
Expand Down Expand Up @@ -100,7 +100,7 @@ def getType(self) -> int:
return self.type

def getWheelbase(self):
return self.wheel_base
return self.wheelbase

def getWheelEncoder(self, wheel_index):
return self.api.wbu_car_get_wheel_encoder(wheel_index)
Expand Down Expand Up @@ -174,5 +174,5 @@ def type(self) -> int:
return self.api.wbu_car_get_type()

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

0 comments on commit 039226e

Please sign in to comment.