Skip to content

Commit f1a6002

Browse files
committed
Add ball image
1 parent 8c1545b commit f1a6002

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

tools/simulation/assets/ball.png

17.8 KB
Loading

tools/simulation/src/main.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use bevy::ecs::event::EventRegistry;
55
use bevy::state::app::StatesPlugin;
66
use bevy::{prelude::*, render::camera::Viewport, window::PrimaryWindow};
77
use bevy_egui::egui::{Direction, Layout, RichText, Ui};
8-
use bevy_egui::{EguiContexts, EguiPlugin, egui};
8+
use bevy_egui::{egui, EguiContexts, EguiPlugin};
99
use 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;
2121
use yggdrasil::core::config::layout::RobotPosition;
2222
use yggdrasil::core::config::showtime::{self, PlayerConfig};
2323
use yggdrasil::core::{config, control, debug};
24-
use yggdrasil::localization::RobotPose;
2524
use yggdrasil::localization::hypothesis::odometry_update;
2625
use yggdrasil::localization::odometry::{self, Odometry};
26+
use yggdrasil::localization::RobotPose;
2727
use yggdrasil::motion::walking_engine::step_context::StepContext;
2828
use yggdrasil::nao::Cycle;
2929
use yggdrasil::prelude::Config;
@@ -43,9 +43,9 @@ const FIELD_WIDTH_METERS: f32 = 10.4;
4343
const FIELD_HEIGHT_METERS: f32 = 7.4;
4444
// Remove fixed visual dimensions since we'll calculate them dynamically
4545
const PIXELS_PER_METER: f32 = 100.0; // Base scale factor, will be adjusted dynamically
46-
// Robot size in meters
46+
// Robot size in meters
4747
const ROBOT_SIZE_METERS: f32 = 0.5; // 50cm x 50cm robot
48-
// Ball size in meters (SPL standard)
48+
// Ball size in meters (SPL standard)
4949
const 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

Comments
 (0)