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

Dynamically add keepout zones during auto #101

Open
2 tasks
jkleiber opened this issue Feb 18, 2025 · 11 comments · May be fixed by #105
Open
2 tasks

Dynamically add keepout zones during auto #101

jkleiber opened this issue Feb 18, 2025 · 11 comments · May be fixed by #105
Assignees

Comments

@jkleiber
Copy link
Member

Purpose
I am concerned that we will inadvertently run into the coral/algae stacks that are pre-staged near the alliance station wall during auto. To avoid running into this stuff, we should dynamically add in keepout zones around those things while in autonomous

Project Scope

  • Add a keepout zone to the alliance side coral/algae pre-staged stacks when in auto
  • Show it working in simulation
@linglejack06
Copy link
Member

@jkleiber i think the easiest way to do this is just to add a few blocks around those in the navgrid. otherwise, this would involve creating a custom pathplanner that we'd have to figure out how to interface with advantage scope with.

the only problem is this would stay in teleop too. I don't see this being much of an issue though, as its such a small space that it won't really affect the paths efficiency

@avidraccoon
Copy link
Contributor

Doesn't path planner have something for dynamic obstacles?

@linglejack06
Copy link
Member

@avidraccoon good catch, but i think this method is not intended to be accessed in such a way, it looks like everytime we run a loop we would have to find the obstacles, pass them in, and pass the current pose in.

maybe im wrong though, im gonna look at advantage kits pathplanner

@linglejack06
Copy link
Member

maybe we could just set the obstacles at beginning of auto and teleop, but i dont think it works that way, as i think the obstacles passed in are only ones that would affect the current path

@avidraccoon
Copy link
Contributor

I looked at the code for LocalADStar you only need to set it once or if we want to move the obstacles.

@avidraccoon
Copy link
Contributor

As long as we are not making a new Object each time

@linglejack06
Copy link
Member

linglejack06 commented Feb 18, 2025 via email

@linglejack06
Copy link
Member

linglejack06 commented Feb 18, 2025 via email

@avidraccoon
Copy link
Contributor

To set the grid positions

@avidraccoon
Copy link
Contributor

Because it internally converts the Pose to its corresponding Grid Position

@linglejack06 linglejack06 linked a pull request Feb 18, 2025 that will close this issue
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 a pull request may close this issue.

3 participants