原创 TX2 開機自動啓動程序
原文鏈接 #! /bin/bash source /opt/ros/kinetic/setup.bash roscore 打開終端,在終端中執行gnome-session-properties,會彈出一個“啓動應用程序首
原创 TX2使用shell腳本啓動ros, roslaunch以及編譯好的路徑規劃的可執行文件
1.啓動ROS 文件爲:aotuload.sh #! /bin/bash source /opt/ros/kinetic/setup.bash roscore 2.啓動ZED相機的roslaunch文件 文件爲:aotulo
原创 shell腳本運行後,讓終端不再自動關閉
參考鏈接 只需要在shell文件末尾加上如下命令即可 exec /bin/bash
原创 opencv打開攝像頭並添加時間水印
#include<opencv2/opencv.hpp> #include<iostream> #include <time.h> #include <time.h> using namespace std; using namesp
原创 struct tm,time,localtime,mktime,ctime,gmtime,difftime,asctime,strftime
原文鏈接 1. struct tm int tm_sec; int tm_min; int tm_hour; int tm_mday; int tm_mon; int tm_year; int tm_wday; int tm_yday
原创 時間處理 c++ 獲取當前系統時間 1. 時間戳形式 2. char *形式[轉]
/* ctime example */ #include <stdio.h> #include <time.h> #include <iostream> using namespace std; int main (
原创 opencv打開攝像頭並在圖像中顯示hello opencv
#include "opencv2/core.hpp" #include "opencv2/imgproc.hpp" #include "opencv2/highgui.hpp" #include "opencv2/videoio.hp
原创 OpenCV實踐之路——畫出時鐘並動態同步系統時間
原文鏈接 過程大致分爲兩步:第一步,畫出時鐘;第二步,同步系統時間。其中第一步是跟opencv相關,第二步不太瞭解,不作過多記錄。 一個簡單的時鐘就是線段和圓的組合。包括最外圍的圓,60根刻度線(其中12根整點刻度線)和時針分針秒針三