initial commit
This commit is contained in:
35
Lab505.Shared/RobotPositions.cs
Normal file
35
Lab505.Shared/RobotPositions.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
namespace Lab505.Shared;
|
||||
|
||||
/// <summary>
|
||||
/// Hằng số vị trí và tham số lùi robot — nguồn duy nhất cho toàn hệ thống.
|
||||
/// Thay đổi ở đây tự động áp dụng vào SystemCondition, FlowService, drivers và simulation.
|
||||
/// </summary>
|
||||
public static class RobotPositions
|
||||
{
|
||||
// ── IMR docked positions ───────────────────────────────────────
|
||||
public const double IMR_C1_X = -0.1, IMR_C1_Y = -5.2;
|
||||
public const double IMR_ABB_X = 1.35, IMR_ABB_Y = -0.8;
|
||||
|
||||
// ── IMR undock parameters ──────────────────────────────────────
|
||||
/// Khoảng lùi khỏi C1 (m) — gửi âm: UndockFromStation_IMR(-IMR_UNDOCK_C1, ...)
|
||||
public const double IMR_UNDOCK_C1 = 2.2;
|
||||
/// Khoảng lùi khỏi ABB (m)
|
||||
public const double IMR_UNDOCK_ABB = 1.2;
|
||||
/// Vận tốc lùi mặc định (m/s)
|
||||
public const double IMR_UNDOCK_VEL = 0.2;
|
||||
|
||||
// ── AMR docked positions ───────────────────────────────────────
|
||||
public const double AMR_CAP1_X = 6.0, AMR_CAP1_Y = 0.2;
|
||||
public const double AMR_CAP2_X = -0.7, AMR_CAP2_Y = -3.19;
|
||||
public const double AMR_HOME_X = 0.0, AMR_HOME_Y = 0.0;
|
||||
|
||||
// ── AMR undocked positions ─────────────────────────────────────
|
||||
/// Vị trí AMR sau khi UndockFromStation khỏi Cap1 (NBR=true / ActionState=FINISHED).
|
||||
/// Đọc X_Vda, Y_Vda tại thời điểm đó để lấy giá trị thực tế.
|
||||
public const double AMR_UNDOCK_CAP1_X = 5.1, AMR_UNDOCK_CAP1_Y = 0.2; // TODO: đo thực tế
|
||||
/// Vị trí AMR sau khi UndockFromStation khỏi Cap2.
|
||||
public const double AMR_UNDOCK_CAP2_X = -0.71, AMR_UNDOCK_CAP2_Y = -2.19;
|
||||
|
||||
// ── Position matching tolerance ────────────────────────────────
|
||||
public const double POS_TOL = 0.2;
|
||||
}
|
||||
Reference in New Issue
Block a user