原创 ROS msg的使用和案列

一、創建msg消息參考: CreatingMsgAndSrv首先創建一個空的package單獨存放msg類型(當然也可以在任意的package中自定義msg類型) 這裏爲便於說明,建立一個名爲test_msgs的包,用於對自定義msg類型

原创 LeetCode刷題:6. ZigZag Conversion

題目:The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to dis

原创 C++ unordered_map

unordered_map的定義template < class Key, class T, class Hash = hash<Key>, class Pred = equal_to<Key>, class Alloc = alloca

原创 LeetCode刷題:5. Longest Palindromic Substring

題目:Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.E

原创 LeetCode刷題:4. Median of Two Sorted Arrays

題目:There are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median of the two sorted arrays. T

原创 Leetcode刷題:3. Longest Substring Without Repeating Characters

題目:Given a string, find the length of the longest substring without repeating characters.Examples:Given "abcabcbb", the

原创 python面向對象程序編程學習記錄

1. case_1:簡單的類,類方法創建 class Cat: def __init__(self, new_name): self.name=new_name print("%s 來了"

原创 Leetcode刷題:1. Two Sum

題目:Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may ass

原创 ROS-indigo版本下hector_quadrotor的編譯問題總結及解決方案

下載hector_quadrotor軟件包軟件庫地址https://github.com/tu-darmstadt-ros-pkg/hector_quadrotor/tree/indigo-devel下載後解壓到自己的工作空間的src目錄

原创 創建ROS工作空間使用catkin_make時出現和python編譯器有關的編譯錯誤

問題場景描述:在進行爲catkin創建ROS工作空間的過程中mkdir -p ~/catkin_ws/src cd ~/catkin_ws/src catkin_init_workspace cd ~/catkin_ws/ c

原创 Leetcode刷題:2. Add Two Numbers

題目:You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse or

原创 python面向對象編程實例:飛機大戰

說明:此則博客只是自己學習python編程的學習記錄,其中完成的程序設計只是飛機大戰的小小小demo,只爲自己熟悉python語言和pygame,所以程序並不完善,只當練手和記錄,當然可基於次程序進行後續的完善開發。最後感謝一下hm的py

原创 LIFT: Learned Invariant Feature Points完整調試記錄

首先拋出LIFT的開源代碼地址:https://github.com/cvlab-epfl/LIFT README.md簡單粗暴,我們撿要點看:Requirements和Usage,說明了依賴項和使用方法,依賴項介紹的很簡潔,但是這也意味

原创 金融量化入門學習記錄

1. 相關書記推薦:Mastering-Python-for-Finance + 打開量化交易的黑箱,這兩本書的資源我已經上傳,當然大家也可以私信我,我私下給你發;   2. numpy學習,學習資源推薦:(1)numpy官方文檔:htt

原创 LeetCode刷題總結:(7)動態規劃相關問題

如果一個問題具有重疊最優子結構的性質,那麼一般就是可以用動態規劃來解決的。其實動態規劃相關的問題不是寫動態規劃的實現代碼,而是抽象出一個符合動態規劃問題的結構,這裏會涉及到具體的狀態定義,以及狀態之間的轉移關係,這個抽象的過程是很難的,也