AGV.TravelPathSection
説明
AGVの移動オペレーション中に行われる特定のパスセクションの通過を表す構造体です。
AGVは、移動オペレーションを開始するとき、目的地到達までに通過するパスの内部表現を構築します。このパスはAGV.travelPathに格納されます。AGV.travelPathは、length
プロパティと配列逆参照(角かっこ:[])演算子を持つ配列状の構造体です。アクセスされる各要素は、AGV.TravelPathSectionのインスタンスです。AGV.TravelPathSectionは、通過するAGVパスのサブセクションを表し、下記のプロパティを持ちます。AGV.currentTravelPathSectionを使用して、AGVが現在移動中の移動パスセクションにアクセスすることもできます。
//Printing an AGV's full path
AGV agv = AGV(current);
for (int i = 1; i <= agv.travelPath.length; i++) {
AGV.TravelPathSection sec = agv.travelPath[i];
print("path ", sec.path,
" fromDist ", sec.fromDist,
" toDist ", sec.toDist,
" fromTravelDist ", sec.fromTravelDist);
}
プロパティ
fromDist | AGVのパス通過の開始地点を示すパス上の距離。 |
fromTravelDist | AGVのパス通過の開始地点と一致する、AGVの移動距離。 |
isAGVOritentedPathForward | このセクションに沿って移動する間にAGVがパスに沿って順方向に進んでいる場合、つまり、AGVの「先頭」がパスの「主」方向に向いている場合は真。 |
isAGVTravelOrientedForward | このセクションに沿って移動する間にAGVが順方向に移動している場合、つまりAGVの「先頭」が移動方向を向いている場合は真。 |
isPathTravelOrientedForward | セクションの移動方向がパスに沿って順方向である場合、つまり、AGVがパスの「主」方向に移動している場合は真。 |
path | このセクションが関連付けられているパス。 |
toDist | AGVのパス通過の終了地点を示すパス上の距離。 |
詳細
AGV.TravelPathSection.fromTravelDist
readonly double fromTravelDist
説明
AGVのパス通過の開始地点と一致する、AGVの移動距離。
AGVは、移動パスのセクションごとに自身の累積移動距離を記録します。各移動オペレーションは移動距離0で始まり、パスに沿って移動するにつれ、移動距離は増えます。特定の時点におけるAGVの移動距離にアクセスするには、AGV.currentTravelDistを使用できます。
AGV.TravelPathSection.isAGVOritentedPathForward
readonly bool isAGVOritentedPathForward
説明
このセクションに沿って移動する間にAGVがパスに沿って順方向に進んでいる場合、つまり、AGVの「先頭」がパスの「主」方向に向いている場合は真。
AGV.TravelPathSection.isAGVTravelOrientedForward
readonly bool isAGVTravelOrientedForward
説明
このセクションに沿って移動する間にAGVが順方向に移動している場合、つまりAGVの「先頭」が移動方向を向いている場合は真。
AGV.TravelPathSection.isPathTravelOrientedForward
readonly bool isPathTravelOrientedForward
説明
セクションの移動方向がパスに沿って順方向である場合、つまり、AGVがパスの「主」方向に移動している場合は真。
AGV.TravelPathSection.isAGVOritentedPathForward
readonly bool isAGVOritentedPathForward
Description
True if, while traveling along this section, the AGV is oriented forward along the path, i.e. the AGV's 'head' is directed forward along the path's 'primary' direction.
AGV.TravelPathSection.isAGVTravelOrientedForward
readonly bool isAGVTravelOrientedForward
Description
True if, while traveling along this section, the AGV is traveling in a forward direction, i.e. its 'head' is leading in the direction of travel.
AGV.TravelPathSection.isPathTravelOrientedForward
readonly bool isPathTravelOrientedForward
Description
True if the section's travel direction is forward along the path, i.e. the AGV is traveling in the path's 'primary' direction.