只要是在 CS 產業,想要當軟體工程師,基本的資料結構和演算法功力是必須要時時打磨的,這次就整理一些好用的工具,而且盡量把資源最小化,讓大家在準備面試時有足夠資源,又不會被太多資料弄得暈頭轉向。
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition:
- Stores data elements based on an sequential, most commonly 0 based, index.
- Based on tuples from set theory.
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/bin/env python | |
import rospy | |
from assignment_5.srv import CommandService | |
import serial | |
import struct | |
VELOCITYCHANGE = 200 | |
ROTATIONCHANGE = 300 |
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@ros-K401UB:~$ sudo apt-get remove dkms virtualbox-dkms | |
[sudo] password for ros: | |
正在讀取套件清單... 完成 | |
正在重建相依關係 | |
正在讀取狀態資料... 完成 | |
The following packages were automatically installed and are no longer required: | |
libntdb1 linux-headers-3.13.0-93 linux-headers-3.13.0-93-generic python-ntdb | |
Use 'apt-get autoremove' to remove them. | |
下列套件將會被【移除】: | |
dkms virtualbox-dkms |
這檔案引用了幾個之前比較不熟悉的標頭檔,列在下面
Gvars 3是一個可以讀設定檔的函式庫,在這邊是用來跟GUI綁定在一起,用來讀程式算出的相機參數 http://www.edwardrosten.com/cvd/gvars3.html
libcvd是一個電腦視覺的函式庫,擁有基本的影像處理功能。
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
/* | |
simpleDealer()的邏輯很簡單,既然我已經知道要發牌給四個人,那就先產生四個空牌堆。 | |
然後,因為要發13張牌給每個人,那就用for迴圈跑13次,每次都發4張牌。 | |
最後再把四個牌堆都塞到decks裡面,就可以回傳結果了。 | |
*/ | |
function simpleDealer(deck) | |
{ | |
var deckOne = []; | |
var deckTwo = []; | |
var deckThree = []; |
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
<launch> | |
<node pkg="image_view" type="image_view" name="image_view" respawn="false" output="log"> | |
<remap from="/camera/image_raw" to="/ORB_SLAM/Frame" /> | |
<param name="autosize" value="true"/> | |
</node> | |
<node pkg="rviz" type="rviz" name="rviz" args="-d $(find ORB_SLAM)/Data/rviz.vcg" output="log"> | |
</node> |
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
Modify the original code: | |
scan_msg.angle_min = M_PI - angle_min; | |
scan_msg.angle_max = M_PI - angle_max; | |
to: | |
scan_msg.angle_min = -1*(M_PI - angle_min); | |
scan_msg.angle_max = M_PI - angle_min; |