Skip to content
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

Ensuring uniformity of steps in domain #1

Open
brandonwang15 opened this issue Nov 8, 2015 · 1 comment
Open

Ensuring uniformity of steps in domain #1

brandonwang15 opened this issue Nov 8, 2015 · 1 comment

Comments

@brandonwang15
Copy link

Right now when the UAV taps, its tapping takes more than one step, so in the following steps it is still in the middle of tapping. This means that in the next step the UAV shouldn't try to reevaluate it's state to find it's next action - because it's still doing something. Our current solution is to simply skip the simulation a few steps ahead. The plan is to instead to allow to UAV to evaluate on every time step, this way it's a little less hacky and prevents the case where a UAV is tapping a roomba, the roomba triggers a 180, and the UAV stays for duration of the turn + 180 instead of just the turn. The new mechanism for turns is to just "knock out" the uav for the step duration of a turn but still evaluate each individual turn.

@brandonwang15
Copy link
Author

Solution: add an attribute to uav called ko_steps_remaining:

in each step evaluation, if ko_steps_remaining == 0 then don't evaluate anything or move the uab on this step and decrement ko_steps_remaining

ko_steps_remaining can be set to a positive # whenever there is a uav action that shouldn't be interrupted takes longer then 1 step (like turning)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant