Skip to content

Instantly share code, notes, and snippets.

@akirayou
akirayou / RunOnUbuntu_UDPToROS_TF.py
Created Jun 29, 2018
Vive postion transport via UDP
View RunOnUbuntu_UDPToROS_TF.py
#!/usr/bin/env python
import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.bind(('0.0.0.0',13593))
import rospy
import tf
import bson
from threading import Thread, Lock
rospy.init_node("vtrans")
@akirayou
akirayou / 40-NTTLTE.rules
Last active Aug 8, 2018
How to use LTE modem NTT L03F
View 40-NTTLTE.rules
#must be in /etc/udev/rules.d directory
#/dev/ttyNTTLTE will be able to recive AT command
ACTION=="add",\
ATTRS{idVendor}=="1004",\
ATTRS{idProduct}=="6367",\
RUN+="/usr/sbin/usb_modeswitch --std-eject --default-vendor 0x1004 --default-product 0x6367 --target-vendor 0x1004 --target-product 0x6366"
ACTION=="add|change",\
ATTRS{idVendor}=="1004",\
View testing.py
# -*- coding: utf-8 -*-
"""
Created on Thu Aug 9 22:50:30 2018
@author: akira
"""
import time
import socket
import numpy as np
View ledpos.py
# -*- coding: utf-8 -*-
"""
Created on Thu Aug 9 22:50:30 2018
@author: akira
"""
import time
import socket
import numpy as np
View test.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.Globalization;
using System.Net.Sockets;
public partial class Data
{
View setting.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.Globalization;
using System.Net.Sockets;
public partial class Data
{
View tst.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.Globalization;
using System.Net.Sockets;
public partial class Data
{
View img.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Video;
public class ImgDump : MonoBehaviour {
public RenderTexture tex;
public VideoPlayer player;
public List<VideoClip> clip;
View igniter.cc
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.Globalization;
using System.Net.Sockets;
public partial class Data
{
View dummy.cs
void FillDummyLED()
{
Units = new UnitData[4];
float width = 9;
float height = 6;
if (false)
{
Units[0] = new UnitData("127.0.0.1", 1250);
Units[1] = new UnitData("127.0.0.1", 1250);
Units[2] = new UnitData("127.0.0.1", 1250);