Skip to content

Instantly share code, notes, and snippets.

View YuehChuan's full-sized avatar

YuehChuan YuehChuan

  • Taiwan
  • 13:02 (UTC +08:00)
View GitHub Profile
corleone@corleone:~$ sudo apt install ros-melodic-desktop
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
amd64-microcode apg apport-symptoms aptdaemon-data command-not-found-data diffstat gettext gir1.2-goa-1.0 gir1.2-snapd-1 gir1.2-vte-2.91 gnome-control-center-faces gnome-online-accounts
gnome-software-common intel-microcode intltool-debian iucode-tool libapt-pkg-perl libarchive-zip-perl libcgi-fast-perl libcgi-pm-perl libclass-accessor-perl libclone-perl libcolord-gtk1
libemail-valid-perl libexporter-tiny-perl libfcgi-perl libgtop-2.0-11 libgtop2-common libio-pty-perl libio-string-perl libipc-run-perl liblist-moreutils-perl libllvm8 libnet-dns-perl
libnet-domain-tld-perl libnet-ip-perl libnss-myhostname libparse-debianchangelog-perl libperlio-gzip-perl libsodium23 libtext-levenshtein-perl libwhoopsie-preferences0 libxatracker2 libxml-libxml-perl
libxml-namespacesupport-
corleone@corleone:~$ sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
[sudo] password for corleone:
Sorry, try again.
[sudo] password for corleone:
corleone@corleone:~$ sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
Executing: /tmp/apt-key-gpghome.JtQ0TbP1kK/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
gpg: key F42ED6FBAB17C654: public key "Open Robotics <[email protected]>" imported
gpg: Total number processed: 1
gpg: imported: 1
corleone@corleone:~$ sudo apt update
external/com_google_absl/absl/strings/string_view.h(495): warning: expression has no effect
external/protobuf_archive/src/google/protobuf/map.h: In instantiation of 'void google::protobuf::Map<Key, T>::InnerMap::iterator_base<KeyValueType>::SearchFrom(google::protobuf::Map<Key, T>::size_type) [with KeyValueType = google::protobuf::Map<std::__cxx11::basic_string<char>, tensorflow::AttrValue>::KeyValuePair; Key = std::__cxx11::basic_string<char>; T = tensorflow::AttrValue; google::protobuf::Map<Key, T>::size_type = long unsigned int]':
external/protobuf_archive/src/google/protobuf/map.h:400:11: required from 'google::protobuf::Map<Key, T>::InnerMap::iterator_base<KeyValueType>::iterator_base(const google::protobuf::Map<Key, T>::InnerMap*) [with KeyValueType = google::protobuf::Map<std::__cxx11::basic_string<char>, tensorflow::AttrValue>::KeyValuePair; Key = std::__cxx11::basic_string<char>; T = tensorflow::AttrValue]'
external/protobuf_archive/src/google/protobuf/map.h:516:28: required from 'google::protob
@YuehChuan
YuehChuan / gist:47bb09e5f8f31154b7aa7974c1924c44
Created February 6, 2020 15:04
bootstrap bazel-0.25.2-dist bash ./compile.sh
🍃 Building Bazel from scratch../usr/lib/jvm/java-8-openjdk-amd64/bin/javac -classpath third_party/android_common/com.android.tools.lint_lint-checks_25.0.0.jar:third_party/android_common/com.android.tools.build_manifest-merger_25.0.0-patched.jar:third_party/android_common/com.android.tools_sdklib_25.0.0.jar:third_party/android_common/com.android.tools.layoutlib_layoutlib_26.1.2.jar:third_party/android_common/com.android.tools_sdk-common_25.0.0.jar:third_party/android_common/com.android.tools.external.lombok_lombok-ast_0.2.3.jar:third_party/android_common/com.android.tools.build_builder-model_2.0.0.jar:third_party/android_common/com.android.tools.build_builder-test-api_2.0.0.jar:third_party/android_common/com.android_annotations_25.0.0.jar:third_party/android_common/com.android.tools_dvlib_25.0.0.jar:third_party/android_common/com.android.tools_repository_25.0.0.jar:third_party/android_common/com.android.tools.build_builder_2.0.0.jar:third_party/android_common/com.android.tools_common_25.0.0.jar:third_party/an
@YuehChuan
YuehChuan / vsb-fault-detection.md
Created December 11, 2019 22:17 — forked from roblesch/vsb-fault-detection.md
VSB Power Line Fault Detection Notes
@YuehChuan
YuehChuan / rise.sh
Last active November 18, 2019 23:14
unset -f curl
# included just in case
curl https://www.google.com/search?q=hk%20police%20massacre%20polyu%27s%20students&aqs=chrome&fbclid=IwAR3q7zfXaUIqJkF0kmCop-UAdp2fUeTDK6WrRl-kDa8yPIz_N7m2cjtR8FQ[0-1118]
# curl loop using URL globbing
#expect output 1-1118
#[1/10]: https://www.hongkongfp.com/2019/11/18/heartbreaking-day-polyu-student-leaders-call-public-hundreds-trapped-campus/0 --> <stdout>
#--_curl_--https://www.hongkongfp.com/2019/11/18/heartbreaking-day-polyu-student-leaders-call-public-hundreds-trapped-campus/0
@YuehChuan
YuehChuan / test_spinner.cpp
Created June 26, 2018 17:41 — forked from bgromov/test_spinner.cpp
Demonstrates the use of AsyncSpinner and custom callback queue in ROS
#include <ros/ros.h>
#include <ros/spinner.h>
#include <ros/callback_queue.h>
#include <std_msgs/Empty.h>
#include <std_msgs/Bool.h>
boost::shared_ptr<ros::AsyncSpinner> g_spinner;
bool g_enable = false;
@YuehChuan
YuehChuan / pytorch-on-duckiebot.md
Created October 12, 2017 05:04 — forked from fgolemo/pytorch-on-duckiebot.md
Installing/compiling PyTorch on Duckiebot - tutorial v1

