deepdrive / deepdrive

Deepdrive is a simulator that allows anyone with a PC to push the state-of-the-art in self-driving
https://deepdrive.io
Other
897 stars 148 forks source link

Control over PID Path Follower's Speed #59

Open raks097 opened 4 years ago

raks097 commented 4 years ago

@crizCraig

Is there a way one can control/limit the speed at which the path-follower agent travels at? I have gone through the source code and it seems like the actuation of the vehicles is done through deepdrive_client.advance_synchronous_stepping(), but since it comes as a pre-compiled package, I haven't found ways in which we can manipulate the PID bot's actuations.

Action class does have THROTTLE_MIN and MAX but changing these variables does not seem to be reflected in the path-followers behaviour.

Any suggestions ?

crizCraig commented 4 years ago

Hi @raks097 - the pid bot is in C++ baked into the Unreal binary, so it's more difficult to modify. It's meant to be more for NPC's than for bots that people modify. You can however easily play with the speed and several other config variables in the Unreal Editor if you setup the sim for development. The underlying C++ for that agent is here which you can also modify.

If you want to submit such an agent to the leaderboard, we'll need to go through a special process as you are modifying the sim project itself. I.e. we'd need to review your code changes and merge them into the main project - at which point you would be improving the deepdrive agent as well. Although we would provide attribution to you if you improve performance!

raks097 commented 4 years ago

@crizCraig Thanks for the quick reply. Will look into the setting up the Unreal Editor for further modifications. However, the link that you provided for the C++ bot seems to be broken. Could you please give a working link ?

Thanks.

crizCraig commented 4 years ago

Fixed above, and here again https://github.com/deepdrive/deepdrive-sim/tree/master/Plugins/DeepDrivePlugin/Source/DeepDrivePlugin/Private/Simulation/Traffic/BehaviorTree Thanks @raks097 !