#include <iostream>#include <string>#include <chrono>#include <sstream>#include <iomanip>#include <fmt/format.h>#include <yaml-cpp/yaml.h>#include <unordered_map>#include <spdlog/spdlog.h>#include <filesystem>#include <algorithm>#include <cmath>#include <vector>#include <SDL2/SDL.h>#include <box2d/box2d.h>#include "fpng.h"#include "SDL2_gfxPrimitives.h"#include "version.h"#include "tqdm.hpp"#include "utils.h"#include "simulator.h"#include "render.h"#include "distances.h"#include "spogobot.h"Functions | |
| void | dummy_global_robot_init () |
| void | set_current_robot (PogobotObject &robot) |
| Sets the current active robot. | |
| b2Vec2 | wrap_point_periodic (b2Vec2 p, b2Vec2 minp, float Lx, float Ly) |
Variables | |
| std::unique_ptr< Simulation > | simulation |
| Global simulation instance. | |
| void dummy_global_robot_init | ( | ) |
| void set_current_robot | ( | PogobotObject & | robot | ) |
Sets the current active robot.
Updates the global current_robot pointer and copies various robot parameters into global variables.
| robot | Reference to the Robot to be set as current. |
|
inline |
| std::unique_ptr<Simulation> simulation |
Global simulation instance.