Japan QualNet Community Forums Japan QualNet Community Forums
Welcome Guest 
ログイン
ユーザ名:

パスワード:


パスワード紛失

新規登録
検索
メインメニュー
アクセスカウンター
2024/05/17:13/15
2024/05/16:22/24

2024/03/18より397/1407
人気モジュール
No.1: フォーラム 98
No.2: QualNet概要 3
No.3: ニュース 2
日曜日からの合計
人気Browser&OS
No.1:巡回ロボット79
No.2:Unknown OS1
No.3:Windows XP1

No.1:どっかの巡回ロボット70
No.2:Majestic-12巡回ロボット6
No.3:Google巡回ロボット3

日曜日からの合計
メイン
   Node Placement & Mobility Settings
     ノードの移動ベクトルの出力
投稿するにはまず登録を

題名 投稿者 日時
   ノードの移動ベクトルの出力 yonah_air 2007/10/5 15:56
     Re: ノードの移動ベクトルの出力 hiro 2007/10/7 15:32
       Re: ノードの移動ベクトルの出力 yonah_air 2007/10/10 2:10
         Re: ノードの移動ベクトルの出力 hiro 2007/10/10 3:20
           Re: ノードの移動ベクトルの出力 ipoten 2007/10/10 18:08
             Re: ノードの移動ベクトルの出力 yonah_air 2007/10/11 3:16
             » Re: ノードの移動ベクトルの出力 yonah_air 2007/10/19 18:02
                 Re: ノードの移動ベクトルの出力 ipoten 2007/10/22 13:00
                   Re: ノードの移動ベクトルの出力 hiro 2007/10/23 13:57
                     Re: ノードの移動ベクトルの出力 yonah_air 2007/10/24 10:27
フラット表示 前のトピック | 次のトピック
投稿者 スレッド
yonah_air
投稿日時: 2007/10/19 18:02
新米
登録日: 2007/7/21
居住地: 福島
投稿: 8
Re: ノードの移動ベクトルの出力
mobility.cppのvoid MOBILITY_ReturnOrientation(const Node* node, Orientation* orientation)で角度が出力されるようですが、printfで出力を確かめようとしたところ、0が出力されて思うような結果が得られませんでした。

例えば、Orientation構造体の変数azimuthに方向が格納されるようなので
応答メッセージ受信イベントの中で
Orientation orientation;
MOBILITY_ReturnOrientation(node, &orientation);
printf("node%3dの方向%d\n",node->nodeId,(int)orientation.azimuth);
としたところ、(int)orientation.azimuthの出力は0でした。

Orientationは方向・azimuthは方位を意味するので、この関数で合っていると思うのですが、プログラムなど間違えの指摘があればよろしくお願いします
フラット表示 前のトピック | 次のトピック
Copyright c KOZO KEIKAKU ENGINEERING Inc. All Rights Reserved.
XOOPS Cube PROJECT