How to install PyTorch on the Duckiebot

PyTorch is a Python deep learning library that's currently gaining a lot of traction, because it's a lot easier to debug and prototype (compared to TensorFlow / Theano).

To install PyTorch on the Duckietbot you have to compile it from source, because there is no pro-compiled binary for ARMv7 / ARMhf available. This guid will walk you through the required steps.

Step 1: install dependencies and clone repository

First you need to install some additional packages. You might already have installed. If you do, that's not a problem.

@YuehChuan
YuehChuan / pytorch-on-duckiebot.md
Created October 12, 2017 05:04 — forked from fgolemo/pytorch-on-duckiebot.md
Installing/compiling PyTorch on Duckiebot - tutorial v1

How to install PyTorch on the Duckiebot

PyTorch is a Python deep learning library that's currently gaining a lot of traction, because it's a lot easier to debug and prototype (compared to TensorFlow / Theano).

To install PyTorch on the Duckietbot you have to compile it from source, because there is no pro-compiled binary for ARMv7 / ARMhf available. This guid will walk you through the required steps.

Step 1: install dependencies and clone repository

First you need to install some additional packages. You might already have installed. If you do, that's not a problem.

@YuehChuan
YuehChuan / zeromq-vs-redis.md
Created July 20, 2017 12:25 — forked from hmartiro/zeromq-vs-redis.md
Comparison of ZeroMQ and Redis for a robot control platform

ZeroMQ vs Redis

This document is research for the selection of a communication platform for robot-net.

Goal

The purpose of this component is to enable rapid, reliable, and elegant communication between the various nodes of the network, including controllers, sensors, and actuators (robot drivers). It will act as the core of robot-net to create a standardized infrastructure for robot control.

Requirements: