-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
what is --dt in gtp.py? and is it sync with command rate that send to the simulator? #131
Comments
The dt (delta time) here represents the time-step used in the trajectory planning optimization problem. It is not synced with the command rate for the simulator. For the GTP planner, the trajectory is discretized into n steps (self.n_steps) where each step is assumed to occur dt seconds after the previous step. This dt is then a parameter to tune the trajectory horizon, resulting in longer or shorter trajectories. The resulting planned trajectories are then passed as inputs to the moveOnSplineAsync() command which controls the drone along a dynamically feasible version of our trajectory. This operation is updated essentially as fast as we can run the GTP optimization. Does this answer your question? And can you elaborate what you mean by simulation time and why you want to sync it by the wall clock? |
Thank you @ericcristofalo , I already checked all this functions. by the way thanks again for your good explanation. exactly in your explanation in above commend you wrote where each step is assumed to occur dt seconds after the previous step. assumed to occur dt second how I can sync my upper hand controller's command rate with what is happening in the simulator. I have to do short path planing along with the long path planing(way-points) based on my machine vision target. for doing this I need to make commands in a constant rate (for instance, 15 Hz) |
all control APIs ( you can also append a |
Thank you @madratman for your response. if I use the control APIs (movBy*()) i'm going to lose the benefit of long path planing! I mean, I don't want to make controller for Long path planing. I aim in an existence course Long Path Planer (Like, what happens with way-points and moveOnSpline*() ) and my controller just do the fine tuning of movement as a short path planner. |
Hi guys,
there is question for me how we can control the rate of the command in accurate way. in the gtp.py sample there is an argument '--dt' but it is not the exact time uses for updating the path!
based on the calculation time for solving optimization problem it's more than 300ms. then what means by --dt ?!! and how we can figure out the simulation time and sync it by wall clock?!
The text was updated successfully, but these errors were encountered: