Skip to content

Instantly share code, notes, and snippets.

# -*- coding: utf-8 -*-
"""
pos to calibed pos
Created on Wed Oct 3 23:03:48 2018
@author: akira
"""
#To serve the data run python -m http.server 8000
import numpy as np
# -*- coding: utf-8 -*-
"""
Created on Thu Nov 8 21:50:03 2018
@author: akira
"""
import cv2
import numpy as np
CV_CAP_PROP_POS_FRAMES = 1
#!/bin/sh
ID="お名前.comのID"
PW="パスワード"
IP=`curl -s 'https://api.ipify.org?format=txt'`
(
sleep 1 ;
echo "LOGIN";
/*
© Siemens AG, 2017-2018
Author: Dr. Martin Bischoff (martin.bischoff@siemens.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
<http://www.apache.org/licenses/LICENSE-2.0>.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
#include <WiFi.h>
#include <WebServer.h> // https://github.com/zhouhan0126/WebServer-esp32
#include <DNSServer.h>
#include <WiFiManager.h> // https://github.com/zhouhan0126/WIFIMANAGER-ESP3
#include <FastLED.h> //https://github.com/FastLED/FastLED
#include <WiFiUdp.h>
#include <ArduinoOSC.h> //https://github.com/hideakitai/ArduinoOSC
//#define DEBUG_UDP
void serialSetup(){
base_frame="map"
unity_frame="Unity"
tf_prefix="T"
pose_to_tf=["/U/Cam"]
pose_prefix="/RU/"
tf_to_pose=["roomba_1/base_link","roomba_1/odom","roomba_1/scan","map"]
#!/usr/bin/python
base_frame="map"
unity_frame="Unity"
tf_prefix="T"
pose_to_tf=["/U/Cam"]
pose_prefix="/RU/"
tf_to_pose=["roomba_1/base_link","roomba_1/scan","map","the_odom"] #the_odom
#!/usr/bin/python
#
#Original source is
#https://github.com/fygrave/honeyntp/blob/master/ntpserver.py
#
#This is ros version.
#put this file to catkin_ws/src/[Some_project/Script/ntpserver.py
#and rosrun [Some_project] ntpserver
import datetime
//This code is for ROS# message header timestamp
//You also need GuerrillaNtp.dll in plugin directory (https://www.nuget.org/packages/GuerrillaNtp/ )
//
//Usage: just attach some gameobject.
// and configure the NTP server host/port on unity editor. (!!NEVER!! Point out Public NTP server)
// This will override timestamp header (in StandardHeaderExtensions.cs)
//
// Here is sample code of NTP server which run as ros node.
// https://gist.github.com/akirayou/6488e2834bc26226d511d4bee4fbcb61
//
@akirayou
akirayou / hanahotaru.c
Created August 31, 2019 08:29
Hanahotaru for ATTiny10
/*
* Digital HanaHotaru
*
* Author: akira noda
*/
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/sleep.h>