curl --request POST \
--url https://api.eddy.engineer/v1/sequence.precedence \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"assembly": {},
"cycle_time_s": 123,
"dfa": {},
"line_units": 123,
"options": {},
"oracles": true,
"plan": {},
"samples": 123,
"segments": 123,
"units": "<string>",
"usd": true
}
'import requests
url = "https://api.eddy.engineer/v1/sequence.precedence"
payload = {
"assembly": {},
"cycle_time_s": 123,
"dfa": {},
"line_units": 123,
"options": {},
"oracles": True,
"plan": {},
"samples": 123,
"segments": 123,
"units": "<string>",
"usd": True
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
assembly: {},
cycle_time_s: 123,
dfa: {},
line_units: 123,
options: {},
oracles: true,
plan: {},
samples: 123,
segments: 123,
units: '<string>',
usd: true
})
};
fetch('https://api.eddy.engineer/v1/sequence.precedence', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/sequence.precedence",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'assembly' => [
],
'cycle_time_s' => 123,
'dfa' => [
],
'line_units' => 123,
'options' => [
],
'oracles' => true,
'plan' => [
],
'samples' => 123,
'segments' => 123,
'units' => '<string>',
'usd' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/sequence.precedence"
payload := strings.NewReader("{\n \"assembly\": {},\n \"cycle_time_s\": 123,\n \"dfa\": {},\n \"line_units\": 123,\n \"options\": {},\n \"oracles\": true,\n \"plan\": {},\n \"samples\": 123,\n \"segments\": 123,\n \"units\": \"<string>\",\n \"usd\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/sequence.precedence")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"assembly\": {},\n \"cycle_time_s\": 123,\n \"dfa\": {},\n \"line_units\": 123,\n \"options\": {},\n \"oracles\": true,\n \"plan\": {},\n \"samples\": 123,\n \"segments\": 123,\n \"units\": \"<string>\",\n \"usd\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/sequence.precedence")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"assembly\": {},\n \"cycle_time_s\": 123,\n \"dfa\": {},\n \"line_units\": 123,\n \"options\": {},\n \"oracles\": true,\n \"plan\": {},\n \"samples\": 123,\n \"segments\": 123,\n \"units\": \"<string>\",\n \"usd\": true\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}What must be assembled before what (the precedence graph), with line-balancing input and a robot task plan
Plans the build as sequence.plan does, then answers the precedence graph of its steps, the line-balancing input (with a ProcessSim flow document) and a robot task plan with sampled pose paths (and its USD layer on request). Precedence graph: the planned build’s tasks and the DAG of what must be placed before what - a part of an earlier step blocks the step’s set along its removal direction, they touch, or a before constraint says so - transitively reduced, with the plan’s order as a topological order and acyclic checked. Hand-offs: line_input (ss.line.balance.input/1: task times from the DFA worksheet, predecessor lists, the total, the cycle time and the station lower bound when cycle_time_s is given) with multisim, the A track’s flow document (MultisimDoc shape: a Source, one Delay per task with its constant time, a Sink) parsed back through ss-multisim (multisim_check); robot_plan (ss.robot.task_plan/1: per step the parts, the tool, the fasteners, the DFA duration and a grasp-agnostic pose path of samples + 1 world poses from clear to placed, sampled from the document’s build timeline) and, with usd, usda - the same plan as a time-sampled USD layer (one Xform per part with its mesh, translate / orient timeSamples, metersPerUnit from the units). The station assignment itself is the engine. Deterministic. AQ12.b (register row 27): with cycle_time_s the answer carries balance (ss.line.balance/1): the station assignment — stations[] {index, tasks, time_s, idle_s}, station_count, lower_bound (⌈total / cycle⌉), efficiency, balance_delay, smoothness_index, method (exact: a branch and bound over station loads that proves the minimum within 200 000 nodes; else rpw, the ranked positional weights heuristic), optimal — or a typed error when a task is longer than the cycle, a predecessor unknown or the relation cyclic.
curl --request POST \
--url https://api.eddy.engineer/v1/sequence.precedence \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"assembly": {},
"cycle_time_s": 123,
"dfa": {},
"line_units": 123,
"options": {},
"oracles": true,
"plan": {},
"samples": 123,
"segments": 123,
"units": "<string>",
"usd": true
}
'import requests
url = "https://api.eddy.engineer/v1/sequence.precedence"
payload = {
"assembly": {},
"cycle_time_s": 123,
"dfa": {},
"line_units": 123,
"options": {},
"oracles": True,
"plan": {},
"samples": 123,
"segments": 123,
"units": "<string>",
"usd": True
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
assembly: {},
cycle_time_s: 123,
dfa: {},
line_units: 123,
options: {},
oracles: true,
plan: {},
samples: 123,
segments: 123,
units: '<string>',
usd: true
})
};
fetch('https://api.eddy.engineer/v1/sequence.precedence', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/sequence.precedence",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'assembly' => [
],
'cycle_time_s' => 123,
'dfa' => [
],
'line_units' => 123,
'options' => [
],
'oracles' => true,
'plan' => [
],
'samples' => 123,
'segments' => 123,
'units' => '<string>',
'usd' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/sequence.precedence"
payload := strings.NewReader("{\n \"assembly\": {},\n \"cycle_time_s\": 123,\n \"dfa\": {},\n \"line_units\": 123,\n \"options\": {},\n \"oracles\": true,\n \"plan\": {},\n \"samples\": 123,\n \"segments\": 123,\n \"units\": \"<string>\",\n \"usd\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/sequence.precedence")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"assembly\": {},\n \"cycle_time_s\": 123,\n \"dfa\": {},\n \"line_units\": 123,\n \"options\": {},\n \"oracles\": true,\n \"plan\": {},\n \"samples\": 123,\n \"segments\": 123,\n \"units\": \"<string>\",\n \"usd\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/sequence.precedence")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"assembly\": {},\n \"cycle_time_s\": 123,\n \"dfa\": {},\n \"line_units\": 123,\n \"options\": {},\n \"oracles\": true,\n \"plan\": {},\n \"samples\": 123,\n \"segments\": 123,\n \"units\": \"<string>\",\n \"usd\": true\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Body
The DFA overrides: parts {: {difficulty (tangle | nest | slippery | delicate | flexible | sharp), needs_tweezers, two_hands, obstructed_access, restricted_vision, hold_down, self_locating, resistance, securing (none | snap | plastic_bend | rivet | screw), moves_relative, different_material, separate_for_assembly, alpha_deg, beta_deg, size_mm, thickness_mm, density_kg_m3, handling_code, insertion_code, handling_seconds, insertion_seconds}}, density_kg_m3 (default 7850), ideal_time_s (default 3).
The oracles' options: paths / stability / access / detect_fasteners (booleans), path_difficulty (0–100, the RRT budget), path_tolerance_rel and release_rel (of the scene diagonal), slide_samples, seed, friction ({default, pairs[]}), max_hands, tools[] (allowed tool id prefixes), min_gap_mm, property_class ("8.8" | "10.9" | "12.9" | "A2-70" | null).
AQ3's request: base[] (component ids; empty = the fixed ones, else the largest part), constraints[] ({kind: before, a, b} | {kind: group, parts[]} | {kind: keep_together, parts[]} | {kind: serviceable, part, within?}), fasteners[] ({component, drive} — detected fasteners are added), search ({kind: beam, width} | {kind: astar, max_nodes, heuristic (true: the admissible travel bound, AQ3.c)}), weights (direction_change, reorientation, tool_change, held_part, travel, fastener_deferral, service_delay), up (the base's up, default +z), max_subassembly_depth, prefer_subassemblies (AQ3.c: touching parts each removable on their own are also offered as one sub-assembly step, planned below; off by default).
Response
graph {schema, tasks[] {id, step, parts[], kind, tool, time_s, time_source}, edges[] {from, to, why}, relations, order[], acyclic, key}, graph_key, line_input {schema, tasks[] {id, time_s, predecessors[], parts[], tool}, total_time_s, cycle_time_s, min_stations, max_task_s, balancer, key}, multisim (the flow document), multisim_check {ok, key, blocks}, robot_plan {schema, units, steps[] {id, step, parts[], tool, fasteners[], duration_s, start_s, paths[] {part, poses[]}, text}, total_s, key}, usda, dfa_key, plan_key, complete, order[], sequence_key