Skip to content

Instantly share code, notes, and snippets.

View naga-karupi's full-sized avatar
💭
hungry

naga naga-karupi

💭
hungry
  • NITTC
  • JP
View GitHub Profile
#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 {};
@naga-karupi
naga-karupi / CMakeLists.txt
Last active November 23, 2023 14:11
linux実行環境とコード
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.")
@naga-karupi
naga-karupi / install-rmw_iceoryx.sh
Created November 15, 2023 12:55
install rmw_iceoryx
# 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
# include <Siv3D.hpp>
using namespace s3d;
namespace globals
{
uint32 counter = 0;
Stopwatch sw;
Array<Vec2> target(0);
}
#include <iostream>
using namespace std;
class Singleton
{
Singleton()
{
cout << "Hello Singleton";
}