UsmanJafri / LiDAR-GTA-V

A plugin for Grand Theft Auto V that generates a labeled LiDAR point cloud from the game environment.
MIT License
156 stars 31 forks source link

Continuty of the Data #3

Closed PurnaKoteswaraRaoMallepaddi closed 5 years ago

PurnaKoteswaraRaoMallepaddi commented 6 years ago

HI Guys, I started working on this data collection since a week , this application may solve the issue but i wanted it to be more automated like in Deep GTA which is not working in my case i don't know why . Can someone say the changes to be made to get the data automatically without pressing the F6 key , like when ever we start the program it should start collecting the data and then when we stop it should stop collecting the data. Thanks in Advance BTW this is a good piece of work man @UsmanJafri

PurnaKoteswaraRaoMallepaddi commented 6 years ago

And is there any way that i get the intensity of the point please clarify the doubt thanks and regards

llucid-97 commented 6 years ago

You'd have to change the trigger condition in line 137 of ScriptMain() in script.cpp to call lidar() repeatedly rather than once. Here's how I've done it

P.s.: if you are going to call it in a loop like this, there's a few other things I'd recommend changing

Here's a link to my complete version of scripts.cpp

note: you need Eigen to run it. Takes 2 seconds to get:

jainrahul1 commented 5 years ago

When we enable Lidar data point capturing we observed that driven car is being dragged at 0 speed, instead of moving at variable speed. Have you @ihexx also observed the same?

UsmanJafri commented 5 years ago

@purna15111 Thanks for the kind words! @ihexx 's comment is perfect and should solve your problem. @jainrahul1 That is probably because I have called GAMEPLAY::SET_GAME_PAUSED(); and TIME::PAUSE_CLOCK(); to stop the world while point cloud is generated. As @ihexx pointed out earlier removing these two function calls should prevent the car from freezing. @ihexx Thank's for your input!

jainrahul1 commented 5 years ago

@UsmanJafri thanks a lot for your reply. I will give it a try and let you know the outcome.

mjjdick commented 5 years ago

@purna15111 I have the same question about how to get the intensity! If you have any good idea, please share with me, I will be very appreciate!

mjjdick commented 5 years ago

@UsmanJafri @ihexx I found if I record the pcd data continuous, the game will be very slow, I think it cost too much time to write the pcd data. And I tried th deeperGTA, it use server/client , and it won't affect the speed, but I have no idea how to save the pcd data. Are you have any idea to solve the slow game or save pcd data in deeperGTA?

mjjdick commented 5 years ago

@ihexx @UsmanJafri Another question is, can we save the boundingbox label for objects?

ravishk1 commented 5 years ago

I have tried by removing GAMEPLAY::SET_GAME_PAUSED(); and TIME::PAUSE_CLOCK(); from the lidar function but still game freezes. @ihexx I also tried replacing script.cpp of original version with your version, Nothing happened as game stuck and keys were stopped working. Is there any way to resolve the game freezing issue??