Pogosim
Loading...
Searching...
No Matches
simulator.h File Reference
#include "pogosim.h"
#include "robot.h"
#include "objects.h"
#include "lights.h"
#include "configuration.h"
#include "data_logger.h"
#include "SDL_FontCache.h"

Go to the source code of this file.

Classes

class  Simulation
 Class representing the simulation environment. More...

Enumerations

enum class  boundary_condition_t { solid , periodic }

Functions

int robot_main (void)
 Main entry point for the robot code (C linkage).
void set_current_robot (PogobotObject &robot)
 Sets the current active robot.
void dummy_global_robot_init ()

Variables

std::unique_ptr< Simulationsimulation
 Global simulation instance.

Enumeration Type Documentation

◆ boundary_condition_t

enum class boundary_condition_t
strong
Enumerator
solid 
periodic 

Function Documentation

◆ dummy_global_robot_init()

void dummy_global_robot_init ( )

◆ robot_main()

int robot_main ( void )

Main entry point for the robot code (C linkage).

This function is defined with C linkage so that it can be called from non-C++ code.

Returns
int Exit status code.

◆ set_current_robot()

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.

Parameters
robotReference to the Robot to be set as current.

Variable Documentation

◆ simulation

std::unique_ptr<Simulation> simulation
extern

Global simulation instance.