This file contains hidden or 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 roseus | |
| ;; (setq robot-name 'akira) | |
| ;; (setq robot-name 'hanzou) | |
| (setq robot-name 'h3s) | |
| (require (format nil "models/~A-robot.l" robot-name)) | |
| (unless (and (boundp '*robot*) (string= (string-upcase (send *robot* :name)) (string robot-name))) | |
| (warning-message 2 "funcall ~A~%" robot-name) | |
| (setq *robot* (funcall robot-name))) | |
| (case robot-name |
This file contains hidden or 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/python | |
| #-*- coding: utf-8 -*- | |
| # 難点 | |
| # client -> server には非同期送信なのでコールバックやタイマーで勝手なタイミングで高頻度に送信すると詰まって止まる→ループで定期送信 | |
| # server側の全(topic + type)を返すサービス(/rosapi/topics)が1HZくらいしか出ない.帯域が圧迫されると帰ってこない | |
| # nodeがpubしたtopicを自分でsubしないように,そのtopicのpublishersをみてtopicを決める必要がある | |
| # client側は全(topic + type + publisher)の情報が簡単に取得できるが(これもmelodic以降?),server側は(topic + type)までしかない | |
| # server側からdownloadする有効なtopicsは,(全topic) - (/rosbridge_websocketがpubしているtopic) | |
| # しかしそれだとserver側でsubしているだけのtopic名もclient側にpubが形成されてコンフリクトする |
This file contains hidden or 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
| ech-user@ki00001:jsk_roseus$ git diff | |
| diff --git a/roseus/roseus.cpp b/roseus/roseus.cpp | |
| index 017869c..991fd9e 100644 | |
| --- a/roseus/roseus.cpp | |
| +++ b/roseus/roseus.cpp | |
| @@ -75,6 +75,8 @@ | |
| #include <ros/param.h> | |
| #include <ros/callback_queue.h> | |
| +#include <console_bridge/console.h> |
This file contains hidden or 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
| $ sudo apt install libx11-dev | |
| [sudo] password for leus: | |
| Reading package lists... Done | |
| Building dependency tree... Done | |
| Reading state information... Done | |
| The following packages were automatically installed and are no longer required: | |
| libapr1 libaprutil1 libflashrom1 libftdi1-2 libllvm13 libserf-1-1 libsvn1 libutf8proc2 | |
| mercurial mercurial-common subversion | |
| Use 'sudo apt autoremove' to remove them. | |
| The following additional packages will be installed: |
This file contains hidden or 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
| until read -s -n 1 -t 0.01; do \ | |
| date; | |
| for IP in 133.11.30.13 133.11.232.74 133.11.204.98 185.199.110.153; do\ | |
| ping -c 3 -i 1 -I eth0 $IP ; sleep 1; \ | |
| done; \ | |
| done |
This file contains hidden or 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
| dpkg-buildpackage: info: source package ros-noetic-ros-google-cloud-language | |
| dpkg-buildpackage: info: source version 2.1.26-1focal | |
| dpkg-buildpackage: info: source distribution focal | |
| dpkg-buildpackage: info: source changed by Kei Okada <[email protected]> | |
| dpkg-source --before-build . | |
| dpkg-buildpackage: info: host architecture amd64 | |
| dpkg-source: info: using options from jsk_3rdparty-release/debian/source/options: --auto-commit | |
| debian/rules clean | |
| dh clean -v --buildsystem=cmake --builddirectory=.obj-x86_64-linux-gnu | |
| dh_auto_clean -O-v -O--buildsystem=cmake -O--builddirectory=.obj-x86_64-linux-gnu |
This file contains hidden or 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
| UID PID PPID LWP C NLWP STIME TTY TIME CMD | |
| root 1 0 1 0 1 06:04 ? 00:00:00 /bin/bash /assets/wrapper | |
| root 22 1 22 0 1 06:04 ? 00:00:00 runsvdir -P /opt/gitlab/service log: ........................................................................................................................................................................................................................................................................................................................................................................................................... | |
| root 26 22 26 0 1 06:04 ? 00:00:00 runsv sshd | |
| root 27 26 27 0 1 06:04 ? 00:00:00 svlogd -tt /var/log/gitlab/sshd | |
| root 28 26 28 0 1 06:04 ? 00:00:00 sshd: /usr/sbin/sshd -D -f /assets/sshd_config -e [listener] 0 of 100-200 startups | |
| root 332 22 332 0 1 06:04 ? 00:00:00 runsv logrotate | |
| root |
This file contains hidden or 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
| USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND | |
| root 1 0.0 0.0 5856 1928 ? Ss 05:47 0:00 /bin/bash /assets/wrapper | |
| root 43 0.0 0.0 2516 536 ? S 05:47 0:00 runsvdir -P /opt/gitlab/service log: ........................................................................................................................................................................................................................................................................................................................................................................................................... | |
| root 52 0.0 0.0 2364 380 ? Ss 05:47 0:00 runsv sshd | |
| root 53 0.0 0.0 2508 380 ? S 05:47 0:00 svlogd -tt /var/log/gitlab/sshd | |
| root 54 0.0 0.0 12168 3952 ? S 05:47 0:00 sshd: /usr/sbin/sshd -D -f /assets/sshd_config -e [listener] 0 of 100-200 startups | |
| root 418 0.0 0.0 2364 384 ? |
This file contains hidden or 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
| diff -x .~ -x '*.pyc' -u /tmp/googletrans/client.py /home/k-okada/.local/lib/python2.7/site-packages/googletrans/client.py | |
| --- /tmp/googletrans/client.py 2023-04-15 18:50:05.255488550 +0900 | |
| +++ /home/k-okada/.local/lib/python2.7/site-packages/googletrans/client.py 2023-04-15 22:12:46.605582467 +0900 | |
| @@ -6,12 +6,13 @@ | |
| """ | |
| import requests | |
| import random | |
| +import re | |
| from googletrans import urls, utils |
This file contains hidden or 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
| (if (not (boundp '*irtviewer*)) | |
| (make-irtviewer)) | |
| (require "models/akira-robot.l") | |
| (require "models/human-robot.l") | |
| (require "/opt/ros/melodic/share/pr2eus/pr2.l") | |
| (setq robot-fn #'akira) | |
| ;; (setq robot-fn #'human) | |
| ;; (setq robot-fn #'pr2) | |
| ;; write white back |