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
using System; | |
namespace GeoCoordinateUtility | |
{ | |
public static class GeoCoordinateConverter | |
{ | |
/// <summary> | |
/// 楕円体の長半径(ITRF座標系GRS80楕円体) | |
/// </summary> | |
const double _a = 6378137d; |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Newtonsoft.Json.Linq; | |
using UnityEngine; | |
public class JsonDeserializeTest2 : MonoBehaviour | |
{ | |
string jsonFileName = "TestJsonData2"; | |
string jsonText; |
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
using System; | |
using System.Collections.Generic; | |
using System.Globalization; | |
using System.Linq; | |
using Newtonsoft.Json.Linq; | |
using UnityEngine; | |
public class JsonDeserializeTest1 : MonoBehaviour | |
{ | |
string jsonText = ""; |
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 <Servo.h> | |
// 受信文字列 | |
String received_data; | |
// 受信した文字列を変換する | |
String angles[2]; | |
// ピッチ, ヨー | |
int angle_pitch; |
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
#coding:utf-8 | |
import threading | |
import time | |
import signal | |
import sys | |
import serial | |
from socket import socket, AF_INET, SOCK_DGRAM | |
HOST = '' |
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
using UnityEngine; | |
using System.Net.Sockets; | |
public class UdpSender | |
{ | |
string _remoteHost = ""; | |
int _remotePort = 60000; | |
UdpClient _udpClient; |
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
using UnityEngine; | |
public class HeadRotation : MonoBehaviour | |
{ | |
public string GetServoAngle () | |
{ | |
return $"{ConvertPitch(transform.localEulerAngles.x)},{ConvertYaw(transform.localEulerAngles.y)}"; | |
} | |
int ConvertPitch (float unityAngleX) |
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
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
using CEK.CSharp; | |
using CEK.CSharp.Models; | |
using Line.Messaging; |
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
using System; | |
using TMPro; | |
using UniRx; | |
using UnityEngine; | |
/// <summary> | |
/// MQTTブローカから受信したメッセージをTextMeshProで表示。 | |
/// メッセージを受信するたびにテキストを生成する。 | |
/// </summary> |
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
using System; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using MQTTnet; | |
using MQTTnet.Client; | |
using UniRx; | |
using UnityEngine; | |
/// <summary> | |
/// MQTTブローカに接続し、指定したトピックをSubscribeする。 |
NewerOlder