Help / Attribute Reference

Attribute Reference

42 GRS reference entries.

vehicle.id [OHT, AMR]

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

vehicle.station [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

vehicle.from [OHT, AMR]

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

vehicle.destination [OHT, AMR]

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

vehicle.phase [OHT, AMR]

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

vehicle.current_speed [OHT, AMR]

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

vehicle.remaining_distance [OHT, AMR]

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

vehicle.x [OHT, AMR]

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

vehicle.y [OHT, AMR]

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

vehicle.heading [OHT, AMR]

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

vehicle.rotating_in_place [OHT, AMR]

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

vehicle.current_path [OHT]

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

vehicle.has_assigned_job [OHT]

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

vehicle.service_remaining_seconds [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

vehicle.service_duration_seconds [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

vehicle.angular_speed [AMR]

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

vehicle.z [AMR]

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

vehicle.traffic_state [AMR]

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

vehicle.schedjobs [OHT]

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

vehicle.current_schedjob [OHT]

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

vehicle.battery [AMR]

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

vehicle.blocked_by [OHT, AMR]

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

vehicle.blocked_since_seconds [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

vehicle.blocked_elapsed_seconds [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

vehicle.waiting_for_station [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

load.id [OHT]

Purpose
Returns the script Load ID.
Syntax
load.id
Example
print(load.id);
Notes
Type: Number. Access: read-only. Modules: OHT.
Related
OHT

load.name [OHT]

Purpose
Returns the script Load name.
Syntax
load.name
Example
print(load.name);
Notes
Type: String. Access: read-only. Modules: OHT.
Related
OHT

load.vehicle [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

load.location [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

load.destination [OHT]

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

load.onboard [OHT]

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

load.alive [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

load.state [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

job.id [OHT]

Purpose
Returns the stable ScheduleJob ID.
Syntax
job.id
Example
print(job.id);
Notes
Type: Number. Access: read-only. Modules: OHT.
Related
OHT

job.type [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

job.vehicle [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

job.load [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

job.location [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

job.released_us [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

job.alive [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

job.current [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

job.physical_committed [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