Help / Attribute Reference
Attribute Reference
42 GRS reference entries.
- Purpose
- Returns the dense runtime Vehicle/Robot ID.
- Syntax
vehicle.id
- Example
print(vehicle.id);
- Notes
- Type: Number. Access: read-only. Modules: OHT, AMR. Physical runtime identity; not a user-defined attribute.
- Related
- OHT, AMR
- Purpose
- Returns the current/last Station index.
- Syntax
vehicle.station
- Example
print(vehicle.station);
- Notes
- Type: Number or null. Access: read-only. Modules: OHT, AMR. Alias vehicle.location resolves to the same value.
- Related
- vehicle.location
- Purpose
- Returns the current Job source Station index.
- Syntax
vehicle.from
- Example
print(vehicle.from);
- Notes
- Type: Number or null. Access: read-only. Modules: OHT, AMR.
- Related
- vehicle.fromstation
- Purpose
- Returns the current destination Station index.
- Syntax
vehicle.destination
- Example
print(vehicle.destination);
- Notes
- Type: Number or null. Access: read-only. Modules: OHT, AMR.
- Related
- vehicle.destinationstation
- Purpose
- Returns the authoritative runtime phase/status text.
- Syntax
vehicle.phase
- Example
print(vehicle.phase);
- Notes
- Type: String. Access: read-only. Modules: OHT, AMR. Alias vehicle.status resolves to the same value.
- Related
- vehicle.status
- Purpose
- Returns authoritative current linear speed.
- Syntax
vehicle.current_speed
- Example
print(vehicle.current_speed);
- Notes
- Type: Number (mm/s). Access: read-only. Modules: OHT, AMR. OHT reads the Rail Vehicle motion speed; AMR reads the robot linear speed.
- Related
- vehicle.speed / vehicle.velocity
- Purpose
- Returns remaining distance on the current route.
- Syntax
vehicle.remaining_distance
- Example
print(vehicle.remaining_distance);
- Notes
- Type: Number (mm). Access: read-only. Modules: OHT, AMR. Zero is valid at a destination or when no route is active.
- Related
- vehicle.route_remaining / vehicle.route_remaining_distance
- Purpose
- Returns current world X position.
- Syntax
vehicle.x
- Example
print(vehicle.x);
- Notes
- Type: Number (mm). Access: read-only. Modules: OHT, AMR.
- Related
- vehicle.x_mm
- Purpose
- Returns current world Y position.
- Syntax
vehicle.y
- Example
print(vehicle.y);
- Notes
- Type: Number (mm). Access: read-only. Modules: OHT, AMR.
- Related
- vehicle.y_mm
- Purpose
- Returns current heading in radians.
- Syntax
vehicle.heading
- Example
print(vehicle.heading);
- Notes
- Type: Number (rad) or null. Access: read-only. Modules: OHT, AMR. OHT can return null only when a legacy snapshot has no authoritative heading.
- Related
- vehicle.heading_rad
- Purpose
- Returns true while the runtime is rotating in place.
- Syntax
vehicle.rotating_in_place
- Example
print(vehicle.rotating_in_place);
- Notes
- Type: Bool. Access: read-only. Modules: OHT, AMR.
- Related
- OHT, AMR
- Purpose
- Returns the directed Rail Path ID currently occupied by the OHT.
- Syntax
vehicle.current_path
- Example
print(vehicle.current_path);
- Notes
- Type: Number or null. Access: read-only. Modules: OHT. AMR free-floor motion has no equivalent Rail Path ID.
- Related
- vehicle.path
- Purpose
- Returns whether the physical OHT owns a real transport Job.
- Syntax
vehicle.has_assigned_job
- Example
print(vehicle.has_assigned_job);
- Notes
- Type: Bool. Access: read-only. Modules: OHT. This is physical Job ownership, not merely a script custom attribute.
- Related
- OHT
- Purpose
- Returns remaining Pickup/Setdown service time.
- Syntax
vehicle.service_remaining_seconds
- Example
print(vehicle.service_remaining_seconds);
- Notes
- Type: Number (s). Access: read-only. Modules: OHT. Returns zero outside Pickup/Setdown.
- Related
- OHT
- Purpose
- Returns configured duration of the active Pickup/Setdown service phase.
- Syntax
vehicle.service_duration_seconds
- Example
print(vehicle.service_duration_seconds);
- Notes
- Type: Number (s). Access: read-only. Modules: OHT. Returns zero outside Pickup/Setdown.
- Related
- OHT
- Purpose
- Returns current AMR angular speed.
- Syntax
vehicle.angular_speed
- Example
print(vehicle.angular_speed);
- Notes
- Type: Number (rad/s). Access: read-only. Modules: AMR.
- Related
- vehicle.angular_speed_rad_s
- Purpose
- Returns current AMR 2.5D elevation.
- Syntax
vehicle.z
- Example
print(vehicle.z);
- Notes
- Type: Number (mm). Access: read-only. Modules: AMR.
- Related
- vehicle.z_mm
- Purpose
- Returns AMR traffic state text (Cruise/Slow/Stop).
- Syntax
vehicle.traffic_state
- Example
print(vehicle.traffic_state);
- Notes
- Type: String. Access: read-only. Modules: AMR.
- Related
- vehicle.traffic
- Purpose
- Returns the alive ScheduleJobs associated with the OHT Vehicle.
- Syntax
vehicle.schedjobs
- Example
print(vehicle.schedjobs.size);
- Notes
- Type: List<ScheduleJob>. Access: read-only. Modules: OHT. AMR automatic dispatch does not expose this OHT ScheduleJob list.
- Related
- vehicle.schedulejobs
- Purpose
- Gets or selects the current OHT ScheduleJob.
- Syntax
vehicle.current_schedjob
- Example
set(vehicle.current_schedjob, job);
- Notes
- Type: ScheduleJob or null. Access: read/write. Modules: OHT. Only a live job owned by the same Vehicle can be selected.
- Related
- vehicle.currentschedjob
- Purpose
- Returns AMR battery percentage.
- Syntax
vehicle.battery
- Example
print(vehicle.battery);
- Notes
- Type: Number. Access: read-only. Modules: AMR. OHT does not expose a battery attribute through this Host.
- Related
- vehicle.batterypercent
- Purpose
- Returns the directly recorded leader/blocker Vehicle, or null when not currently blocked.
- Syntax
vehicle.blocked_by
- Example
print(vehicle.blocked_by);
- Notes
- Type: Vehicle or null. Access: read-only. Modules: OHT, AMR. Only the Core-recorded direct blocker is returned. Dependency chains and root cause are not inferred.
- Related
- OHT, AMR
- Purpose
- Returns the simulation time this Vehicle began waiting on its current blocked_by, or null when not blocked.
- Syntax
vehicle.blocked_since_seconds
- Example
print(vehicle.blocked_since_seconds);
- Notes
- Type: Number (s) or null. Access: read-only. Modules: OHT, AMR.
- Related
- OHT, AMR
- Purpose
- Returns current simulation time minus blocked_since_seconds, or null when not blocked.
- Syntax
vehicle.blocked_elapsed_seconds
- Example
print(vehicle.blocked_elapsed_seconds);
- Notes
- Type: Number (s) or null. Access: read-only. Modules: OHT, AMR. Computed on read from the existing blocked_since timestamp; no extra polling state is created.
- Related
- OHT, AMR
- Purpose
- Returns true while the AMR finished loading/unloading but is waiting for its destination Station slot to free.
- Syntax
vehicle.waiting_for_station
- Example
print(vehicle.waiting_for_station);
- Notes
- Type: Bool. Access: read-only. Modules: AMR. Event-driven: re-evaluated only when the Station frees, not polled.
- Related
- AMR
- Purpose
- Returns the script Load ID.
- Syntax
load.id
- Example
print(load.id);
- Notes
- Type: Number. Access: read-only. Modules: OHT.
- Related
- OHT
- Purpose
- Returns the script Load name.
- Syntax
load.name
- Example
print(load.name);
- Notes
- Type: String. Access: read-only. Modules: OHT.
- Related
- OHT
- Purpose
- Returns the claimed/onboard Vehicle handle.
- Syntax
load.vehicle
- Example
print(load.vehicle);
- Notes
- Type: Vehicle or null. Access: read-only. Modules: OHT.
- Related
- OHT
- Purpose
- Returns or supplies the off-Vehicle source/location Station.
- Syntax
load.location
- Example
print(load.location);
- Notes
- Type: Number or null. Access: read/write. Modules: OHT. Writes participate in pending scripted transport endpoint binding.
- Related
- load.from / load.source aliases are accepted by transport binding
- Purpose
- Returns or supplies the active delivery destination Station.
- Syntax
load.destination
- Example
print(load.destination);
- Notes
- Type: Number or null. Access: read/write. Modules: OHT. Writes participate in pending scripted transport endpoint binding.
- Related
- load.to / load.target aliases are accepted by transport binding
- Purpose
- Returns true while the Load is physically onboard its carrier.
- Syntax
load.onboard
- Example
print(load.onboard);
- Notes
- Type: Bool. Access: read-only. Modules: OHT.
- Related
- OHT
- Purpose
- Returns whether the script Load is live.
- Syntax
load.alive
- Example
print(load.alive);
- Notes
- Type: Bool. Access: read-only. Modules: OHT.
- Related
- OHT
- Purpose
- Returns created, claimed, onboard, or stored.
- Syntax
load.state
- Example
print(load.state);
- Notes
- Type: String. Access: read-only. Modules: OHT. Derived from current script material ownership/location.
- Related
- OHT
- Purpose
- Returns the stable ScheduleJob ID.
- Syntax
job.id
- Example
print(job.id);
- Notes
- Type: Number. Access: read-only. Modules: OHT.
- Related
- OHT
- Purpose
- Returns current move/retrieve/deliver job type.
- Syntax
job.type
- Example
print(job.type);
- Notes
- Type: String. Access: read-only. Modules: OHT.
- Related
- OHT
- Purpose
- Returns the owning Vehicle.
- Syntax
job.vehicle
- Example
print(job.vehicle);
- Notes
- Type: Vehicle or null. Access: read-only. Modules: OHT.
- Related
- OHT
- Purpose
- Returns the associated Load for material jobs.
- Syntax
job.load
- Example
print(job.load);
- Notes
- Type: Load or null. Access: read-only. Modules: OHT.
- Related
- OHT
- Purpose
- Returns or changes the target Station of an uncommitted job.
- Syntax
job.location
- Example
print(job.location);
- Notes
- Type: Number or null. Access: read/write before commit. Modules: OHT. Committed physical jobs reject location rewrites.
- Related
- OHT
- Purpose
- Returns the script release time in microseconds.
- Syntax
job.released_us
- Example
print(job.released_us);
- Notes
- Type: Number. Access: read-only. Modules: OHT.
- Related
- OHT
- Purpose
- Returns whether the ScheduleJob is live.
- Syntax
job.alive
- Example
print(job.alive);
- Notes
- Type: Bool. Access: read-only. Modules: OHT.
- Related
- OHT
- Purpose
- Returns whether the ScheduleJob is selected as current work.
- Syntax
job.current
- Example
print(job.current);
- Notes
- Type: Bool. Access: read-only. Modules: OHT.
- Related
- OHT
- Purpose
- Returns true once SimulationEngine already owns the physical route for this ScheduleJob.
- Syntax
job.physical_committed
- Example
print(job.physical_committed);
- Notes
- Type: Bool. Access: read-only. Modules: OHT. #30 P4: source/destination Station, assigned/pickup/setdown/completed timestamps, and cancel state/reason are Not Implemented as ScheduleJob Attributes -- the current ScheduleJob struct does not own that state, and this Issue does not fabricate a sidecar owner for it.
- Related
- OHT