Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
pengzhenghao committed Apr 10, 2024
1 parent 55d0285 commit 2604701
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ def update_localization(self, ego_vehicle):
navi_pos = self._goal_node_path.getPos()
self._draw_line_to_navi(start_position=ego_vehicle.position, end_position=(navi_pos[0], navi_pos[1]))


def get_current_lateral_range(self, current_position, engine) -> float:
return self.current_lane.width * 2

Expand Down
2 changes: 1 addition & 1 deletion metadrive/component/vehicle/vehicle_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from metadrive.engine.asset_loader import AssetLoader
from panda3d.core import TransparencyAttrib, LineSegs, NodePath, BoundingHexahedron


class DefaultVehicle(BaseVehicle):
PARAMETER_SPACE = ParameterSpace(VehicleParameterSpace.DEFAULT_VEHICLE)
# LENGTH = 4.51
Expand Down Expand Up @@ -298,7 +299,6 @@ class VaryingDynamicsBoundingBoxVehicle(VaryingDynamicsVehicle):
#
# return r


def _add_visualization(self):
if self.render:
[path, scale, offset, HPR] = self.path
Expand Down
1 change: 0 additions & 1 deletion metadrive/examples/drive_in_real_env_with_bounding_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"num_scenarios": 3 if use_waymo else 10,
"debug": True,
"use_bounding_box": True,

"vehicle_config": {
"show_line_to_dest": True,
"show_line_to_navi_mark": True,
Expand Down

0 comments on commit 2604701

Please sign in to comment.