#include #include "Geometry.h" #include "Vector3f.h" #include "Matrix4D.h" #include "FieldNoise.h" #include "Line6f.h" #include "World.h" #include "Field.h" #include "LocalizerV2.h" using namespace std; static LocalizerV2& loc = SLocalizerV2::getInstance(); void print_python_data(){ static World &world = SWorld::getInstance(); cout << "Foot touch: " << world.foot_touch[0] << " " << world.foot_touch[1] << endl; cout << "LFoot contact rpos: " << world.foot_contact_rel_pos[0].x << " " << world.foot_contact_rel_pos[0].y << " " << world.foot_contact_rel_pos[0].z << endl; cout << "RFoot contact rpos: " << world.foot_contact_rel_pos[1].x << " " << world.foot_contact_rel_pos[1].y << " " << world.foot_contact_rel_pos[1].z << endl; cout << "Ball seen: " << world.ball_seen << endl; cout << "Ball rpos cart: " << world.ball_rel_pos_cart.x << " " << world.ball_rel_pos_cart.y << " " << world.ball_rel_pos_cart.z << endl; cout << "Ball cheat: " << world.ball_cheat_abs_cart_pos.x << " " << world.ball_cheat_abs_cart_pos.y << " " << world.ball_cheat_abs_cart_pos.z << endl; cout << "Me cheat: " << world.my_cheat_abs_cart_pos.x << " " << world.my_cheat_abs_cart_pos.y << " " << world.my_cheat_abs_cart_pos.z << endl; for(int i=0; i<8; i++){ cout << "Landmark " << i << ": " << world.landmark[i].seen << " " << world.landmark[i].isCorner << " " << world.landmark[i].pos.x << " " << world.landmark[i].pos.y << " " << world.landmark[i].pos.z << " " << world.landmark[i].rel_pos.x << " " << world.landmark[i].rel_pos.y << " " << world.landmark[i].rel_pos.z << endl; } for(int i=0; i