Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

synchronize.py 同步操作未关闭 #4

Open
Jason07709 opened this issue Nov 23, 2022 · 3 comments
Open

synchronize.py 同步操作未关闭 #4

Jason07709 opened this issue Nov 23, 2022 · 3 comments

Comments

@Jason07709
Copy link

finally:
    world.apply_settings(original_settings)
    print('destroying actors')
    client.apply_batch([carla.command.DestroyActor(x) for x in actor_list])
    for sensor in sensor_list:
        sensor.destroy()
    print('done.')

最后应该将同步操作关闭:
finally:
world.apply_settings(original_settings)
print('destroying actors')
client.apply_batch([carla.command.DestroyActor(x) for x in actor_list])
for sensor in sensor_list:
sensor.destroy()
print('done.')
settings = world.get_settings()
settings.synchronous_mode = False
settings.fixed_delta_seconds = None
world.apply_settings(settings)

@DerrickXuNu
Copy link
Owner

欢迎提交PR修改

@dajiba6
Copy link

dajiba6 commented Feb 15, 2023

apply的是original_settings, 同步模式已经关了

@dajiba6
Copy link

dajiba6 commented Feb 15, 2023

欢迎提交PR修改

飞哥还会继续更新吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants