Quick Robot Development Kit. More...
Classes | |
| class | CaptureSettings |
| Data acquisition setting. More... | |
| class | RangeSensor |
| Range sensor interface. More... | |
| class | RangeSensorParameter |
| class to manage range sensor's parameter More... | |
| class | ScipHandler |
| Handler to SCIP protocol. More... | |
| class | UrgCtrl |
| URG sensor control. More... | |
| class | UrgDevice |
| URG sensor control. More... | |
| class | UrgUsbCom |
| Search for USB connected port. More... | |
| class | Color |
| 色の定義クラス More... | |
| class | MovingAverage |
| 移動平均のテンプレート More... | |
| class | MovingMedian |
| 移動平均のメディアン演算版テンプレート More... | |
| class | RingBuffer |
| リングバッファ More... | |
| class | Connection |
| 通信インターフェース More... | |
| class | ConnectionRecorder |
| 通信データの記録クラス More... | |
| class | CustomConnection |
| 送受信データを任意に設定できる接続クラス More... | |
| class | FindComPorts |
| シリアルポートの探索を行う More... | |
| class | IsUsbCom |
| USB ポートの判別クラス More... | |
| class | SerialDevice |
| シリアル通信クラス More... | |
| class | StandardIo |
| 標準入出力クラス More... | |
| class | TcpipAccepter |
| 接続の受付 More... | |
| class | TcpipSocket |
| TCP/IP 通信 More... | |
| class | BatteryState |
| PC バッテリー状態の取得 More... | |
| class | ConditionVariable |
| 条件変数 More... | |
| class | CycleTimer |
| 周期タイマー More... | |
| class | Lock |
| ロッククラス More... | |
| class | LockGuard |
| ロックガードクラス More... | |
| class | ManagedTicks |
| 時間経過の管理クラス More... | |
| class | Semaphore |
| セマフォ管理 More... | |
| class | StopWatch |
| 一時停止可能なタイマー More... | |
| class | Thread |
| スレッド処理 More... | |
| class | Joystick |
| ジョイスティックのインターフェース More... | |
| class | SdlJoystickInit |
| SDL 対応ジョイスティックの初期化 More... | |
| class | UsbJoystick |
| USB ジョイスティック More... | |
| class | WiiJoystick |
| Wii リモコンの制御クラス More... | |
Enumerations | |
| enum | CaptureType { TypeUnknown, QT, GD, GS, MD, MS, ME, Mx_Reply, InvalidData } |
| Receive data type. More... | |
| enum | RangeCaptureMode { ManualCapture, AutoCapture, IntensityCapture } |
| The type in which data is acquired. More... | |
| enum | { ReceiveTimeout = -1, ErrorLastIndex = -2 } |
| enum | { ScipTimeout = 200 } |
Functions | |
| void | convert2d (std::vector< qrk::Point< long > > &points, const RangeSensor *sensor, const std::vector< long > &data, const qrk::Position< long > &offset, int max_length=-1) |
| Extract two dimensional plane from RangeSensor data. | |
| void | convert2d (std::vector< qrk::Point< long > > &points, const RangeSensor *sensor, const std::vector< long > &data, int max_length=-1) |
| template<class T > | |
| long | urgSerialId (T *urg) |
| Get serial ID. | |
| size_t | split (std::vector< std::string > &tokens, const std::string &original, const char *split_pattern=" \t", bool continious_pattern=true) |
| 指定文字による分割 | |
| bool | isLF (const char ch) |
| 改行コードかを返す | |
| void | skip (Connection *con, int total_timeout, int each_timeout=0) |
| 受信データを読み飛ばす | |
| int | readline (Connection *con, char *buf, const size_t count, int timeout) |
| 改行までのデータ読み出し | |
| template<class T > | |
| void | swapConnection (T &a, T &b) |
| 接続オブジェクトの交換 | |
| bool | isUsingComDriver (const char *com_port, const char *driver_name) |
| 指定ドライバを利用している COM ポートが存在するかを返す | |
| bool | resetComPort (const char *com_device) |
| void | delay (int msec) |
| 待機 | |
| bool | fileExist (const char *file) |
| ファイルの存在確認 | |
| size_t | findFiles (std::vector< std::string > &files, const char *root_path, const boost::xpressive::sregex pattern) |
| int | log_printf (const char *format,...) |
| ログ記録用 | |
| void | log_setName (const char *file_name) |
| 出力ファイル名を変更する | |
| long | ticks (void) |
| タイムスタンプの取得 | |
| bool | rescanWiimote (void) |
| Wii リモコン用ドライバの再ロード | |
| void | estimateWiiPose (Angle &vertical_direction, Angle &rotation, const Point3d< double > &acceleration) |
| Wii リモコン姿勢の推定 | |
Quick Robot Development Kit.
Quick Robot Develoment Kit.
| enum qrk::CaptureType |
Receive data type.
Definition at line 21 of file CaptureSettings.h.
The type in which data is acquired.
There are 2 types of data acquistion. One is "Automatic acquisition" in which data is transmitted continuously once the command is sent to sensor. Other type is "sequential acquisition" in which only one set of data is transmitted when command is sent to sensor.
High intensity data is acquired by "automatic acquisition" type
| ManualCapture |
sequential acquisition |
| AutoCapture |
Automatic acquisition. |
| IntensityCapture |
High intensity acquisition. |
Definition at line 24 of file RangeCaptureMode.h.
| anonymous enum |
Definition at line 21 of file ScipUtils.h.
| void qrk::convert2d | ( | std::vector< qrk::Point< long > > & | points, |
| const RangeSensor * | sensor, | ||
| const std::vector< long > & | data, | ||
| const qrk::Position< long > & | offset, | ||
| int | max_length = -1 |
||
| ) |
Extract two dimensional plane from RangeSensor data.
| [out] | points | Group of data points after conversion |
| [in] | sensor | Target sensor |
| [in] | data | Measurement data |
| [in] | offset | Offset during conversion |
| [in] | max_length | Maximum distance up to which conversion is permitted (The value -1 means max distance.) |
| void qrk::convert2d | ( | std::vector< qrk::Point< long > > & | points, |
| const RangeSensor * | sensor, | ||
| const std::vector< long > & | data, | ||
| int | max_length = -1 |
||
| ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| long qrk::urgSerialId | ( | T * | urg | ) |
Get serial ID.
| [in] | urg | urg object |
| >= | serial id |
| <0 | error |
Definition at line 27 of file UrgUtils.h.
| size_t qrk::split | ( | std::vector< std::string > & | tokens, |
| const std::string & | original, | ||
| const char * | split_pattern = " \t", |
||
| bool | continious_pattern = true |
||
| ) |
| bool qrk::isLF | ( | const char | ch | ) |
改行コードかを返す
| true | LF, CR のとき |
| false | 上記以外のとき |
Definition at line 16 of file ConnectionUtils.cpp.
| void qrk::skip | ( | Connection * | con, |
| int | total_timeout, | ||
| int | each_timeout = 0 |
||
| ) |
受信データを読み飛ばす
Connection::clear() とは、タイムアウト時間を指定して読み飛ばせる点が異なる
| [in,out] | con | 通信リソース |
| [in] | total_timeout | タイムアウト時間の上限 [msec] |
| [in] | each_timeout | 受信データ間におけるタイムアウト時間の上限 [msec] |
Definition at line 22 of file ConnectionUtils.cpp.
| int qrk::readline | ( | Connection * | con, |
| char * | buf, | ||
| const size_t | count, | ||
| int | timeout | ||
| ) |
改行までのデータ読み出し
文字列終端に \0 を付加して返す
| [in,out] | con | 通信リソース |
| [out] | buf | 受信バッファ |
| [in] | count | 受信バッファの最大サイズ |
| [in] | timeout | タイムアウト [msec] |
Definition at line 39 of file ConnectionUtils.cpp.
| void qrk::swapConnection | ( | T & | a, |
| T & | b | ||
| ) |
| bool qrk::isUsingComDriver | ( | const char * | com_port, |
| const char * | driver_name | ||
| ) |
指定ドライバを利用している COM ポートが存在するかを返す
| [in] | com_port | 判定を行う COM ポート |
| [in] | driver_name | 判定を行うドライバ名 |
| true | 指定ドライバの COM ポートが存在する |
| false | 存在しない |
Definition at line 95 of file isUsingComDriver.cpp.
| void qrk::delay | ( | int | msec | ) |
| bool qrk::fileExist | ( | const char * | file | ) |
ファイルの存在確認
| [in] | ファイル名 |
| true | ファイルあり |
| false | ファイルなし |
Definition at line 25 of file fileExist.cpp.
| size_t qrk::findFiles | ( | std::vector< std::string > & | files, |
| const char * | root_path, | ||
| const boost::xpressive::sregex | pattern | ||
| ) |
ディレクトリ以下のファイル探索を行う
| [out] | files | 見付かったファイル |
| [in] | root_path | 探索のルートディレクトリ |
| [in] | pattern | ファイルの検索パターン |
Definition at line 23 of file findFiles.cpp.
| int qrk::log_printf | ( | const char * | format, |
| ... | |||
| ) |
| void qrk::log_setName | ( | const char * | file_name | ) |
出力ファイル名を変更する
Definition at line 54 of file log_printf.cpp.
| long qrk::ticks | ( | void | ) |
| bool qrk::rescanWiimote | ( | void | ) |
| void qrk::estimateWiiPose | ( | Angle & | vertical_direction, |
| Angle & | rotation, | ||
| const Point3d< double > & | acceleration | ||
| ) |
Wii リモコン姿勢の推定
| [out] | vertical_direction | 鉛直方向に対する角度 |
| [out] | rotation | リモコン長手方向の角度 |
| [in] | acceleration | 加速度 |
Definition at line 17 of file WiiUtils.cpp.
1.7.6.1-20120122