Closed Zartris closed 4 months ago
cc @janblumenkamp since this was your feature
I am happy to take over from here if you don't have time :)
Hi Matteo, sorry for not answering, and as you guessed I have been a bit busy. I do not mind doing the implementation, but then it would take a while as I am finishing up papers and collecting results. So if you'd like it to happen anytime soon, feel free to take it over. I just did the PR so others could use the lidar in their projects.
Got it, I think with the code you wrote so far it'll be quick for me to finish this. I'll use all your commits so far so you get the credit :)
colsed in favor of #124
Currently, the lidar is a MAJOR bottleneck. It loops over all angles and all entities, so if you want a lidar with a remotely similar amount of rays as a true lidar this takes seconds for each sensor you use in the environment.
I have optimized it so now we are not looping over each angle and it gives me num_rays x improvement
Here I included a test with each landmark/ shape type. I have a timer in the measurement function (needs to be removed if you agree to accept the PR) The measurement function is doing both the loop and the vectorized methods to test if they are truly similar. I left these in so you can test for a bit yourself. Then I will clean it up and we can merge.
With 100 rays, a single agent, 3 objects: