This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <tuple> | |
#include <random> | |
#include <functional> | |
#include <optional> | |
std::vector<std::array<double, 3>> calculate_ransac_lines( | |
const std::vector<double>& x, const std::vector<double>& y) | |
{ | |
if(x.size() != y.size()) | |
return {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.12) | |
project(mpc CXX) | |
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}) | |
if (NOT CMAKE_CONFIGURATION_TYPES AND | |
NOT CMAKE_NO_BUILD_TYPE AND | |
NOT CMAKE_BUILD_TYPE AND | |
CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) | |
message(STATUS "[!] Setting build type to 'Release' as none was specified.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ros2 foxy is already installed | |
# ref (https://docs.ros.org/en/foxy/Installation/Ubuntu-Install-Debians.html) | |
# at home directory | |
source /opt/ros/foxy/setup.bash | |
mkdir iceoryx_ws; cd iceoryx_ws | |
mkdir iceoryx rmw_iceoryx | |
cd iceoryx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# include <Siv3D.hpp> | |
using namespace s3d; | |
namespace globals | |
{ | |
uint32 counter = 0; | |
Stopwatch sw; | |
Array<Vec2> target(0); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
class Singleton | |
{ | |
Singleton() | |
{ | |
cout << "Hello Singleton"; | |
} |