Help / Humanoid Functions
Humanoid Functions
58 GRS reference entries.
- Purpose
- Turns off the pose color change so every Humanoid keeps its original model color.
- Syntax
call humanoid.color_fixed()
- Example
call humanoid.color_fixed()
- Notes
- Call from model.init. Only the display color changes; motion, timing and results are unchanged. Implementation spelling: humanoid.color_fixed().
- Related
- Humanoid
- Purpose
- Creates a Humanoid at a Station/defined place or x/y (m).
- Syntax
call Humanoid_Create(name, place | name, x_m, y_m)
- Example
call Humanoid_Create(name, place | name, x_m, y_m)
- Notes
- Battery starts full. Spec: gigaroute/humanoid/humanoid_spec.hpp (175 cm adult male). Implementation spelling: humanoid_create().
- Related
- Humanoid
- Purpose
- Defines a named work place for humanoid_walk_to/pick/place. Station form (name, work_height_mm) takes position/level from the Station of that name, so no coordinates are written in GRS.
- Syntax
call Humanoid_Define_Place(name, work_height_mm | name, x_m, y_m [, work_height_mm])
- Example
call Humanoid_Define_Place(name, work_height_mm | name, x_m, y_m [, work_height_mm])
- Notes
- Defined places win over Station names. Default work height is 900 mm. Implementation spelling: humanoid_define_place().
- Related
- Humanoid
- Purpose
- Defines a rectangular obstacle Humanoids walk around (optionally limited to a height range).
- Syntax
call Humanoid_Define_Obstacle(name, x1_m, y1_m, x2_m, y2_m [, level_id [, z_min_m [, z_max_m]]])
- Example
call Humanoid_Define_Obstacle(name, x1_m, y1_m, x2_m, y2_m [, level_id [, z_min_m [, z_max_m]]])
- Notes
- On a level with at least one obstacle, humanoid_walk_to/walk/transfer plan a detour (AMR grid A*, body half-width + 50 mm clearance) and use its length x route_factor. Levels without obstacles keep straight-line x route_factor. A walk with no route is rejected. Already planned walks are not re-planned. Height range (default floor to ceiling): an obstacle blocks a Humanoid only if z_max > 0.1 m and z_min < its height, so a low curb is stepped over and an overhead beam is walked under. AMR positions at request time are treated as temporary obstacles on the walk. Implementation spelling: humanoid_define_obstacle().
- Related
- Humanoid
- Purpose
- Removes an obstacle (true if it existed).
- Syntax
call Humanoid_Remove_Obstacle(name)
- Example
call Humanoid_Remove_Obstacle(name)
- Notes
- Affects walks requested afterwards. Implementation spelling: humanoid_remove_obstacle().
- Related
- Humanoid
- Purpose
- Defines a corridor/area that at most `capacity` (default 1) Humanoids may be walking through at once.
- Syntax
call Humanoid_Define_Zone(name, x1_m, y1_m, x2_m, y2_m [, capacity [, level_id]])
- Example
call Humanoid_Define_Zone(name, x1_m, y1_m, x2_m, y2_m [, capacity [, level_id]])
- Notes
- A Humanoid entering from outside waits at the entrance until the zone has room (first-requested first-served). Only walking time inside the zone is counted; standing Humanoids and other vehicle types do not occupy it. Zones on one level must not overlap. Implementation spelling: humanoid_define_zone().
- Related
- Humanoid
- Purpose
- Planned walking distance in m (obstacle detour x route_factor) without moving; -1 if unknown or unroutable.
- Syntax
call Humanoid_Route_Distance(robot, place)
- Example
call Humanoid_Route_Distance(robot, place)
- Notes
- Implemented runtime callable. Implementation spelling: humanoid_route_distance().
- Related
- Humanoid
- Purpose
- Total seconds the Humanoid has waited at zone entrances.
- Syntax
call Humanoid_Zone_Wait(robot)
- Example
call Humanoid_Zone_Wait(robot)
- Notes
- Implemented runtime callable. Implementation spelling: humanoid_zone_wait().
- Related
- Humanoid
- Purpose
- Overrides one spec value for one Humanoid.
- Syntax
call Humanoid_Set(robot, parameter, value)
- Example
call Humanoid_Set(robot, parameter, value)
- Notes
- walk_speed/carry_speed/cart_speed/accel/decel are m/s(^2); turn_speed deg/s; payload_one_arm/payload_two_arm/item_mass kg; *_seconds, robot_time_factor, route_factor, battery_capacity_wh, battery_percent, *_power_w, low_battery_percent, mass_kg. Implementation spelling: humanoid_set().
- Related
- Humanoid
- Purpose
- Returns a spec/body value (height_mm, shoulder_height_mm, max_reach_height_mm, forward_reach_mm, walk_speed, ...).
- Syntax
call Humanoid_Spec([robot,] parameter)
- Example
call Humanoid_Spec([robot,] parameter)
- Notes
- Implemented runtime callable. Implementation spelling: humanoid_spec().
- Related
- Humanoid
- Purpose
- Turns and walks to a Station/defined place. Returns seconds.
- Syntax
call Humanoid_Walk_To(robot, place)
- Example
call Humanoid_Walk_To(robot, place)
- Notes
- Straight-line distance x route_factor with trapezoidal speed; carry/cart speeds apply automatically. Fires humanoid.arrived. Implementation spelling: humanoid_walk_to().
- Related
- Humanoid
- Purpose
- Walks straight ahead. Returns seconds.
- Syntax
call Humanoid_Walk(robot, meters)
- Example
call Humanoid_Walk(robot, meters)
- Notes
- Implemented runtime callable. Implementation spelling: humanoid_walk().
- Related
- Humanoid
- Purpose
- Starts a walk to a Station/defined place without suspending the caller. Returns seconds.
- Syntax
call Humanoid_Dispatch_Async(robot, place)
- Example
call Humanoid_Dispatch_Async(robot, place)
- Notes
- Same physical walk as humanoid_walk_to, but the calling GRS process continues; the next leg is driven by humanoid.arrived. Implementation spelling: humanoid_dispatch_async().
- Related
- Humanoid
- Purpose
- Registers an initial walk during Humanoid.init. Returns true.
- Syntax
call Humanoid_Queue_Initial_Dispatch(robot, place)
- Example
call Humanoid_Queue_Initial_Dispatch(robot, place)
- Notes
- Started at t=0 only after every OHT.init, AMR.init and Humanoid.init has completed (global Init barrier). Implementation spelling: humanoid_queue_initial_dispatch().
- Related
- Humanoid
- Purpose
- Turns in place (+ counter-clockwise). Returns seconds.
- Syntax
call Humanoid_Turn(robot, degrees)
- Example
call Humanoid_Turn(robot, degrees)
- Notes
- Implemented runtime callable. Implementation spelling: humanoid_turn().
- Related
- Humanoid
- Purpose
- Turns in place to face a place or Station (absolute heading, shortest turn). Returns seconds.
- Syntax
call Humanoid_Face(robot, place)
- Example
call Humanoid_Face(robot, place)
- Notes
- Implemented runtime callable. Implementation spelling: humanoid_face().
- Related
- Humanoid
- Purpose
- Climbs (+) or descends (-) stair steps. Returns seconds.
- Syntax
call Humanoid_Stairs(robot, steps)
- Example
call Humanoid_Stairs(robot, steps)
- Notes
- Rejected while a cart is attached. Implementation spelling: humanoid_stairs().
- Related
- Humanoid
- Purpose
- Changes posture: stand, carry, reach_high, reach_mid, bend, crouch, kneel, sit. Returns seconds.
- Syntax
call Humanoid_Pose(robot, pose)
- Example
call Humanoid_Pose(robot, pose)
- Notes
- Joint-space synchronized move; the slowest joint (trapezoidal profile) sets the time. Implementation spelling: humanoid_pose().
- Related
- Humanoid
- Purpose
- Aligns, takes the posture for the height, reaches, grasps and lifts an item. Returns seconds.
- Syntax
call Humanoid_Pick(robot, item [, height_mm [, mass_kg]])
- Example
call Humanoid_Pick(robot, item [, height_mm [, mass_kg]])
- Notes
- Items above payload_one_arm use both hands. Height outside the reach envelope is rejected. Fires humanoid.pick_complete. Implementation spelling: humanoid_pick().
- Related
- Humanoid
- Purpose
- Puts down the held item (right hand first). Returns seconds.
- Syntax
call Humanoid_Place(robot [, item] [, height_mm])
- Example
call Humanoid_Place(robot [, item] [, height_mm])
- Notes
- Fires humanoid.place_complete. Implementation spelling: humanoid_place().
- Related
- Humanoid
- Purpose
- Walk + pick + walk + place in one call. Returns seconds.
- Syntax
call Humanoid_Transfer(robot, item, from_place, to_place [, from_height_mm, to_height_mm])
- Example
call Humanoid_Transfer(robot, item, from_place, to_place [, from_height_mm, to_height_mm])
- Notes
- Implemented runtime callable. Implementation spelling: humanoid_transfer().
- Related
- Humanoid
- Purpose
- Hands an item to another Humanoid within arm reach. Returns seconds.
- Syntax
call Humanoid_Handover(giver, receiver [, item])
- Example
call Humanoid_Handover(giver, receiver [, item])
- Notes
- Both robots are busy until completion. Fires humanoid.handover_complete. Implementation spelling: humanoid_handover().
- Related
- Humanoid
- Purpose
- Grips a cart handle; later walks use cart speed. Returns seconds.
- Syntax
call Humanoid_Attach_Cart(robot, cart)
- Example
call Humanoid_Attach_Cart(robot, cart)
- Notes
- Implemented runtime callable. Implementation spelling: humanoid_attach_cart().
- Related
- Humanoid
- Purpose
- Releases the cart. Returns seconds.
- Syntax
call Humanoid_Detach_Cart(robot)
- Example
call Humanoid_Detach_Cart(robot)
- Notes
- Implemented runtime callable. Implementation spelling: humanoid_detach_cart().
- Related
- Humanoid
- Purpose
- Opens a door/cover. Returns seconds.
- Syntax
call Humanoid_Open_Door(robot [, door])
- Example
call Humanoid_Open_Door(robot [, door])
- Notes
- Standard time x robot_time_factor. Implementation spelling: humanoid_open_door().
- Related
- Humanoid
- Purpose
- Closes a door/cover. Returns seconds.
- Syntax
call Humanoid_Close_Door(robot [, door])
- Example
call Humanoid_Close_Door(robot [, door])
- Notes
- Standard time x robot_time_factor. Implementation spelling: humanoid_close_door().
- Related
- Humanoid
- Purpose
- Presses a button/switch count times. Returns seconds.
- Syntax
call Humanoid_Press_Button(robot [, count])
- Example
call Humanoid_Press_Button(robot [, count])
- Notes
- Implemented runtime callable. Implementation spelling: humanoid_press_button().
- Related
- Humanoid
- Purpose
- Turns a valve/knob. Returns seconds.
- Syntax
call Humanoid_Turn_Valve(robot, turns)
- Example
call Humanoid_Turn_Valve(robot, turns)
- Notes
- Implemented runtime callable. Implementation spelling: humanoid_turn_valve().
- Related
- Humanoid
- Purpose
- Types on an HMI/keyboard. Returns seconds.
- Syntax
call Humanoid_Type(robot, text | character_count)
- Example
call Humanoid_Type(robot, text | character_count)
- Notes
- Implemented runtime callable. Implementation spelling: humanoid_type().
- Related
- Humanoid
- Purpose
- Reads a barcode/RFID. Returns seconds.
- Syntax
call Humanoid_Scan(robot [, target])
- Example
call Humanoid_Scan(robot [, target])
- Notes
- Implemented runtime callable. Implementation spelling: humanoid_scan().
- Related
- Humanoid
- Purpose
- Visual inspection. Returns seconds.
- Syntax
call Humanoid_Inspect(robot [, seconds [, target]])
- Example
call Humanoid_Inspect(robot [, seconds [, target]])
- Notes
- Without seconds uses inspect_seconds x robot_time_factor. Implementation spelling: humanoid_inspect().
- Related
- Humanoid
- Purpose
- Fastens bolts/screws. Returns seconds.
- Syntax
call Humanoid_Fasten(robot [, count])
- Example
call Humanoid_Fasten(robot [, count])
- Notes
- Implemented runtime callable. Implementation spelling: humanoid_fasten().
- Related
- Humanoid
- Purpose
- Changes a hand tool. Returns seconds.
- Syntax
call Humanoid_Tool_Change(robot [, tool])
- Example
call Humanoid_Tool_Change(robot [, tool])
- Notes
- Implemented runtime callable. Implementation spelling: humanoid_tool_change().
- Related
- Humanoid
- Purpose
- Any other job for a fixed time (manual assembly, cleaning, ...). Returns seconds.
- Syntax
call Humanoid_Work(robot, seconds [, label])
- Example
call Humanoid_Work(robot, seconds [, label])
- Notes
- Implemented runtime callable. Implementation spelling: humanoid_work().
- Related
- Humanoid
- Purpose
- Idles for a fixed time. Returns seconds.
- Syntax
call Humanoid_Wait(robot, seconds)
- Example
call Humanoid_Wait(robot, seconds)
- Notes
- Implemented runtime callable. Implementation spelling: humanoid_wait().
- Related
- Humanoid
- Purpose
- Charges the battery to target (default 100%). Returns seconds.
- Syntax
call Humanoid_Charge(robot [, target_percent])
- Example
call Humanoid_Charge(robot [, target_percent])
- Notes
- Fires humanoid.charged. Implementation spelling: humanoid_charge().
- Related
- Humanoid
- Purpose
- Moves one joint to an absolute angle. Returns seconds.
- Syntax
call Humanoid_Joint(robot, joint_name, degrees)
- Example
call Humanoid_Joint(robot, joint_name, degrees)
- Notes
- Joint limits and motion speed follow humanoid_spec.hpp. Implementation spelling: humanoid_joint().
- Related
- Humanoid
- Purpose
- Moves multiple joints simultaneously. Returns seconds.
- Syntax
call Humanoid_Joints(robot, joint_name, degrees [, joint_name, degrees ...])
- Example
call Humanoid_Joints(robot, joint_name, degrees [, joint_name, degrees ...])
- Notes
- The slowest joint determines the synchronized duration. Implementation spelling: humanoid_joints().
- Related
- Humanoid
- Purpose
- Returns the current place name or null.
- Syntax
call Humanoid_Location(robot)
- Example
call Humanoid_Location(robot)
- Notes
- Committed place (the destination while walking). Implementation spelling: humanoid_location().
- Related
- Humanoid
- Purpose
- Returns x (m).
- Syntax
call Humanoid_X(robot)
- Example
call Humanoid_X(robot)
- Notes
- Implemented runtime callable. Implementation spelling: humanoid_x().
- Related
- Humanoid
- Purpose
- Returns y (m).
- Syntax
call Humanoid_Y(robot)
- Example
call Humanoid_Y(robot)
- Notes
- Implemented runtime callable. Implementation spelling: humanoid_y().
- Related
- Humanoid
- Purpose
- Returns z (m) at the Humanoid position.
- Syntax
call Humanoid_Z(robot)
- Example
call Humanoid_Z(robot)
- Notes
- Implemented runtime callable. Implementation spelling: humanoid_z().
- Related
- Humanoid
- Purpose
- Returns the Level ID the Humanoid stands on.
- Syntax
call Humanoid_Level(robot)
- Example
call Humanoid_Level(robot)
- Notes
- Implemented runtime callable. Implementation spelling: humanoid_level().
- Related
- Humanoid
- Purpose
- Returns the held item (left/right/any) or null.
- Syntax
call Humanoid_Holding(robot [, hand])
- Example
call Humanoid_Holding(robot [, hand])
- Notes
- Implemented runtime callable. Implementation spelling: humanoid_holding().
- Related
- Humanoid
- Purpose
- Returns the number of free hands (0..2).
- Syntax
call Humanoid_Free_Hands(robot)
- Example
call Humanoid_Free_Hands(robot)
- Notes
- Implemented runtime callable. Implementation spelling: humanoid_free_hands().
- Related
- Humanoid
- Purpose
- Returns battery percent.
- Syntax
call Humanoid_Battery(robot)
- Example
call Humanoid_Battery(robot)
- Notes
- Fires humanoid.battery_low when crossing low_battery_percent. Implementation spelling: humanoid_battery().
- Related
- Humanoid
- Purpose
- Returns true until the current action ends.
- Syntax
call Humanoid_Busy(robot)
- Example
call Humanoid_Busy(robot)
- Notes
- Implemented runtime callable. Implementation spelling: humanoid_busy().
- Related
- Humanoid
- Purpose
- Returns the current action name or idle.
- Syntax
call Humanoid_State(robot)
- Example
call Humanoid_State(robot)
- Notes
- Implemented runtime callable. Implementation spelling: humanoid_state().
- Related
- Humanoid
- Purpose
- Returns the current posture name.
- Syntax
call Humanoid_Posture(robot)
- Example
call Humanoid_Posture(robot)
- Notes
- Implemented runtime callable. Implementation spelling: humanoid_posture().
- Related
- Humanoid
- Purpose
- Returns walked distance (m).
- Syntax
call Humanoid_Distance(robot)
- Example
call Humanoid_Distance(robot)
- Notes
- Implemented runtime callable. Implementation spelling: humanoid_distance().
- Related
- Humanoid
- Purpose
- Returns busy time / elapsed time since creation (0..1).
- Syntax
call Humanoid_Utilization(robot)
- Example
call Humanoid_Utilization(robot)
- Notes
- Implemented runtime callable. Implementation spelling: humanoid_utilization().
- Related
- Humanoid
- Purpose
- Returns completed action count.
- Syntax
call Humanoid_Actions(robot)
- Example
call Humanoid_Actions(robot)
- Notes
- Implemented runtime callable. Implementation spelling: humanoid_actions().
- Related
- Humanoid
- Purpose
- Returns the last rejection reason or null.
- Syntax
call Humanoid_Last_Error(robot)
- Example
call Humanoid_Last_Error(robot)
- Notes
- Rejected actions return 0 seconds and fire humanoid.rejected. Implementation spelling: humanoid_last_error().
- Related
- Humanoid
- Purpose
- Inside a humanoid.* event returns the Humanoid name.
- Syntax
call Humanoid_Self()
- Example
call Humanoid_Self()
- Notes
- Implemented runtime callable. Implementation spelling: humanoid_self().
- Related
- Humanoid
- Purpose
- Inside a humanoid.* event returns the action name.
- Syntax
call Humanoid_Event_Action()
- Example
call Humanoid_Event_Action()
- Notes
- Implemented runtime callable. Implementation spelling: humanoid_event_action().
- Related
- Humanoid
- Purpose
- Inside a Humanoid passing station event returns the place name that was just passed (lower case).
- Syntax
call Humanoid_Event_Place()
- Example
call Humanoid_Event_Place()
- Notes
- Implemented runtime callable. Implementation spelling: humanoid_event_place().
- Related
- Humanoid
- Purpose
- Returns the number of Humanoids in this module.
- Syntax
call Humanoid_Count()
- Example
call Humanoid_Count()
- Notes
- Implemented runtime callable. Implementation spelling: humanoid_count().
- Related
- Humanoid
- Purpose
- Returns the committed target angle of one Humanoid joint.
- Syntax
call Humanoid_Joint_Deg(robot, joint_name)
- Example
call Humanoid_Joint_Deg(robot, joint_name)
- Notes
- Implemented runtime callable. Implementation spelling: humanoid_joint_deg().
- Related
- Humanoid