Commit 6de1885d authored by NicolaiO's avatar NicolaiO 🐼 Committed by TIGERs GitLab
Browse files

[feature] Add wifi stats to bots table, fix battery+kicker voltage

See merge request main/Sumatra!1146

sumatra-commit: a661338b16bd079e89618430e18df4ca024880e2
parent 6d32148b
Pipeline #6985 passed with stage
in 1 minute and 25 seconds
......@@ -19,85 +19,95 @@ import edu.tigers.sumatra.trajectory.TrajectoryWithTime;
*/
public interface IBot
{
/**
* @return battery level between 0 and 1
*/
double getBatteryRelative();
/**
* @return battery level
*/
default double getBatteryAbsolute()
{
return 0;
}
/**
* @return
*/
double getKickerLevel();
/**
* The absolute maximum kicker level possible for the bot (not the currently set max cap!)
*
* @return [V]
*/
double getKickerLevelMax();
/**
* Each bot has its own hardware id that uniquely identifies a robot by hardware (mainboard)
*
* @return
*/
int getHardwareId();
/**
* @return
*/
boolean isAvailableToAi();
/**
* @return
*/
EBotType getType();
/**
* @return the botFeatures
*/
Map<EFeature, EFeatureState> getBotFeatures();
/**
* @return the controlledBy
*/
String getControlledBy();
/**
* @return the color
*/
ETeamColor getColor();
double getDribblerTemp();
/**
* @return the manualControl
*/
boolean isBlocked();
/**
* @return the hideFromRcm
*/
boolean isHideFromRcm();
/**
* @return the botId
*/
BotID getBotId();
/**
* @return
*/
......@@ -105,17 +115,17 @@ public interface IBot
{
return getBotParams().getDimensions().getCenter2DribblerDist();
}
/**
* Get internal state from sensory data
*
*
* @param timestamp
* @return
*/
Optional<BotState> getSensoryState(long timestamp);
/**
* @return the current bot trajectory in the coordinate system of the AI (you may have to mirror it when accessing
* outside AI or for opponent bot)
......@@ -124,41 +134,41 @@ public interface IBot
{
return Optional.empty();
}
/**
* @return
*/
IBotParams getBotParams();
/**
* @return
*/
boolean isBarrierInterrupted();
/**
* @return
*/
ERobotMode getRobotMode();
/**
* Is true iff the bot is completely okay. (Used for automatic interchange)
*
*
* @return
*/
boolean isOK();
/**
* Get version string.
*
*
* @return
*/
default String getVersionString()
{
return "No versioning";
}
}
\ No newline at end of file
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment