From 039226e2d452f64a181f8aa23ffa10911f1ef966 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 17 Feb 2023 10:11:52 +0100 Subject: [PATCH] Sync submodule (#632) Co-authored-by: ad-daniel Co-authored-by: Yannick Goumaz <61198661+ygoumaz@users.noreply.github.com> --- .../webots/lib/controller/python/vehicle/car.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/webots_ros2_driver/webots/lib/controller/python/vehicle/car.py b/webots_ros2_driver/webots/lib/controller/python/vehicle/car.py index a0ecd3412..606fc31e7 100644 --- a/webots_ros2_driver/webots/lib/controller/python/vehicle/car.py +++ b/webots_ros2_driver/webots/lib/controller/python/vehicle/car.py @@ -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): @@ -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) @@ -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()