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
import socket | |
from pyubx2 import UBXReader | |
from pynmeagps.nmeamessage import NMEAMessage | |
st_ubx = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
st_ubx.connect(("localhost", 2001)) # RTKLIB's strsvr or something | |
st_vel = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
ubr = UBXReader(st_ubx, protfilter=7) |
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
from urllib.request import Request, urlopen | |
import json | |
from socket import socket, AF_INET, SOCK_DGRAM | |
import cv2 | |
import numpy as np | |
SELF_IP = '192.168.0.102' | |
TIPRON_IP = '192.168.0.106' | |
RECEIVE_PORT = 8082 |
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 serial | |
import time | |
def calibration(s): | |
s.write(str.encode('p')) | |
time.sleep(0.1) | |
reply = s.read(100).decode("shift_jis") | |
s_calib = reply.split(",") | |
return [float(s) for s in s_calib] |
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
<?xml version="1.0"?> | |
<robot name="parallel_link"> | |
<link name="base_link"> | |
<visual> | |
<origin xyz="0 0.25 0" rpy="1.57 0 0" /> | |
<geometry> | |
<cylinder radius="0.02" length="0.5" /> | |
</geometry> | |
<material name="blue"> | |
<color rgba="0 0 .8 1" /> |
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
# remove_CLI_tools.sh | |
# written by cocoanetics:http://www.cocoanetics.com/2012/07/you-dont-need-the-xcode-command-line-tools/ | |
# modified by yoneken | |
#!/bin/sh | |
RECEIPT_FILE1=/var/db/receipts/com.apple.pkg.DevSDK.bom | |
RECEIPT_PLIST1=/var/db/receipts/com.apple.pkg.DevSDK.plist | |
RECEIPT_FILE2=/var/db/receipts/com.apple.pkg.clang.bom | |
RECEIPT_PLIST2=/var/db/receipts/com.apple.pkg.clang.plist |
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
=== modified file 'common/drawpanel.cpp' | |
--- common/drawpanel.cpp 2013-02-21 20:53:50 +0000 | |
+++ common/drawpanel.cpp 2013-09-02 15:14:40 +0000 | |
@@ -870,6 +870,42 @@ | |
wxCommandEvent cmd( wxEVT_COMMAND_MENU_SELECTED ); | |
cmd.SetEventObject( this ); | |
+ int x, y; | |
+ GetViewStart( &x, &y ); | |
+ |
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
/* | |
* | |
* ROS iCarbot driver | |
* | |
* Copyright (C) 2017 Kenta Yonekura <yoneken@ieee.org> | |
* | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation; either version 2 of the License, or |
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
catkin yoneken$ roslaunch hector_slam_example hector_hokuyo_eth.launch | |
... logging to /Users/yoneken/.ros/log/474a123a-c7f1-11e4-873a-600308a9ac9c/roslaunch-***.***.***.***-42487.log | |
Checking log directory for disk usage. This may take awhile. | |
Press Ctrl-C to interrupt | |
started roslaunch server http://***.***.***.***:62399/ | |
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
#!/usr/local/bin/python | |
import random | |
import collections | |
( | |
Sunny, | |
Cloudy, | |
Rainy, | |
) = range(0, 3) |
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
export ROS_MASTER_URI=http://localhost:11311 | |
export ROS_IP=`ifconfig en0 | grep 'inet ' | sed -e 's/^.*inet //' -e 's/ .*//'` |
NewerOlder