Open hrnbot opened 10 months ago
The points_per_second variable is split between all the pointcloud you get in the time frame of 1 second.
rotation_frequency = 500 (default is 10)
points_per_second = 1000000
even with a hight rotation_frequency, you still have
rotations_per_second = rotation_frequency
If you set fixed_delta_seconds in the carla setting, it would be calculated like this
Example Points per pointcloud = points_per_second fixed_delta_seconds 100000 = 1000000 0.1 50000 = 1000000 * 0.05
For one line, you have to split them between each channel Example point amount in a row = (points_per_second fixed_delta_seconds) / channels 3125 = (1000000 0.1) / 32 1562,5 = (1000000 * 0.05) / 32
To increase the density of the points, you have to increase the rotations_per_second rotation_frequency = 10 points_per_second = 100,000,000
Points per pointcloud = points_per_second fixed_delta_seconds 10,000,000= 100,000,000 0.1 point amount in a row = (points_per_second fixed_delta_seconds) / channels 312,500 = (100,000,000 0.1) / 32
How to set the fixed_delta seconds and the problem i am getting is that i am only receiving 10% of the part of the lidar when frequency set to low.
Is there any way to resolve that?
This is the code to set the fixed_delta_seconds.
fixed_delta_seconds = 0.1
client = carla.Client(server_address, server_port)
world = client.load_world(self.map_parameters.carla_map_path)
settings = world.get_settings()
settings.fixed_delta_seconds = fixed_delta_seconds # do not decrease below 0.1 !!
world.apply_settings(settings)
With that, you always have 0.1 seconds (simulation seconds) between each time you get lidar (sensor) data from Carla.
Edit: I forgot to remove one "self."
Hello! Are you happy to close this issue?
Not got satisfactory answer...
Okay, we will look into this
Thanks for contributing to CARLA!
If you are reporting an issue, please use the following outline:
CARLA version: Platform/OS: Windows Problem you have experienced: I want to generate velodyne like results What you expected to happen: i want result dense like below but it is like this
Steps to reproduce: Below settings i am using
what i want to do is use pretrained vehicle model on the velodyne data set in simulator or collect dataset for the annotation of the model.