curl --request POST \
--url https://api.eddy.engineer/v1/interop.export \
--header 'Content-Type: application/json' \
--data '
{
"scene": {},
"format": "<string>",
"mjcf": {},
"results": "<array>",
"usd": {}
}
'import requests
url = "https://api.eddy.engineer/v1/interop.export"
payload = {
"scene": {},
"format": "<string>",
"mjcf": {},
"results": "<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({scene: {}, format: '<string>', mjcf: {}, results: '<array>', usd: {}})
};
fetch('https://api.eddy.engineer/v1/interop.export', 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.export",
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([
'scene' => [
],
'format' => '<string>',
'mjcf' => [
],
'results' => '<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.export"
payload := strings.NewReader("{\n \"scene\": {},\n \"format\": \"<string>\",\n \"mjcf\": {},\n \"results\": \"<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.export")
.header("Content-Type", "application/json")
.body("{\n \"scene\": {},\n \"format\": \"<string>\",\n \"mjcf\": {},\n \"results\": \"<array>\",\n \"usd\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/interop.export")
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 \"scene\": {},\n \"format\": \"<string>\",\n \"mjcf\": {},\n \"results\": \"<array>\",\n \"usd\": {}\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Write the USD sublayer / stage or the MJCF for a scene, with result attributes (IX2)
{scene, format?: usda | mjcf | urdf, usd?: {form: sublayer | stage, prim_paths?, results?, fields?, contacts?, meters_per_unit?, mass_properties?}, mjcf?: {model?, contacts?, mesh_dir?}, urdf?: {name?, mesh_dir?}, results?: [{body, result_key}]} — the URDF is one robot per kinematic tree (links at their joints, a massless world root link under a joint on the world, the kernel’s mass and inertia, drive budgets as <limit effort velocity>, friction / restitution as pybullet’s <contact>; text is the first tree’s file, every tree’s <root>.urdf is among files, a static root is warned load it with a fixed base); the sublayer authors over prims at the source’s paths with the kernel’s mass properties (physics:mass / centerOfMass / diagonalInertia / principalAxes), the calibrated contact and material values on an authored Material bound through material:binding:physics, and the eddy: attributes (result key, peak stress, peak temperature, safety factor, certificate) with result fields as Points children; the stage form is a complete scene that round-trips through the reader; the MJCF nests bodies along the joint tree with the kernel’s density (a jointed body’s frame at its anchor, the geom offset — Bullet’s loader inserts a massless link otherwise), drives as actuators, loops as equality connect / weld, meshes as binary STL blobs, the initial velocities as a <keyframe> (a free body’s world linear / body-local angular velocity, a hinge’s or slide’s rate, a ball joint’s body-local spin). Deterministic bytes, content-addressed. Answers {format, text, export_key, blob_id, blob_uri, files, results, warnings} — warnings names what the format cannot carry (MuJoCo has no coefficient of restitution; a velocity a joint cannot carry is projected onto its axis).
curl --request POST \
--url https://api.eddy.engineer/v1/interop.export \
--header 'Content-Type: application/json' \
--data '
{
"scene": {},
"format": "<string>",
"mjcf": {},
"results": "<array>",
"usd": {}
}
'import requests
url = "https://api.eddy.engineer/v1/interop.export"
payload = {
"scene": {},
"format": "<string>",
"mjcf": {},
"results": "<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({scene: {}, format: '<string>', mjcf: {}, results: '<array>', usd: {}})
};
fetch('https://api.eddy.engineer/v1/interop.export', 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.export",
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([
'scene' => [
],
'format' => '<string>',
'mjcf' => [
],
'results' => '<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.export"
payload := strings.NewReader("{\n \"scene\": {},\n \"format\": \"<string>\",\n \"mjcf\": {},\n \"results\": \"<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.export")
.header("Content-Type", "application/json")
.body("{\n \"scene\": {},\n \"format\": \"<string>\",\n \"mjcf\": {},\n \"results\": \"<array>\",\n \"usd\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/interop.export")
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 \"scene\": {},\n \"format\": \"<string>\",\n \"mjcf\": {},\n \"results\": \"<array>\",\n \"usd\": {}\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}