curl --request POST \
--url https://api.eddy.engineer/v1/interop.calibrate \
--header 'Content-Type: application/json' \
--data '
{
"contacts": "<array>",
"joints": "<array>",
"load_limits": "<array>",
"scene": {},
"thermal_limits": "<array>",
"usd": {}
}
'import requests
url = "https://api.eddy.engineer/v1/interop.calibrate"
payload = {
"contacts": "<array>",
"joints": "<array>",
"load_limits": "<array>",
"scene": {},
"thermal_limits": "<array>",
"usd": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
contacts: '<array>',
joints: '<array>',
load_limits: '<array>',
scene: {},
thermal_limits: '<array>',
usd: {}
})
};
fetch('https://api.eddy.engineer/v1/interop.calibrate', 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/interop.calibrate",
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([
'contacts' => '<array>',
'joints' => '<array>',
'load_limits' => '<array>',
'scene' => [
],
'thermal_limits' => '<array>',
'usd' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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/interop.calibrate"
payload := strings.NewReader("{\n \"contacts\": \"<array>\",\n \"joints\": \"<array>\",\n \"load_limits\": \"<array>\",\n \"scene\": {},\n \"thermal_limits\": \"<array>\",\n \"usd\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
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/interop.calibrate")
.header("Content-Type", "application/json")
.body("{\n \"contacts\": \"<array>\",\n \"joints\": \"<array>\",\n \"load_limits\": \"<array>\",\n \"scene\": {},\n \"thermal_limits\": \"<array>\",\n \"usd\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/interop.calibrate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"contacts\": \"<array>\",\n \"joints\": \"<array>\",\n \"load_limits\": \"<array>\",\n \"scene\": {},\n \"thermal_limits\": \"<array>\",\n \"usd\": {}\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Derive the training engines' parameters from the truth (IX3)
{scene?, contacts?: [{body, other?, geometry: {kind: sphere, r} | {kind: cylinder, r, len} | {kind: flat, lx, ly, h}, force, material: {e, nu, rho, yield}, other_material?, effective_mass?, damping_ratio?, friction?, timestep?, quality?}], joints?: [{joint, link, length, width, height, force, material, link_inertia?, damping_ratio?}], load_limits?: [{body, geometry: {lx, ly, lz}, load_region, fixed_region, force: [x, y, z], material}], thermal_limits?: [{body, geometry, heat_region, sink_region, power, ambient, allowed_temperature, k, rho?}], usd?: {...}} — Hertz where the geometry is spherical / cylindrical (the closed form, no solve), the P1 column solve for a flat pad (E A / h as the referee), the P1 cantilever for a joint’s compliance (Timoshenko as the referee), the stress check for a load limit, the P2 conduction solve for a thermal limit; every solved value carries its result key. Each contact comes back in every engine’s form: PhysX compliant-contact stiffness / damping and offsets, MuJoCo solref / solimp (timeconst at least 2 x the time step; when the step cannot integrate the stiffness, i.e. (1 - d) K dt^2 / m > 1, the stiffest stable contact [2 dt, 0.5] with step_warning: {kind: stiffness_reduced, stiffness_number, requested_stiffness, presented_stiffness, recommended_timestep, impedance_keeping_stiffness?, message}), Newton soft_contact_ke / kd / kf / mu. With scene + usd the sublayer carrying the values is written. Answers {contacts, joints, load_limits, thermal_limits, contact_values, truth, usd?, calibration_key, blob_uri}.
curl --request POST \
--url https://api.eddy.engineer/v1/interop.calibrate \
--header 'Content-Type: application/json' \
--data '
{
"contacts": "<array>",
"joints": "<array>",
"load_limits": "<array>",
"scene": {},
"thermal_limits": "<array>",
"usd": {}
}
'import requests
url = "https://api.eddy.engineer/v1/interop.calibrate"
payload = {
"contacts": "<array>",
"joints": "<array>",
"load_limits": "<array>",
"scene": {},
"thermal_limits": "<array>",
"usd": {}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
contacts: '<array>',
joints: '<array>',
load_limits: '<array>',
scene: {},
thermal_limits: '<array>',
usd: {}
})
};
fetch('https://api.eddy.engineer/v1/interop.calibrate', 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/interop.calibrate",
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([
'contacts' => '<array>',
'joints' => '<array>',
'load_limits' => '<array>',
'scene' => [
],
'thermal_limits' => '<array>',
'usd' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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/interop.calibrate"
payload := strings.NewReader("{\n \"contacts\": \"<array>\",\n \"joints\": \"<array>\",\n \"load_limits\": \"<array>\",\n \"scene\": {},\n \"thermal_limits\": \"<array>\",\n \"usd\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
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/interop.calibrate")
.header("Content-Type", "application/json")
.body("{\n \"contacts\": \"<array>\",\n \"joints\": \"<array>\",\n \"load_limits\": \"<array>\",\n \"scene\": {},\n \"thermal_limits\": \"<array>\",\n \"usd\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/interop.calibrate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"contacts\": \"<array>\",\n \"joints\": \"<array>\",\n \"load_limits\": \"<array>\",\n \"scene\": {},\n \"thermal_limits\": \"<array>\",\n \"usd\": {}\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}