Skip to content

Commit

Permalink
Removed the temporal workarounds
Browse files Browse the repository at this point in the history
  • Loading branch information
bernatx committed May 14, 2020
1 parent a93ddab commit 09ec923
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions Examples/CppClient/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,6 @@ int main(int argc, const char *argv[]) {
auto map = world.GetMap();
auto transform = RandomChoice(map->GetRecommendedSpawnPoints(), rng);

// Temporary workaround:
// Move the spawn point a bit up otherwise they can collide.
transform.location.z += 0.30f;

// Spawn the vehicle.
auto actor = world.SpawnActor(blueprint, transform);
std::cout << "Spawned " << actor->GetDisplayId() << '\n';
Expand Down
3 changes: 0 additions & 3 deletions PythonAPI/test/smoke/test_snapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ def test_spawn_points(self):

spawn_points = self.world.get_map().get_spawn_points()[:20]
vehicles = self.world.get_blueprint_library().filter('vehicle.*')
# move spawn points a bit higher, they are too close to the floor
for t in spawn_points:
t.location.z += 0.30
batch = [(random.choice(vehicles), t) for t in spawn_points]
batch = [carla.command.SpawnActor(*args) for args in batch]
response = self.client.apply_batch_sync(batch, True)
Expand Down

0 comments on commit 09ec923

Please sign in to comment.