@@ -5,7 +5,7 @@ use bevy::ecs::event::EventRegistry;
55use bevy:: state:: app:: StatesPlugin ;
66use bevy:: { prelude:: * , render:: camera:: Viewport , window:: PrimaryWindow } ;
77use bevy_egui:: egui:: { Direction , Layout , RichText , Ui } ;
8- use bevy_egui:: { EguiContexts , EguiPlugin , egui } ;
8+ use bevy_egui:: { egui , EguiContexts , EguiPlugin } ;
99use bifrost:: communication:: {
1010 CompetitionPhase , CompetitionType , GameControllerMessage , GamePhase , GameState , Half , Penalty ,
1111 RobotInfo , SetPlay , TeamColor , TeamInfo ,
@@ -21,9 +21,9 @@ use yggdrasil::core::config::layout::LayoutConfig;
2121use yggdrasil:: core:: config:: layout:: RobotPosition ;
2222use yggdrasil:: core:: config:: showtime:: { self , PlayerConfig } ;
2323use yggdrasil:: core:: { config, control, debug} ;
24- use yggdrasil:: localization:: RobotPose ;
2524use yggdrasil:: localization:: hypothesis:: odometry_update;
2625use yggdrasil:: localization:: odometry:: { self , Odometry } ;
26+ use yggdrasil:: localization:: RobotPose ;
2727use yggdrasil:: motion:: walking_engine:: step_context:: StepContext ;
2828use yggdrasil:: nao:: Cycle ;
2929use yggdrasil:: prelude:: Config ;
@@ -43,9 +43,9 @@ const FIELD_WIDTH_METERS: f32 = 10.4;
4343const FIELD_HEIGHT_METERS : f32 = 7.4 ;
4444// Remove fixed visual dimensions since we'll calculate them dynamically
4545const PIXELS_PER_METER : f32 = 100.0 ; // Base scale factor, will be adjusted dynamically
46- // Robot size in meters
46+ // Robot size in meters
4747const ROBOT_SIZE_METERS : f32 = 0.5 ; // 50cm x 50cm robot
48- // Ball size in meters (SPL standard)
48+ // Ball size in meters (SPL standard)
4949const BALL_RADIUS_METERS : f32 = 0.055 ;
5050
5151// Scale factors to convert between meters and pixels - will be updated dynamically
@@ -647,7 +647,7 @@ fn setup_system(
647647) {
648648 let field_texture = asset_server. load ( "field_simple.png" ) ;
649649 let robot_texture = asset_server. load ( "nao.png" ) ;
650- let ball_texture = asset_server. load ( "ball2 .png" ) ;
650+ let ball_texture = asset_server. load ( "ball .png" ) ;
651651 let font = asset_server. load ( "fonts/FiraSans-Bold.ttf" ) ;
652652 let layout_config = LayoutConfig :: load ( "config/" ) . expect ( "Failed to load layout config" ) ;
653653
0 commit comments