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
#!/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") |
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
#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",\ |
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 -*- | |
""" | |
Created on Thu Aug 9 22:50:30 2018 | |
@author: akira | |
""" | |
import time | |
import socket | |
import numpy as np |
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 -*- | |
""" | |
Created on Thu Aug 9 22:50:30 2018 | |
@author: akira | |
""" | |
import time | |
import socket | |
import numpy as np |
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.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 | |
{ |
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.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 | |
{ |
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.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 | |
{ |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.Video; | |
public class ImgDump : MonoBehaviour { | |
public RenderTexture tex; | |
public VideoPlayer player; | |
public List<VideoClip> clip; |
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.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 | |
{ |
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
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); |