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 RobotCapabilities #3371

Open
2 tasks
itsarune opened this issue Oct 19, 2024 · 0 comments
Open
2 tasks

Use RobotCapabilities #3371

itsarune opened this issue Oct 19, 2024 · 0 comments
Assignees
Labels
Difficulty - 7 Well-defined tasks that requires some understanding about the relevant system and tools Gameplay Thunderscope

Comments

@itsarune
Copy link
Contributor

Description of the task

We have the ability to define RobotCapabilities for various robots. If these are set for a robot, then the tactic assignment algorithm will take into account the robot's capabilities during assignment. We don't currently use this feature.

The task: add the ability in Thunderscope to add/remove capabilities from robots through a widget.

Possible approach:

  1. Add a new widget to add/remove RobotCapability to robots that are currently on the field. A possible design is a drop-down that allows us to select a robot and checkboxes to select which capabilities it has.
  2. Create a new proto that maps the robot id to theRobotCapability` it has. It would look something like this.
  3. Once a change to capabilities is made, we should send this new proto to full system
  4. Add listeners for this proto in backend.cpp and unix_simulator_backend.cpp
  5. Add an appropriate callback for the proto you made in SensorFusion
  6. SensorFusion should keep track of a map of the robot id to the unavailable RobotCapabilities of that robot
  7. Pass the unavailable capabilities to the Robot constructor and update SensorFusion::createFriendlyTeam to accept the current unavailable capabilities for each robot

Acceptance criteria

Blocked By

@itsarune itsarune added Difficulty - 7 Well-defined tasks that requires some understanding about the relevant system and tools Thunderscope Gameplay labels Oct 19, 2024
@wmostrenko wmostrenko self-assigned this Nov 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Difficulty - 7 Well-defined tasks that requires some understanding about the relevant system and tools Gameplay Thunderscope
Projects
None yet
Development

No branches or pull requests

2 participants