原创 Accelerate git clone in mainland China

How to accelerate git clone Check the speed of the following three addresses: 192.30.253.112 github.com 151.101.72

原创 C++ Primer Plus 學習筆記1:循環結構

For 循環中省略了測試條件時,將認爲條件爲true。 clock_t爲系統時間的類型名的別名,因此無論系統時間是long 還是 unsigned long,都可以用clock_t聲明。CLOCKS_PER_SEC定義了系統時間

原创 雷達項目回顧-5

最近換了NXP的新雷達,有了新的數據處理 ROS的dynamic reconfigure: 寫.cfg 文件 在node代碼種加入reconfigure相關內容 在CMakeLists中加入新創建的.cfg文件 chmod +x

原创 通過阿里雲跳板機實現內網SSH反向代理

我有一臺工作站(以下稱之爲WS)連接在華爲4G 路由器B315 上,運營商並沒有分配公網ip,因此從公網到這臺電腦經歷了兩層NAT,一層是運營商的,一層是華爲路由器的。假設用戶名爲user_ws。 我租用了一臺有彈性公網ip的阿里

原创 刪除git倉庫中大文件的提交記錄

如果在git中不小心提交了體積很大的文件,那麼就算刪除了這些文件後再次提交,也仍然會導致.git文件夾過大(我們只是提交了一個“刪除”,而不是把文件徹底刪除了)。 首先,可以通過命令 git verify-pack -v .git

原创 如何通過VSCode遠程調試

需要安裝Remote-Development 插件和Remote-SSH插件 用shift+ctrl+P 進入VSC的命令工具,然後輸入ssh,輸入需要ssh的hostname@host_ip -p [port_number] 如

原创 Ubuntu系統替換軟件源

修改 sudo vim /etc/apt/source.list vim全選: Esc + v(visual mode) + gg (to the first char) + G (to the last char) + d

原创 Programming Robots with ROS讀書筆記-1

Programming Robots with ROS ROS的msg是存在某個package裏面的,所以用rostopic find <msg>的時候,要把msg所屬於的pkg名也加上,比如rostopic find std_ms

原创 雷達項目回顧3

程序的實現遠比想象中難,比如把雷達從極座標remap到直角座標生成一個新的矩陣,矩陣中每個新的cell的物理尺度就不再隨着距離而變化了,但是這個warp是不直觀的。所以,在真正編程實現之前,一定要想好究竟這樣做是不是合理的。比如插值

原创 Leetcode 15. 3Sum

題目: Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique tr

原创 Tensorflow學習筆記 1

Keras 不能直接import tensorflow.keras,而是應該直接用import tensorflow as tf然後調用tf.keras,但是可以用from tensorflow.keras import layer

原创 Leetcode 11. Container With Most Water

題目: Given n non-negative integers a1, a2, …, an , where each represents a point at coordinate (i, ai). n vertical lin

原创 Leetcode 2. Add Two Numbers

題目要求 You are given two non-empty linked lists representing two non-negative integers. The digits are stored in revers

原创 配置一臺Ubuntu18.04和Windows10雙系統的電腦並配置好Tensorflow

1. 安裝雙系統 1.1 製作usb啓動盤: 下載Ubuntu18.04的iso並用工具(比如rufus)burn到USB-key中,這時候usb-key就成了啓動盤。 1.2 Windows分區: 先把Windows的快速啓動關掉

原创 347. Top K Frequent Elements

題目: Given a non-empty array of integers, return the k most frequent elements. 例子: Input: nums = [1,1,1,2,2,3], k = 2