adjut *.pro files
@@ -2,6 +2,8 @@ | ||
2 | 2 | \file |
3 | 3 | \brief GD スキャンサンプル |
4 | 4 | |
5 | + GD コマンドを用いて、逐次の距離データ取得を行う | |
6 | + | |
5 | 7 | \author Satofumi KAMIMURA |
6 | 8 | |
7 | 9 | $Id$ |
@@ -2,6 +2,8 @@ | ||
2 | 2 | \file |
3 | 3 | \brief バージョン情報の取得 |
4 | 4 | |
5 | + URG のバージョン文字列を取得する | |
6 | + | |
5 | 7 | \author Satofumi KAMIMURA |
6 | 8 | |
7 | 9 | $Id$ |
@@ -2,6 +2,8 @@ | ||
2 | 2 | \file |
3 | 3 | \brief パラメータ取得サンプル |
4 | 4 | |
5 | + URG パラメータの取得を行う | |
6 | + | |
5 | 7 | \author Satofumi KAMIMURA |
6 | 8 | |
7 | 9 | $Id$ |
@@ -2,6 +2,8 @@ | ||
2 | 2 | \file |
3 | 3 | \brief タイムスタンプの取得サンプル |
4 | 4 | |
5 | + TM0, TM1, TM2 コマンドを用いて、タイムスタンプを取得する | |
6 | + | |
5 | 7 | \author Satofumi KAMIMURA |
6 | 8 | |
7 | 9 | $Id$ |
@@ -2,6 +2,8 @@ | ||
2 | 2 | \file |
3 | 3 | \brief URG データの2次元展開サンプル |
4 | 4 | |
5 | + URG から取得した距離データを、前方が X 軸の正の方向であるとして展開する | |
6 | + | |
5 | 7 | \author Satofumi KAMIMURA |
6 | 8 | |
7 | 9 | $Id$ |
@@ -1,7 +1,9 @@ | ||
1 | 1 | /*! |
2 | 2 | \file |
3 | - \brief GD スキャンサンプル | |
3 | + \brief MD スキャンサンプル | |
4 | 4 | |
5 | + MD コマンドを用いて、距離データを指定回数だけ連続して取得する | |
6 | + | |
5 | 7 | \author Satofumi KAMIMURA |
6 | 8 | |
7 | 9 | $Id$ |
@@ -60,6 +62,8 @@ | ||
60 | 62 | scan_msec = urg_getScanMsec(&urg); |
61 | 63 | |
62 | 64 | /* MD でのデータ要求。取得回数は CaptureTimes 回 */ |
65 | + /* 100 回以上の連続データを取得するには、取得回数を無限回に設定すること */ | |
66 | + /* urg_setCaptureTimes(&urg, UrgInfinityTimes); */ | |
63 | 67 | assert(CaptureTimes < 100); |
64 | 68 | urg_setCaptureTimes(&urg, CaptureTimes); |
65 | 69 | ret = urg_requestData(&urg, URG_MD, URG_FIRST, URG_LAST); |
@@ -72,7 +76,6 @@ | ||
72 | 76 | delay(scan_msec); |
73 | 77 | |
74 | 78 | n = urg_receiveData(&urg, data, data_max); |
75 | - //fprintf(stderr, "n = %d\n", n); | |
76 | 79 | if (n < 0) { |
77 | 80 | urg_exit(&urg, "urg_receiveData()"); |
78 | 81 | } |
@@ -2,6 +2,8 @@ | ||
2 | 2 | \file |
3 | 3 | \brief 角度変換のサンプル |
4 | 4 | |
5 | + URG の角度とインデックスを変換した結果を出力する | |
6 | + | |
5 | 7 | \author Satofumi KAMIMURA |
6 | 8 | |
7 | 9 | $Id$ |
@@ -17,6 +17,7 @@ | ||
17 | 17 | |
18 | 18 | enum { |
19 | 19 | UrgLineWidth = 64 + 1 + 1, /*!< 1行の最大長 */ |
20 | + UrgInfinityTimes = 0, /*!< MD/MS コマンドにおけるデータ取得回数 */ | |
20 | 21 | }; |
21 | 22 | |
22 | 23 |
@@ -0,0 +1 @@ | ||
1 | +Satofumi KAMIMURA |
@@ -0,0 +1,2 @@ | ||
1 | +2008-06-25 Satofumi KAMIMURA <satofumi@uers.sourceforge.jp> | |
2 | + * First release. |
@@ -0,0 +1,30 @@ | ||
1 | +---------------------------------------------------------------------- | |
2 | +-- About URG Library (C/C++) [2008/06/25] | |
3 | +---------------------------------------------------------------------- | |
4 | + | |
5 | +About | |
6 | +---------------------------------------- | |
7 | +This is Library for URG Sensors. (Classic-URG, Rapid-URG, Hi-URG, Top-URG) | |
8 | + | |
9 | + | |
10 | +Compiling and Running | |
11 | +---------------------------------------- | |
12 | +- Windows (Visual Studio 2005) | |
13 | + - Decompress package folder and select "urg-X.X.X/samples/c/*/*.vcproj" | |
14 | + - After project opens in Visual Studio, press F5 to Build and Run. | |
15 | + - If COM port is not detected, change the "device" in the main. | |
16 | + | |
17 | +- Linux, Mac | |
18 | + - Decompress and ./configure & make | |
19 | + | |
20 | +- C++ Library required boost(>=1.35) and SDL(>=1.2.10) library. | |
21 | + | |
22 | + | |
23 | +Important | |
24 | +---------------------------------------- | |
25 | +- Author does not bear responsibility for any loss or damage caused by using this code.(Bug reports are welcome) | |
26 | +- Change the "device" and com_baudrate inside main() if needed. | |
27 | + | |
28 | +Contact | |
29 | +---------------------------------------- | |
30 | +Satofumi KAMIMURA <satofumi@users.sourceforge.jp> |
@@ -1,3 +1,5 @@ | ||
1 | 1 | ## Makefile.am -- Process this file with automake to produce Makefile.in |
2 | 2 | |
3 | 3 | SUBDIRS = src samples |
4 | + | |
5 | +EXTRA_DIST = README_ja.txt |