adjust urg doxygen files.
@@ -1,14 +1,21 @@ | ||
1 | +2008/09/02 | |
2 | +---------------------------------------------------------------------- | |
3 | +MultiUrgViewer_page.html | |
4 | +複数 URG の距離表示ツールを追加 | |
5 | +複数の URG データを、同時に表示できるアプリケーションの実装例を追加。 | |
6 | + | |
7 | + | |
1 | 8 | 2008/08/07 |
2 | 9 | ---------------------------------------------------------------------- |
3 | 10 | ViewUrgPort_page.html |
4 | -URG ポートの表示ツールを追加。 | |
5 | -Windows 上の COM ポートを表示できるツール。(Windows XP 用) | |
11 | +URG ポートの表示ツールを追加 | |
12 | +Windows 上の COM ポートを表示できるツールを追加。(Windows XP 用) | |
6 | 13 | |
7 | 14 | |
8 | 15 | 2008/07/26 |
9 | 16 | ---------------------------------------------------------------------- |
10 | 17 | scip_capture_page.html |
11 | -プロトコル説明の図の誤りを修正。 | |
18 | +プロトコル説明の図の誤りを修正 | |
12 | 19 | 図において URG と PC の役割が逆になっていたのを修正。 |
13 | 20 | |
14 | 21 |
@@ -133,7 +133,7 @@ | ||
133 | 133 | int reply = scip_->setLaserOutput(ScipHandler::Off, ScipHandler::Force); |
134 | 134 | |
135 | 135 | if ((reply < 0) && (reply != -14)) { |
136 | - // 多分、MD/MS コマンドを受け取ると、ここの分岐に入る | |
136 | + // MD/MS コマンドを受け取ると、ここの分岐に入る | |
137 | 137 | // 受信内容を全て読み飛ばしてから、次の処理を行う |
138 | 138 | // (reply == -14) のときは、SCIP1.1 応答で 'E' の場合 |
139 | 139 | skip(con_, ScipTimeout); |
@@ -0,0 +1,50 @@ | ||
1 | +/*! | |
2 | + \file | |
3 | + \brief 受信データのログ記録サンプル | |
4 | + | |
5 | + \author Satofumi KAMIMURA | |
6 | + | |
7 | + $Id$ | |
8 | +*/ | |
9 | + | |
10 | +#include "SerialCtrl.h" | |
11 | +#include "ConnectionUtils.h" | |
12 | + | |
13 | +using namespace qrk; | |
14 | + | |
15 | +namespace | |
16 | +{ | |
17 | + enum { | |
18 | + Timeout = 1000, | |
19 | + BufferSize = 80, | |
20 | + }; | |
21 | +}; | |
22 | + | |
23 | + | |
24 | +int main(int argc, char *argv[]) | |
25 | +{ | |
26 | + SerialCtrl con; | |
27 | + if (! con.connect("/dev/usb/ttyUSB0", 115200)) { | |
28 | + printf("SerialCtrl::connect: %s\n", con.what()); | |
29 | + exit(1); | |
30 | + } | |
31 | + | |
32 | + con.send("SCIP2.0\r", 8); | |
33 | + skip(&con, Timeout); | |
34 | + | |
35 | + // 連続データ取得コマンドの指示 | |
36 | + con.send("MS0044072502200\r", 16); | |
37 | + | |
38 | + char buffer[BufferSize]; | |
39 | + | |
40 | + int count = 0; | |
41 | + while (1) { | |
42 | + readline(&con, buffer, BufferSize, Timeout); | |
43 | + printf("%s\n", buffer); | |
44 | + | |
45 | + if (count % 100 == 0) { | |
46 | + fprintf(stderr, "%d\n", count); | |
47 | + } | |
48 | + ++count; | |
49 | + } | |
50 | +} |
@@ -11,6 +11,7 @@ | ||
11 | 11 | |
12 | 12 | # Target |
13 | 13 | TARGET = \ |
14 | + recordRecvData \ | |
14 | 15 | evaluateTmTimestamp \ |
15 | 16 | evaluateGdTimestamp \ |
16 | 17 |
@@ -7,8 +7,10 @@ | ||
7 | 7 | $Id$ |
8 | 8 | */ |
9 | 9 | |
10 | +#include "UrgFiltersWindow.h" | |
10 | 11 | #include <QApplication> |
11 | -#include "UrgFiltersWindow.h" | |
12 | +#include <QTranslator> | |
13 | +#include <QLocale> | |
12 | 14 | |
13 | 15 | |
14 | 16 | int main(int argc, char *argv[]) |
@@ -16,7 +18,10 @@ | ||
16 | 18 | QApplication app(argc, argv); |
17 | 19 | |
18 | 20 | // ロケールの設定 |
19 | - // !!! | |
21 | + QString locale = QLocale::system().name(); | |
22 | + QTranslator translator; | |
23 | + translator.load("UrgFilters_" + locale); | |
24 | + app.installTranslator(&translator); | |
20 | 25 | |
21 | 26 | UrgFiltersWindow window; |
22 | 27 | window.show(); |
@@ -9,6 +9,7 @@ | ||
9 | 9 | |
10 | 10 | #include <QApplication> |
11 | 11 | #include <QTranslator> |
12 | +#include <QLocale> | |
12 | 13 | #include "UrgScannerWindow.h" |
13 | 14 | |
14 | 15 |
@@ -6,6 +6,7 @@ | ||
6 | 6 | |
7 | 7 | $Id$ |
8 | 8 | |
9 | + \todo センサ中心を下から 1/3 の位置に修正する | |
9 | 10 | \todo 接続処理をスレッド化して、全体が停止しないようにする |
10 | 11 | \todo 接続中は、ポート名のコンボボックスを disable にする |
11 | 12 | */ |