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

Make Prev_target Vector2d #54

Closed
wants to merge 2 commits into from
Closed

Conversation

thebhatman
Copy link
Member

Prev_target was never really vector2D and checking isinstance was creating a problem. So this patch fixes it.

@saurabhkgp21
Copy link
Member

@thebhatman wont it create any bug on first call?

@thebhatman
Copy link
Member Author

It doesn't create an error because I have also changed prev_target to be of Vector2D() instead of None. But because of that prev_target will be (0,0) in the very first call. This might cause one unnecessary replan in the beginning. I can change the initialisation of prev_target.

@saurabhkgp21
Copy link
Member

But what if the target is in the vicinity of (0,0), then it will not replan. That can be a problem in the initialisation of velocity instance.
May be u can initialise prev_target as Vector2D(-5000,-5000) //any random point outside the field. Just see this once.

@thebhatman
Copy link
Member Author

Closing this because of this change #62.

@thebhatman thebhatman closed this Jun 17, 2019
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

Successfully merging this pull request may close these issues.

None yet

2 participants