Comments (7)
@huangchunan The manual_control
script does not guarantee the continuity of the data, even in synchronous mode.
To guarantee the continuity of the data, besides running the server in synchronous mode, you need to implement a sensor barrier. The sensor barrier is a client side mechanism that waits until all data has been received and processed to tick again the server. This mechanism is implemented in all our scripts that need to guarantee sensor continuity for all frames (e.g., leaderboard).
Please take a look to this script that introduces this mechanism: https://github.com/carla-simulator/carla/blob/dev/PythonAPI/examples/sensor_synchronization.py
from carla.
To guarantee the continuity of images, you should instead run the client is synchronous mode. There is a working example of this in "examples\synchronous_mode.py". This will ask the server to wait until the client recieves a frame, and only continues the simulation when recieving confirmation.
from carla.
To guarantee the continuity of images, you should instead run the client is synchronous mode. There is a working example of this in "examples\synchronous_mode.py". This will ask the server to wait until the client recieves a frame, and only continues the simulation when recieving confirmation.
I have used 'python3 manual_control.py --sync' to guarantee the continuity. Does it not work? It seems to lost some images. For example, I ran the simulation for 15 seconds, but it only generated the first 5 seconds images.
from carla.
It should guarantee... We will look at that
from carla.
@huangchunan The
manual_control
script does not guarantee the continuity of the data, even in synchronous mode.To guarantee the continuity of the data, besides running the server in synchronous mode, you need to implement a sensor barrier. The sensor barrier is a client side mechanism that waits until all data has been received and processed to tick again the server. This mechanism is implemented in all our scripts that need to guarantee sensor continuity for all frames (e.g., leaderboard).
Please take a look to this script that introduces this mechanism: https://github.com/carla-simulator/carla/blob/dev/PythonAPI/examples/sensor_synchronization.py
@joel-mb I tried and it worked. However, the fps is very low, about 2 fps. I found the core problem is the speed of generating images is far too slow than the simulation speed. Anyway to accelerate the speed?
Maybe The manual_control
script could guarantee the continuity of the data in synchronous mode, but the speed of generating images is too slow.
from carla.
Related Issues (20)
- Step by step Carla UE5.3 HOT 2
- AttributeError: 'NoneType' object has no attribute 'is_junction'
- pygame window not working properly. HOT 3
- Issue while Packaging the Custom Map Created Using Digital Twin Tool HOT 19
- Can not run CARLA Simulattor while running the following script for improvised traffic manager HOT 9
- Does CARLA work on MacOS? HOT 1
- Fix crash when replaying large log files
- Recorder / Replayer improvements HOT 1
- EHMI(External Human-machine Interface) vehicle models HOT 1
- Error Building PythonAPI with OSM2ODR on Windows HOT 1
- My Code is launching pygame window when I run a map with single tile, But im getting segmentation fault when I try to use a Map having multiple tiles and also Server gets crashed.
- Create RetrieveActorAttributeToVector functions
- fatal: repository 'https://github.com/CarlaUnreal/UnrealEngine.git/' not found HOT 7
- Questions about tools and Carla in Docker HOT 1
- How to change the focal length of the camera? HOT 1
- Question about traffic light control HOT 1
- Disable Tick in tagged component by default HOT 1
- Can CARLA be deployed on a server without a graphical display? HOT 1
- Unable to build CARLA UE5.3 on Windows - Error generating pnglibconf.out HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from carla.