waypoint bug fixed: height

This commit is contained in:
German Ros 2018-12-18 15:54:02 -08:00 committed by nsubiron
parent 1ca9e31ae8
commit 9dd350f322
3 changed files with 3 additions and 5 deletions

View File

@ -202,9 +202,7 @@ class LocalPlanner(object):
self._waypoints_queue.popleft()
if debug:
draw_waypoints(
self._vehicle.get_world(), [
self._target_waypoint], z=40)
draw_waypoints(self._vehicle.get_world(), [self._target_waypoint], self._vehicle.get_location().z + 1.0)
return control

View File

@ -124,7 +124,7 @@ class RoamingAgent(object):
target_vehicle_waypoint.lane_id != ego_vehicle_waypoint.lane_id:
return False
loc = target_vehicle_waypoint.get_location()
loc = target_vehicle.get_location()
return is_within_distance_ahead(loc, ego_vehicle_location, self._vehicle.get_transform().rotation.yaw,
proximity_threshold)

View File

@ -263,7 +263,7 @@ class CameraManager(object):
x=24, z=28.0), carla.Rotation(
roll=-90, pitch=-90)),
carla.Transform(carla.Location(x=-5.5, z=2.8), carla.Rotation(pitch=-15))]
self._transform_index = 1
self._transform_index = 2
self._sensors = [
['sensor.camera.rgb', cc.Raw, 'Camera RGB']]
world = self._parent.get_world()