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

Use different robot spawn zones #52

Open
JuliusMiller opened this issue Sep 11, 2024 · 0 comments
Open

Use different robot spawn zones #52

JuliusMiller opened this issue Sep 11, 2024 · 0 comments
Labels
bug Something isn't working p2 2nd most important task category

Comments

@JuliusMiller
Copy link
Collaborator

JuliusMiller commented Sep 11, 2024

At the the moment every robot route uses the same spawn zone.
Update the method to use a specific spawn zone for every route.

https://github.com/ll7/robot_sf_ll7/blob/main/robot_sf/nav/svg_map_parser.py

elif path.label == 'robot_route':
# Convert the coordinates to a list of vertices
vertices = path.coordinates.tolist()
# Append the obstacle to the list
robot_routes.append(
GlobalRoute(
spawn_id=0, # TODO: What is this? value is arbitrary
goal_id=0, # TODO: What is this? value is arbitrary
waypoints=vertices,
spawn_zone=(vertices[0], 0, 0), # TODO
goal_zone=(vertices[-1], 0, 0) # TODO
))

@JuliusMiller JuliusMiller added bug Something isn't working p2 2nd most important task category labels Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working p2 2nd most important task category
Projects
None yet
Development

No branches or pull requests

1 participant