Removed the temporal workarounds

This commit is contained in:
bernat 2020-05-14 10:05:18 +02:00
parent a93ddab26a
commit 09ec923c87
2 changed files with 0 additions and 7 deletions

View File

@ -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';

View File

@ -24,9 +24,6 @@ class TestSnapshot(SyncSmokeTest):
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)