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/local/bin/python | |
# -*- coding: utf-8 -*- | |
from __future__ import print_function | |
import RPi.GPIO as GPIO | |
import time | |
# Pin Number | |
PIN = 19 |
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/local/bin/python | |
# -*- coding: utf-8 -*- | |
from __future__ import print_function | |
import RPi.GPIO as GPIO | |
import os | |
import time | |
import random | |
import shlex |
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/local/bin/python | |
# -*- coding: utf-8 -*- | |
# Synchronize sensor and LED | |
from __future__ import print_function | |
import RPi.GPIO as GPIO | |
import os | |
import time |
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 | |
# -*- coding: utf-8 -*- | |
import rospy | |
from std_msgs.msg import Header | |
from sensor_msgs.msg import PointCloud2, PointField | |
import sensor_msgs.point_cloud2 as pc2 | |
# 点の座標を定義するフレームの名前 | |
HEADER = Header(frame_id='/sample_frame') |
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 | |
# -*- coding: utf-8 -*- | |
import rospy | |
from sensor_msgs.msg import PointCloud2 | |
import sensor_msgs.point_cloud2 as pc2 | |
class SubscribePointCloud(object): | |
def __init__(self): |
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 | |
# -*- coding: utf-8 -*- | |
from __future__ import print_function | |
import RPi.GPIO as GPIO | |
import time | |
import milkcocoa.milkcocoa as milkcocoa |
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
// SRF02のアドレスを変更 | |
#include <Wire.h> | |
byte original_address = 224; // 変更前のアドレス: 0xE0 | |
byte new_address = 226; // 変更後のアドレス: 0xE2 | |
void setup() { | |
Wire.begin(); | |
Serial.begin(9600); |