@wandelbots/wandelbots-js-react-components 6.3.0 → 6.4.0-pr.chore-playground-tool-steps.664.4537d63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +323 -120
- package/dist/3d.cjs +1 -1
- package/dist/3d.d.ts +5 -3
- package/dist/3d.js +24 -23
- package/dist/CurrentPoseBar/index.cjs +1 -0
- package/dist/CurrentPoseBar/index.d.ts +2 -0
- package/dist/CurrentPoseBar/index.js +5 -0
- package/dist/JoggingButtons/index.cjs +1 -0
- package/dist/JoggingButtons/index.d.ts +3 -0
- package/dist/JoggingButtons/index.js +5 -0
- package/dist/JoggingGizmo/index.cjs +1 -0
- package/dist/JoggingGizmo/index.d.ts +4 -0
- package/dist/JoggingGizmo/index.js +7 -0
- package/dist/JoggingJointSlider/index.cjs +1 -0
- package/dist/JoggingJointSlider/index.d.ts +2 -0
- package/dist/JoggingJointSlider/index.js +5 -0
- package/dist/RobotControlPanel/index.cjs +1 -0
- package/dist/RobotControlPanel/index.d.ts +2 -0
- package/dist/RobotControlPanel/index.js +5 -0
- package/dist/RobotHeader/index.cjs +1 -0
- package/dist/RobotHeader/index.d.ts +4 -0
- package/dist/RobotHeader/index.js +5 -0
- package/dist/SafetyBar/index.cjs +1 -1
- package/dist/SafetyBar/index.js +1 -1
- package/dist/chunks/CurrentPoseBar-CyHUWmjM.cjs +1 -0
- package/dist/chunks/CurrentPoseBar-zTZi68tY.js +505 -0
- package/dist/chunks/JoggingButtons-CXaozFVz.js +108 -0
- package/dist/chunks/JoggingButtons-CbL-5LMK.cjs +1 -0
- package/dist/chunks/JoggingGizmo-DGbFLWgT.cjs +1 -0
- package/dist/chunks/JoggingGizmo-SuS9MmL7.js +810 -0
- package/dist/chunks/JoggingGizmoOrientation-dzned4f4.cjs +1 -0
- package/dist/chunks/JoggingGizmoOrientation-x_crT_64.js +14 -0
- package/dist/chunks/JoggingJointSlider-CZ-k6XCa.js +406 -0
- package/dist/chunks/JoggingJointSlider-R3_A9Ppj.cjs +1 -0
- package/dist/chunks/Robot-D0ZqUCn3.cjs +1 -0
- package/dist/chunks/Robot-UoykZeYH.js +1272 -0
- package/dist/chunks/RobotControlPanel-BnMfmO41.js +822 -0
- package/dist/chunks/RobotControlPanel-BuDGcxPR.cjs +1 -0
- package/dist/chunks/RobotHeader-BZci9ahT.js +244 -0
- package/dist/chunks/RobotHeader-CqK0700U.cjs +1 -0
- package/dist/chunks/SafetyBar-Bbg-o8h9.cjs +1 -0
- package/dist/chunks/{SafetyBar-Cy9DiXp9.js → SafetyBar-Cuak4ffd.js} +11 -10
- package/dist/chunks/SmallSelect-BdD9uLKK.js +52 -0
- package/dist/chunks/SmallSelect-Dcsd7_6_.cjs +1 -0
- package/dist/chunks/TrajectoryExecutionStore-DPqfDcfn.js +3398 -0
- package/dist/chunks/TrajectoryExecutionStore-DV6mLEx9.cjs +3 -0
- package/dist/chunks/converters-C8I_A_tA.cjs +1 -0
- package/dist/chunks/converters-DpNB_WNQ.js +39 -0
- package/dist/chunks/externalizeComponent-BdxGBLIv.cjs +2 -0
- package/dist/chunks/externalizeComponent-_w2d1_pz.js +283 -0
- package/dist/chunks/holdSafety-BtoZ5We3.cjs +1 -0
- package/dist/chunks/holdSafety-Di1GZAWg.js +37 -0
- package/dist/chunks/joggingColors-CuT5u0H8.js +135 -0
- package/dist/chunks/joggingColors-ZDc_2UCp.cjs +1 -0
- package/dist/chunks/useEveryFrame-G_-ma1nC.js +142 -0
- package/dist/chunks/useEveryFrame-dmPPTKtT.cjs +1 -0
- package/dist/chunks/useSmoothedMotionState-COMJRcOt.js +214 -0
- package/dist/chunks/useSmoothedMotionState-Con0E5Bx.cjs +1 -0
- package/dist/components/AppHeader.d.ts +1 -1
- package/dist/components/currentPoseBar/CurrentPoseBar.d.ts +48 -0
- package/dist/components/currentPoseBar/OrientationFormatPopover.d.ts +19 -0
- package/dist/components/currentPoseBar/StreamStatus.d.ts +10 -0
- package/dist/components/currentPoseBar/orientation.d.ts +34 -0
- package/dist/components/currentPoseBar/poseValues.d.ts +15 -0
- package/dist/components/jogging/JoggingButtons.d.ts +16 -0
- package/dist/components/jogging/JoggingCartesianAxisControl.d.ts +1 -1
- package/dist/components/jogging/JoggingJointTab.d.ts +1 -1
- package/dist/components/jogging/JoggingPanel.d.ts +6 -3
- package/dist/components/jogging/JoggingStore.d.ts +96 -19
- package/dist/components/jogging/gizmo/JoggingGizmo.d.ts +43 -0
- package/dist/components/jogging/gizmo/JoggingGizmoOrientation.d.ts +26 -0
- package/dist/components/jogging/gizmo/RotationHandles.d.ts +7 -0
- package/dist/components/jogging/gizmo/RotationScene.d.ts +6 -0
- package/dist/components/jogging/gizmo/TranslationHandles.d.ts +6 -0
- package/dist/components/jogging/gizmo/TranslationScene.d.ts +6 -0
- package/dist/components/jogging/gizmo/arcGrabAreas.d.ts +58 -0
- package/dist/components/jogging/gizmo/arcs.d.ts +54 -0
- package/dist/components/jogging/gizmo/arrows.d.ts +63 -0
- package/dist/components/jogging/gizmo/gizmoShared.d.ts +125 -0
- package/dist/components/jogging/gizmo/gizmoView.d.ts +42 -0
- package/dist/components/jogging/gizmo/useGizmoTurn.d.ts +11 -0
- package/dist/components/jogging/holdSafety.d.ts +44 -0
- package/dist/components/jogging/jogError.d.ts +9 -0
- package/dist/components/jogging/jogHandle.d.ts +23 -0
- package/dist/components/jogging/joggingColors.d.ts +24 -0
- package/dist/components/jogging/joggingVelocity.d.ts +21 -0
- package/dist/components/jogging/joint/JoggingJointSlider.d.ts +52 -0
- package/dist/components/jogging/joint/JointSliderTrack.d.ts +27 -0
- package/dist/components/jogging/joint/jointJog.d.ts +55 -0
- package/dist/components/jogging/joint/useJointJogHold.d.ts +48 -0
- package/dist/components/jogging/useHold.d.ts +38 -0
- package/dist/components/jogging/useJogControls.d.ts +45 -0
- package/dist/components/robotControl/CartesianJogTab.d.ts +21 -0
- package/dist/components/robotControl/HoldToMoveButton.d.ts +25 -0
- package/dist/components/robotControl/JogArea.d.ts +22 -0
- package/dist/components/robotControl/JogModeToggle.d.ts +8 -0
- package/dist/components/robotControl/JointJogTab.d.ts +11 -0
- package/dist/components/robotControl/MoveToTab.d.ts +18 -0
- package/dist/components/robotControl/PanelSelect.d.ts +13 -0
- package/dist/components/robotControl/PoseField.d.ts +21 -0
- package/dist/components/robotControl/RobotControlPanel.d.ts +212 -0
- package/dist/components/robotControl/Section.d.ts +5 -0
- package/dist/components/robotControl/SmallSelect.d.ts +15 -0
- package/dist/components/robotControl/VelocityRow.d.ts +14 -0
- package/dist/components/robotControl/atPose.d.ts +8 -0
- package/dist/components/robotControl/poseText.d.ts +15 -0
- package/dist/components/robotControl/units.d.ts +16 -0
- package/dist/components/robotControl/useCopyText.d.ts +12 -0
- package/dist/components/robotControl/useEveryFrame.d.ts +6 -0
- package/dist/components/robotHeader/ActivationSwitch.d.ts +7 -0
- package/dist/components/robotHeader/AppNavigation.d.ts +15 -0
- package/dist/components/robotHeader/RobotHeader.d.ts +42 -0
- package/dist/components/robots/GenericRobot.d.ts +2 -1
- package/dist/components/robots/LinearAxis.d.ts +1 -1
- package/dist/components/robots/LinearAxisAnimator.d.ts +11 -2
- package/dist/components/robots/Robot.d.ts +1 -1
- package/dist/components/robots/robotModelLogic.d.ts +11 -9
- package/dist/components/utils/hooks.d.ts +1 -6
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +13 -18
- package/dist/core.js +37 -51
- package/dist/index.cjs +1 -1
- package/dist/index.js +58 -71
- package/dist/lib/ConnectedMotionGroup.d.ts +5 -7
- package/dist/lib/JoggerConnection.d.ts +137 -27
- package/dist/lib/MotionStreamConnection.d.ts +15 -6
- package/dist/lib/Pose3.d.ts +22 -0
- package/dist/lib/PoseTransformer.d.ts +25 -0
- package/dist/lib/TrajectoryExecutionStore.d.ts +129 -0
- package/dist/lib/connectionLogger.d.ts +9 -0
- package/dist/lib/incrementalCartesianMotion.d.ts +40 -0
- package/dist/lib/motionStateUpdate.d.ts +27 -0
- package/dist/lib/novaConnection.d.ts +23 -0
- package/dist/lib/planErrorTranslation.d.ts +8 -0
- package/dist/lib/rotation.d.ts +12 -0
- package/package.json +31 -66
- package/dist/Setup.d.ts +0 -11
- package/dist/chunks/MotionGroupVisualizer-DshWR1wY.js +0 -1653
- package/dist/chunks/MotionGroupVisualizer-eD7yFEcF.cjs +0 -1
- package/dist/chunks/SafetyBar-DPrv_OQA.cjs +0 -1
- package/dist/chunks/externalizeComponent-EDymnaGR.js +0 -268
- package/dist/chunks/externalizeComponent-OO4jcrz5.cjs +0 -2
- package/dist/chunks/theming-DfSy4-Ic.cjs +0 -4
- package/dist/chunks/theming-mF9Rt8SS.js +0 -5542
- package/dist/chunks/useSmoothedMotionState-DyDgSVYX.js +0 -478
- package/dist/chunks/useSmoothedMotionState-VYxEIyfr.cjs +0 -1
- package/dist/components/3d-viewport/CoordinateSystemTransform.d.ts +0 -11
- package/dist/components/AdornedTextField.d.ts +0 -7
- package/dist/components/CopyableText.d.ts +0 -6
- package/dist/components/CycleTimer/CycleTimer.d.ts +0 -3
- package/dist/components/CycleTimer/DefaultVariant.d.ts +0 -9
- package/dist/components/CycleTimer/SmallVariant.d.ts +0 -10
- package/dist/components/CycleTimer/index.d.ts +0 -27
- package/dist/components/CycleTimer/types.d.ts +0 -49
- package/dist/components/CycleTimer/useAnimations.d.ts +0 -14
- package/dist/components/CycleTimer/useTimerLogic.d.ts +0 -24
- package/dist/components/CycleTimer/utils.d.ts +0 -21
- package/dist/components/CycleTimer.d.ts +0 -3
- package/dist/components/DataGrid.d.ts +0 -66
- package/dist/components/LogPanel.d.ts +0 -38
- package/dist/components/LogStore.d.ts +0 -12
- package/dist/components/LogViewer.d.ts +0 -46
- package/dist/components/ProgramControl.d.ts +0 -55
- package/dist/components/ProgramStateIndicator.d.ts +0 -26
- package/dist/components/RobotCard.d.ts +0 -98
- package/dist/components/RobotListItem.d.ts +0 -34
- package/dist/components/RobotSetupReadinessIndicator.d.ts +0 -37
- package/dist/components/SelectableFab.d.ts +0 -7
- package/dist/components/TabBar.d.ts +0 -45
- package/dist/components/ThemeSelect.d.ts +0 -6
- package/dist/components/Timer/Timer.d.ts +0 -3
- package/dist/components/Timer/TimerDefaultVariant.d.ts +0 -9
- package/dist/components/Timer/TimerSmallVariant.d.ts +0 -10
- package/dist/components/Timer/index.d.ts +0 -19
- package/dist/components/Timer/types.d.ts +0 -35
- package/dist/components/Timer/useTimerAnimations.d.ts +0 -10
- package/dist/components/Timer/useTimerLogic.d.ts +0 -19
- package/dist/components/Timer/utils.d.ts +0 -17
- package/dist/components/Timer.d.ts +0 -3
- package/dist/components/TransparentOverlay.d.ts +0 -4
- package/dist/components/jogging/JoggingFreedriveTab.d.ts +0 -1
- package/dist/components/jogging/PoseCartesianValues.d.ts +0 -9
- package/dist/components/jogging/PoseJointValues.d.ts +0 -8
- package/dist/components/robots/AxisConfig.d.ts +0 -2
- package/dist/components/robots/manufacturerHomePositions.d.ts +0 -20
- package/dist/icons/DropdownArrowIcon.d.ts +0 -2
- package/dist/icons/index.d.ts +0 -12
- package/dist/lib/novaCompat.d.ts +0 -16
- package/dist/themes/createDarkTheme.d.ts +0 -7
- package/dist/themes/themeTypes.d.ts +0 -40
- package/dist/themes/theming.d.ts +0 -24
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("react/jsx-runtime"),j=require("three"),B=require("three-stdlib"),v=require("@react-three/drei"),m=require("react"),L=require("./externalizeComponent-OO4jcrz5.cjs"),we=require("@mui/material/styles"),_=require("@mui/material/Box"),ee=require("@mui/material/Button"),Re=require("@mui/material/Card"),te=require("@mui/material/Divider"),ne=require("@mui/material/Typography"),F=require("@react-three/fiber"),Se=require("mobx-react-lite"),ve=require("react-i18next"),E=require("./useSmoothedMotionState-VYxEIyfr.cjs"),R=require("@wandelbots/nova-js/v2"),ie=require("react-error-boundary");function _e(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const b=_e(j);function Te(e){switch(e.shape_type){case"convex_hull":return new B.ConvexGeometry(e.vertices.map(t=>new b.Vector3(t[0]/1e3,t[1]/1e3,t[2]/1e3)));case"box":return new b.BoxGeometry(e.size_x/1e3,e.size_y/1e3,e.size_z/1e3);case"sphere":return new b.SphereGeometry(e.radius/1e3);case"capsule":return new b.CapsuleGeometry(e.radius/1e3,e.cylinder_height/1e3);case"cylinder":return new b.CylinderGeometry(e.radius/1e3,e.radius/1e3,e.height/1e3);case"rectangle":return new b.BoxGeometry(e.size_x/1e3,e.size_y/1e3,0);default:return console.warn(`${e.shape_type} is not supported`),new b.BufferGeometry}}function Le({name:e,collider:r,children:t}){var u,c;const s=((u=r.pose)==null?void 0:u.position)??[0,0,0],o=((c=r.pose)==null?void 0:c.orientation)??[0,0,0];return r.margin&&console.warn(`${e} margin is not supported`),n.jsx("mesh",{name:e,position:new b.Vector3(s[0],s[1],s[2]).divideScalar(1e3),rotation:new b.Euler(o[0],o[1],o[2],"XYZ"),geometry:Te(r.shape),children:t})}function Pe({name:e,colliders:r,meshChildrenProvider:t,...s}){return n.jsx("group",{name:e,...s,children:Object.entries(r).map(([o,u])=>n.jsx(Le,{name:o,collider:u,children:t(o,u)},o))})}function Ee({scene:e,meshChildrenProvider:r}){const t=e.colliders;return n.jsx("group",{children:t&&n.jsx(Pe,{meshChildrenProvider:r,colliders:t})})}function Ie(e){const r=(e==null?void 0:e.position)??[],t=(e==null?void 0:e.orientation)??[],s=new j.Vector3(t[0]??0,t[1]??0,t[2]??0),o=s.length(),u=o>0?new j.Quaternion().setFromAxisAngle(s.normalize(),o):new j.Quaternion;return new j.Matrix4().compose(new j.Vector3(r[0]??0,r[1]??0,r[2]??0).divideScalar(1e3),u,new j.Vector3(1,1,1))}function ke(e,r=null,t=[]){const s=Ie(r);return e.map((o,u)=>{const c=s.clone(),i=(o.reverse_rotation_direction?-1:1)*(t[u]??0),f=o.type==="PRISMATIC_JOINT",a=(o.theta??0)+(f?0:i),p=(o.d??0)+(f?i:0);return s.multiply(new j.Matrix4().makeRotationZ(a)).multiply(new j.Matrix4().makeTranslation((o.a??0)/1e3,0,p/1e3)).multiply(new j.Matrix4().makeRotationX(o.alpha??0)),c})}const D="#ff4b4b",re="#2fa8ff",Ae="#8a8d9e",Ce=96,Oe=.15,Ge=new b.Vector3(0,1,0),Fe=.2,Ve=2;function De(e){const{lower_limit:r,upper_limit:t}=e??{};return typeof r!="number"||typeof t!="number"||!Number.isFinite(r)||!Number.isFinite(t)||!(r<t)?null:{lower_limit:r,upper_limit:t}}function q({base:e,direction:r,size:t,color:s,opacity:o}){const u=new b.Quaternion().setFromUnitVectors(Ge,r.clone().normalize()),c=e.clone().addScaledVector(r.clone().normalize(),t/2);return n.jsxs("mesh",{position:c,quaternion:u,renderOrder:10,children:[n.jsx("coneGeometry",{args:[t*.35,t,16]}),n.jsx("meshBasicMaterial",{color:s,depthTest:!1,transparent:!0,opacity:o})]})}function U({points:e,color:r,width:t,opacity:s}){return n.jsx(v.Line,{points:e,color:r,lineWidth:t,depthTest:!1,transparent:!0,opacity:s,renderOrder:10})}function oe(e,r){const t=[...e];let s=r;for(;t.length>1;){const o=t[t.length-1],u=t[t.length-2],c=o.distanceTo(u);if(c>s)return t[t.length-1]=o.clone().lerp(u,s/c),t;s-=c,t.pop()}return t}function qe(e,r,t,s){const o=t*e,u=t*r,c=Math.abs(u-o),i=Math.max(2,Math.ceil(c/(2*Math.PI)*Ce));return Array.from({length:i+1},(f,a)=>{const p=o+(u-o)*a/i,l=c*a/i/(2*Math.PI),g=s*(1+Oe*l);return new b.Vector3(Math.cos(p)*g,Math.sin(p)*g,0)})}function Ue(e,r,t,s){const o=e.theta??0,u=e.d??0,c=e.type==="PRISMATIC_JOINT",i=e.reverse_rotation_direction?-1:1,{lower_limit:f,upper_limit:a}=r;return m.useMemo(()=>{const p=new b.Matrix4().makeRotationZ(o).multiply(new b.Matrix4().makeTranslation(0,0,c?u/1e3:0)),l=(S,T,I)=>new b.Vector3(S,T,I).applyMatrix4(p),g=new b.Vector3().applyMatrix4(p),x=l(0,0,t),h=(c?[l(t*.25,0,i*f/1e3),l(t*.25,0,i*a/1e3)]:qe(f,a,i,t*.6)).map(S=>c?S:S.applyMatrix4(p)),d=l(c?t*.25:t*.6,0,0),M=h.slice(1).reduce((S,T,I)=>S+T.distanceTo(h[I]),0),y=Math.min(s,M/3),w=oe(oe(h,y).reverse(),y).reverse();return{axisPoints:[g,x],axisTip:x,origin:g,restPoints:[g,d],range:h,limitPoints:w,rangeStart:w[0],rangeEnd:w[w.length-1]}},[o,u,c,i,t,f,a,s])}function Ne({frame:e,dh:r,limit:t,size:s,emphasis:o}){const u=o==="highlighted"?Ve:1,c=o==="dimmed"?Fe:1,i=s*.2*(o==="highlighted"?1.4:1),f=2*u,{axisPoints:a,axisTip:p,origin:l,restPoints:g,range:x,limitPoints:h,rangeStart:d,rangeEnd:M}=Ue(r,t,s,i),{position:y,quaternion:w}=m.useMemo(()=>{const S=new b.Vector3,T=new b.Quaternion;return e.decompose(S,T,new b.Vector3),{position:S,quaternion:T}},[e]);return n.jsxs("group",{position:y,quaternion:w,children:[n.jsx(U,{points:a,color:re,width:f,opacity:c}),n.jsx(q,{base:p,direction:p.clone().sub(l),size:i,color:re,opacity:c}),n.jsx(U,{points:g,color:Ae,width:1.5*u,opacity:c}),n.jsx(U,{points:h,color:D,width:f,opacity:c}),n.jsx(q,{base:d,direction:x[0].clone().sub(d),size:d.distanceTo(x[0]),color:D,opacity:c}),n.jsx(q,{base:M,direction:x[x.length-1].clone().sub(M),size:M.distanceTo(x[x.length-1]),color:D,opacity:c})]})}function Be({dhParameters:e,chainOffset:r=null,limits:t,jointPositions:s,size:o=.15,highlightedJoint:u=null}){const c=m.useMemo(()=>ke(e,r,s),[e,r,s]);return n.jsx("group",{children:c.map((i,f)=>{const a=De(t[f]);return a?n.jsx(Ne,{frame:i,dh:e[f],limit:a,size:o,emphasis:u===null?"normal":u===f?"highlighted":"dimmed"},f):null})})}function J(){return n.jsx(v.Environment,{frames:1,children:n.jsx(He,{})})}const Je=[2,0,2,0,2,0,2,0];function He({positions:e=Je}){return n.jsxs(n.Fragment,{children:[n.jsx(v.Lightformer,{intensity:5,"rotation-x":Math.PI/2,position:[0,5,-9],scale:[10,10,1]}),n.jsx("group",{rotation:[0,.5,0],children:n.jsx("group",{children:e.map((r,t)=>n.jsx(v.Lightformer,{form:"circle",intensity:5,rotation:[Math.PI/2,0,0],position:[r,4,t*4],scale:[3,1,1]},t))})}),n.jsx(v.Lightformer,{intensity:40,"rotation-y":Math.PI/2,position:[-5,1,-1],scale:[20,.1,1]}),n.jsx(v.Lightformer,{intensity:20,"rotation-y":-Math.PI,position:[-5,-2,-1],scale:[20,.1,1]}),n.jsx(v.Lightformer,{"rotation-y":Math.PI/2,position:[-5,-1,-1],scale:[20,.5,1],intensity:5}),n.jsx(v.Lightformer,{"rotation-y":-Math.PI/2,position:[10,1,0],scale:[20,1,1],intensity:10}),n.jsx(v.Lightformer,{form:"ring",color:"white",intensity:5,scale:10,position:[-15,4,-18],target:[0,0,0]})]})}const se={attach:"material",color:"#009f4d",opacity:.2,depthTest:!1,depthWrite:!1,transparent:!0,polygonOffset:!0};function We({safetyZones:e,dhParameters:r,...t}){const s=m.useMemo(()=>L.dhParametersToPlaneSize(r??[]),[r]),o=(c,i)=>{var g,x;if(!((g=i==null?void 0:i.pose)!=null&&g.position)||!((x=i==null?void 0:i.pose)!=null&&x.orientation))return null;const f=new b.Vector3(i.pose.position[0]/1e3,i.pose.position[1]/1e3,i.pose.position[2]/1e3),a=new b.Vector3(i.pose.orientation[0],i.pose.orientation[1],i.pose.orientation[2]);let p;const l=i.shape.shape_type==="plane"?{...se,side:b.DoubleSide}:{...se,side:b.FrontSide};switch(i.shape.shape_type){case"plane":p=n.jsx("planeGeometry",{args:[s,s]});break;case"sphere":{const h=(i==null?void 0:i.shape).radius/1e3;p=n.jsx("sphereGeometry",{args:[h]});break}case"capsule":{const h=(i==null?void 0:i.shape).radius/1e3,d=(i==null?void 0:i.shape).cylinder_height/1e3;p=n.jsx("capsuleGeometry",{args:[h,d]});break}case"convex_hull":{const h=(i==null?void 0:i.shape).vertices.map(M=>new b.Vector3(M[0]/1e3,M[1]/1e3,M[2]/1e3)),d=L.verticesToCoplanarity(h);if(d.isCoplanar&&d.normal){const y=new b.Vector3().addVectors(h[0],d.normal.multiplyScalar(1e-4));h.push(y)}try{p=n.jsx("primitive",{object:new B.ConvexGeometry(h),attach:"geometry"})}catch(M){return console.log("Error creating ConvexGeometry:",M),null}break}case"rectangular_capsule":{const h=i.shape,d=h.radius/1e3,M=h.sphere_center_distance_x/1e3,y=h.sphere_center_distance_y/1e3,w=d*2;p=n.jsx("primitive",{object:new B.RoundedBoxGeometry(M,y,w,2,d),attach:"geometry"});break}default:console.warn("Unsupported safety zone shape type:",i.shape.shape_type),p=null}return n.jsxs("mesh",{renderOrder:c,position:f,quaternion:L.orientationToQuaternion(a),children:[p,n.jsx("meshStandardMaterial",{...l,polygonOffsetFactor:-c})]},`safety-zone-${i.shape.shape_type}-${c}`)},u=m.useMemo(()=>Object.values(e??{}).map((c,i)=>o(i,c)),[e,s]);return n.jsx("group",{...t,children:u})}function Qe({trajectory:e,...r}){const t=(e==null?void 0:e.map(s=>{if(s.position&&s.position.length>=3){const[o,u,c]=s.position;if(Number.isFinite(o)&&Number.isFinite(u)&&Number.isFinite(c))return new b.Vector3(o/1e3,c/1e3,-u/1e3)}return null}).filter(s=>s!==null))||[];return n.jsx("group",{...r,children:t.length>0&&n.jsx(v.Line,{points:t,lineWidth:3,polygonOffset:!0,polygonOffsetFactor:10,polygonOffsetUnits:10})})}const N=new Map;async function k(e,r){if(N.has(e))return N.get(e);const t=(async()=>{var c;const s=r||"",o=new R.Nova({instanceUrl:s}),u=o.api.motionGroupModels;(c=u.axios)!=null&&c.interceptors&&u.axios.interceptors.request.use(i=>{var f;return(f=i.url)!=null&&f.includes("/glb")&&(i.responseType="blob"),i});try{const i=await o.api.motionGroupModels.getMotionGroupGlbModel(e);return URL.createObjectURL(i)}catch(i){throw console.error("Failed to fetch model:",i),i}})();return N.set(e,t),t}function ae(e){function r(t){return t.children.length===0?[t]:[t,...t.children.flatMap(s=>r(s))]}return r(e).filter(t=>ue(t))}function ce(e){return e.name.endsWith("_FLG")}function ue(e){return/_J[0-9]+$/.test(e.name)}function $e(e,r){let t;function s(o){if(ce(o)){if(t)throw Error(`Found multiple flange groups in robot model ${r}; first ${t.name} then ${o.name}. Only one _FLG group is allowed.`);t=o}ue(o),o.children.map(s)}if(s(e.scene),!t)throw Error(`No flange group found in robot model ${r}. Flange must be identified with a name ending in _FLG.`);return{gltf:e}}const le=m.forwardRef(function({rapidlyChangingMotionState:r,dhParameters:t,chainOffsetPosition:s,chainOffsetQuaternion:o,onRotationChanged:u,children:c},i){const f=m.useRef(null),a=m.useRef([]),p=m.useRef(r.joint_position.filter(y=>y!==void 0)),{invalidate:l}=F.useThree(),g=m.useRef(r);g.current=r;function x(y){f.current=y,y&&h()}function h(){f.current&&(a.current=ae(f.current),d(),l())}m.useImperativeHandle(i,()=>({recollectJoints:h}));function d(){const y=p.current;if(u)u(a.current,y);else for(const[w,S]of a.current.entries()){const T=t[w],I=T.theta||0,V=T.reverse_rotation_direction?-1:1;S.rotation.y=V*(y[w]||0)+I}}function M(y){p.current=y.joint_position.filter(w=>w!==void 0),d(),l()}return E.useAutorun(()=>{M(g.current)}),m.useEffect(()=>{M(r)},[r]),n.jsx("group",{ref:x,position:s,quaternion:o,children:c})}),Ye="line",Xe="mesh";function Ze({rapidlyChangingMotionState:e,dhParameters:r,...t}){const s=new j.Matrix4,o=m.useRef([]),u=m.useRef([]);m.useEffect(()=>{o.current=new Array(r.length).fill(null),u.current=new Array(r.length).fill(null)},[r.length]);function c(a,p){const l=new j.Vector3,g=new j.Quaternion,x=new j.Vector3;s.decompose(l,g,x);const h=l.clone(),d=new j.Matrix4().makeRotationY(a.theta+p*(a.reverse_rotation_direction?-1:1)).multiply(new j.Matrix4().makeTranslation(0,a.d/1e3,0)).multiply(new j.Matrix4().makeTranslation(a.a/1e3,0,0)).multiply(new j.Matrix4().makeRotationX(a.alpha));return s.multiply(d),s.decompose(l,g,x),{a:h,b:l}}function i(a,p,l,g){if(!r)return;const x=r[a];if(!x)return;const{a:h,b:d}=c(x,g);p.geometry.setPositions([h.toArray(),d.toArray()].flat()),l.position.set(d.x,d.y,d.z)}function f(a,p){s.identity();for(let l=0;l<Math.min(a.length,p.length);l++){const g=o.current[l],x=u.current[l];g&&x&&i(l,g,x,p[l])}}return n.jsx(le,{rapidlyChangingMotionState:e,dhParameters:r,onRotationChanged:f,children:n.jsxs("group",{...t,name:"Scene",children:[n.jsxs("mesh",{children:[n.jsx("sphereGeometry",{args:[.01,32,32]}),n.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]}),r==null?void 0:r.map((a,p)=>{const{a:l,b:g}=c(a,e.joint_position[p]??0),x=`dhrobot_J0${p}`;return n.jsxs("group",{name:x,children:[n.jsx(v.Line,{ref:h=>{o.current[p]=h},name:Ye,points:[l,g],color:"white",lineWidth:5}),n.jsxs("mesh",{ref:h=>{u.current[p]=h},name:Xe,position:g,children:[n.jsx("sphereGeometry",{args:[.01,32,32]}),n.jsx("meshStandardMaterial",{color:"black",depthTest:!0})]},`mesh_${p}`)]},x)})]})})}const Ke=console.warn;function fe(){return m.useEffect(()=>{console.warn=e=>{e!=="Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"&&Ke(e)}},[]),null}function ze(e){return e.type==="Mesh"}function et({url:e,flangeRef:r,postModelRender:t,...s}){const o=v.useGLTF(e),c=$e(o,"robot.glb").gltf,i=m.useCallback(a=>{a&&t&&t()},[t]);function f(a){try{return ze(a)?a.geometry?n.jsx("mesh",{name:a.name,geometry:a.geometry,material:a.material,position:a.position,rotation:a.rotation},a.uuid):n.jsx("group",{name:a.name,position:a.position,rotation:a.rotation},a.uuid):n.jsx("group",{name:a.name,position:a.position,rotation:a.rotation,ref:ce(a)?r:void 0,children:a.children.map(f)},a.uuid)}catch(p){return console.warn("Error rendering node",a.name,p),null}}return n.jsx("group",{...s,dispose:null,ref:i,children:f(c.scene)})}function de({modelURL:e,flangeRef:r,postModelRender:t,...s}){const[o,u]=m.useState(null);return m.useEffect(()=>{let c=!1;return(async()=>{try{const f=typeof e=="string"?e:await e;c||u(a=>a===f?a:f)}catch(f){console.error("Failed to resolve model URL:",f)}})(),()=>{c=!0}},[e]),o?n.jsx(et,{url:o,flangeRef:r,postModelRender:t,...s}):null}const pe=(e,r)=>{e.userData.isGhost||(e.traverse(t=>{if(t instanceof b.Mesh){t.material instanceof b.Material&&(t.material.colorWrite=!1);const s=t.clone(),o=t.clone();s.material=new b.MeshStandardMaterial({depthTest:!0,depthWrite:!0,colorWrite:!1,polygonOffset:!0,polygonOffsetFactor:-1,side:b.DoubleSide}),s.userData.isGhost=!0,o.material=new b.MeshStandardMaterial({color:r,opacity:.3,depthTest:!0,depthWrite:!1,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-2,side:b.DoubleSide}),o.userData.isGhost=!0,t.parent&&(t.parent.add(s),t.parent.add(o))}}),e.userData.isGhost=!0)},he=e=>{if(!e.userData.isGhost)return;const r=[];e.traverse(t=>{var s;t instanceof b.Mesh&&((s=t.userData)!=null&&s.isGhost?r.push(t):t.material instanceof b.Material&&(t.material.colorWrite=!0))}),r.forEach(t=>{t.parent&&t.parent.remove(t)}),e.userData.isGhost=!1},W=L.externalizeComponent(({rapidlyChangingMotionState:e,modelFromController:r,dhParameters:t,chainOffsetPosition:s,chainOffsetQuaternion:o,getModel:u=k,flangeRef:c,postModelRender:i,transparentColor:f,instanceUrl:a,...p})=>{const[l,g]=m.useState(null),x=m.useRef(null),h=m.useCallback(w=>{g(w)},[]),d=m.useCallback(()=>{var w;(w=x.current)==null||w.recollectJoints(),i==null||i()},[i]);m.useEffect(()=>{l&&(f?pe(l,f):he(l))},[l,f]);const M=m.useMemo(()=>{const w=u(r,a);if(!w)throw new Error(`No model found for robot "${r}". Ensure the model is available or provide a custom getModel function.`);return w},[r,a,u]),y=n.jsx(Ze,{rapidlyChangingMotionState:e,dhParameters:t,...p});return n.jsxs(ie.ErrorBoundary,{fallback:y,onError:w=>{console.warn(w)},children:[n.jsx(m.Suspense,{fallback:y,children:n.jsx("group",{ref:h,children:n.jsx(le,{ref:x,rapidlyChangingMotionState:e,dhParameters:t,chainOffsetPosition:s,chainOffsetQuaternion:o,children:n.jsx(de,{modelURL:M,postModelRender:d,flangeRef:c,...p})})})}),n.jsx(fe,{})]})}),me=L.externalizeComponent(({rapidlyChangingMotionState:e,...r})=>{const t=E.useSmoothedMotionState(e);return n.jsx(W,{rapidlyChangingMotionState:t,...r})});function xe({connectedMotionGroup:e,getModel:r=k,flangeRef:t,transparentColor:s,postModelRender:o,...u}){if(!e.dhParameters)return null;const c=e.mountingPosition,i=e.mountingQuaternion;return n.jsx(me,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:e.modelFromController||"",dhParameters:e.dhParameters,getModel:r,flangeRef:t,transparentColor:s,postModelRender:o,chainOffsetPosition:c,chainOffsetQuaternion:i,...u})}const tt=L.externalizeComponent(Se.observer(({robotName:e,programState:r,safetyState:t,operationMode:s,driveToHomeEnabled:o=!1,onDriveToHomePress:u,onDriveToHomeRelease:c,connectedMotionGroup:i,robotComponent:f=xe,customContentComponent:a,className:p})=>{var X;const l=we.useTheme(),{t:g}=ve.useTranslation(),[x,h]=m.useState(!1),d=m.useRef(null),M=m.useRef(null),[y,w]=m.useState(!1),[S,T]=m.useState({width:400,height:600}),[I,V]=m.useState(0);m.useEffect(()=>{const G=()=>{if(M.current){const{offsetWidth:K,offsetHeight:z}=M.current;w(K>z),T({width:K,height:z})}};G();const Z=new ResizeObserver(G);return M.current&&Z.observe(M.current),()=>{Z.disconnect()}},[]);const $=m.useCallback(()=>{V(G=>G+1)},[]),A=m.useCallback(()=>{!o||!u||(h(!0),u())},[o,u]),C=m.useCallback(()=>{!o||!c||(h(!1),c())},[o,c]),Y=m.useCallback(()=>{x&&c&&(h(!1),c())},[x,c]),P=y?S.width<350:S.height<200,O=y?S.height<310:S.height<450;return n.jsx(Re,{ref:M,className:p,sx:{width:"100%",height:"100%",display:"flex",flexDirection:y?"row":"column",position:"relative",overflow:"hidden",minWidth:{xs:180,sm:220,md:250},minHeight:y?{xs:200,sm:240,md:260}:{xs:150,sm:180,md:220},border:`1px solid ${l.palette.divider}`,borderRadius:"18px",boxShadow:"none",backgroundColor:((X=l.palette.backgroundPaperElevation)==null?void 0:X[8])||"#292B3F",backgroundImage:"none"},children:y?n.jsxs(n.Fragment,{children:[n.jsx(_,{sx:{flex:"0 0 50%",position:"relative",height:"100%",minHeight:"100%",maxHeight:"100%",borderRadius:1,m:{xs:1.5,sm:2,md:3},mr:{xs:.75,sm:1,md:1.5},overflow:"hidden",display:P?"none":"block"},children:!P&&n.jsxs(F.Canvas,{orthographic:!0,camera:{position:[3,2,3],zoom:1},shadows:!0,frameloop:"demand",style:{borderRadius:l.shape.borderRadius,width:"100%",height:"100%",background:"transparent",position:"absolute",top:0,left:0},dpr:[1,2],gl:{alpha:!0,antialias:!0},children:[n.jsx(J,{}),n.jsx(v.Bounds,{fit:!0,observe:!0,margin:1,maxDuration:1,children:n.jsx(f,{connectedMotionGroup:i,postModelRender:$})})]})}),n.jsxs(_,{sx:{flex:"1",display:"flex",flexDirection:"column",justifyContent:"flex-start",width:P?"100%":"50%"},children:[n.jsxs(_,{sx:{p:{xs:1.5,sm:2,md:3},pb:{xs:1,sm:1.5,md:2},textAlign:"left"},children:[n.jsx(ne,{variant:"h6",component:"h2",sx:{mb:1},children:e}),n.jsx(E.ProgramStateIndicator,{programState:r,safetyState:t,operationMode:s})]}),n.jsxs(_,{sx:{p:{xs:1.5,sm:2,md:3},pt:0,flex:"1",display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[!O&&a&&n.jsxs(_,{children:[n.jsx(a,{}),n.jsx(te,{sx:{mt:1,mb:0,borderColor:l.palette.divider,opacity:.5}})]}),n.jsx(_,{sx:{mt:!O&&a?"auto":0},children:n.jsx(_,{sx:{display:"flex",justifyContent:"flex-start",mt:{xs:1,sm:1.5,md:2},mb:{xs:.5,sm:.75,md:1}},children:n.jsx(ee,{ref:d,variant:"contained",color:"secondary",size:"small",disabled:!o,onMouseDown:A,onMouseUp:C,onMouseLeave:Y,onTouchStart:A,onTouchEnd:C,sx:{textTransform:"none",px:1.5,py:.5},children:g("RobotCard.DriveToHome.bt")})})})]})]})]}):n.jsx(n.Fragment,{children:n.jsxs(_,{sx:{p:3,height:"100%",display:"flex",flexDirection:"column"},children:[n.jsxs(_,{children:[n.jsx(ne,{variant:"h6",component:"h2",sx:{mb:1},children:e}),n.jsx(E.ProgramStateIndicator,{programState:r,safetyState:t,operationMode:s})]}),n.jsx(_,{sx:{flex:P?0:1,position:"relative",minHeight:P?0:{xs:120,sm:150,md:200},height:P?0:"auto",borderRadius:1,overflow:"hidden",display:P?"none":"block"},children:!P&&n.jsxs(F.Canvas,{orthographic:!0,camera:{position:[3,2,3],zoom:1},shadows:!0,frameloop:"demand",style:{borderRadius:l.shape.borderRadius,width:"100%",height:"100%",background:"transparent",position:"absolute"},dpr:[1,2],gl:{alpha:!0,antialias:!0},children:[n.jsx(J,{}),n.jsx(v.Bounds,{fit:!0,clip:!0,observe:!0,margin:1,maxDuration:1,children:n.jsx(f,{connectedMotionGroup:i,postModelRender:$})})]})}),n.jsxs(_,{children:[!O&&a&&n.jsxs(n.Fragment,{children:[n.jsx(a,{}),n.jsx(te,{sx:{mt:1,mb:0,borderColor:l.palette.divider,opacity:.5}})]}),n.jsx(_,{sx:{display:"flex",justifyContent:"flex-start",mt:!O&&a?{xs:1,sm:2,md:5}:{xs:.5,sm:1,md:2},mb:{xs:.5,sm:.75,md:1}},children:n.jsx(ee,{ref:d,variant:"contained",color:"secondary",size:"small",disabled:!o,onMouseDown:A,onMouseUp:C,onMouseLeave:Y,onTouchStart:A,onTouchEnd:C,sx:{textTransform:"none",px:1.5,py:.5},children:g("RobotCard.DriveToHome.bt")})})]})]})})})})),nt=Array(6).fill(2*Math.PI);function ge({rapidlyChangingMotionState:e,dhParameters:r,chainOffsetPosition:t,chainOffsetQuaternion:s,onTranslationChanged:o,children:u}){const c=m.useRef([]),i=m.useRef(e.joint_position.filter(x=>x!==void 0)),{invalidate:f}=F.useThree(),a=m.useRef(e);a.current=e;function p(x){x&&(c.current=ae(x),l(),f())}function l(){const x=i.current;if(o)o(c.current,x);else for(const[h,d]of c.current.entries()){const y=r[h].reverse_rotation_direction?-1:1;d.position.y=y*(x[h]||0)/1e3}}function g(x){i.current=x.joint_position.filter(h=>h!==void 0),l(),f()}return E.useAutorun(()=>{g(a.current)}),n.jsx("group",{ref:p,position:t,quaternion:s,children:u})}function ye({rapidlyChangingMotionState:e,dhParameters:r,...t}){const s=new j.Matrix4,o=m.useRef(null),u=m.useRef(null);function c(a){const p=new j.Matrix4;for(let h=0;h<r.length;h++){const d=r[h],M=a[h]??0,y=new j.Matrix4().makeRotationY(d.theta).multiply(new j.Matrix4().makeTranslation(d.a/1e3,(d.d+M*(d.reverse_rotation_direction?-1:1))/1e3,0)).multiply(new j.Matrix4().makeRotationX(d.alpha));p.multiply(y)}const l=new j.Vector3,g=new j.Quaternion,x=new j.Vector3;return p.decompose(l,g,x),l}const i=c(e.joint_position);function f(a,p){s.identity();let l=new j.Vector3;for(let d=0;d<r.length;d++){const M=p[d]??0,y=r[d],w=new j.Matrix4().makeRotationY(y.theta).multiply(new j.Matrix4().makeTranslation(y.a/1e3,(y.d+M*(y.reverse_rotation_direction?-1:1))/1e3,0)).multiply(new j.Matrix4().makeRotationX(y.alpha));s.multiply(w)}const g=new j.Vector3,x=new j.Quaternion,h=new j.Vector3;if(s.decompose(g,x,h),l=g,o.current&&o.current.position.set(l.x,l.y,l.z),u.current){const d=u.current.geometry;d!=null&&d.setPositions&&d.setPositions([0,0,0,l.x,l.y,l.z])}}return n.jsx(ge,{rapidlyChangingMotionState:e,dhParameters:r,onTranslationChanged:f,children:n.jsxs("group",{...t,name:"Scene",children:[n.jsxs("mesh",{name:"Base",position:[0,0,0],children:[n.jsx("sphereGeometry",{args:[.02,32,32]}),n.jsx("meshStandardMaterial",{color:"green",depthTest:!0})]}),n.jsx(v.Line,{ref:u,points:[new j.Vector3(0,0,0),i],color:"White",lineWidth:5}),n.jsxs("mesh",{ref:o,name:"TCP",position:i,children:[n.jsx("sphereGeometry",{args:[.025,32,32]}),n.jsx("meshStandardMaterial",{color:"red",depthTest:!0})]})]})})}const Q=L.externalizeComponent(({rapidlyChangingMotionState:e,modelFromController:r,dhParameters:t,chainOffsetPosition:s,chainOffsetQuaternion:o,getModel:u=k,flangeRef:c,postModelRender:i,transparentColor:f,instanceUrl:a,...p})=>{const[l,g]=m.useState(null),x=m.useCallback(d=>{g(d)},[]);m.useEffect(()=>{l&&(f?pe(l,f):he(l))},[l,f]);const h=n.jsx(ye,{rapidlyChangingMotionState:e,dhParameters:t,...p});return n.jsxs(ie.ErrorBoundary,{fallback:h,onError:d=>{console.warn(d)},children:[n.jsx(m.Suspense,{fallback:h,children:n.jsx("group",{ref:x,children:n.jsx(ge,{rapidlyChangingMotionState:e,dhParameters:t,chainOffsetPosition:s,chainOffsetQuaternion:o,children:n.jsx(de,{modelURL:(()=>{const d=u(r,a);if(!d){const M=new Blob([],{type:"model/gltf-binary"}),y=new File([M],`${r}.glb`,{type:"model/gltf-binary"});return Promise.resolve(URL.createObjectURL(y))}return d})(),postModelRender:i,flangeRef:c,...p})})})}),n.jsx(fe,{})]})}),je=L.externalizeComponent(({rapidlyChangingMotionState:e,...r})=>{const t=E.useSmoothedMotionState(e);return n.jsx(Q,{rapidlyChangingMotionState:t,...r})});function rt({connectedMotionGroup:e,getModel:r=k,flangeRef:t,transparentColor:s,postModelRender:o,...u}){if(!e.dhParameters)return null;const c=e.mountingPosition,i=e.mountingQuaternion,f=e.modelFromController||"";return f&&r(f)?n.jsx(je,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,modelFromController:f,dhParameters:e.dhParameters,getModel:r,flangeRef:t,transparentColor:s,postModelRender:o,chainOffsetPosition:c,chainOffsetQuaternion:i,...u}):n.jsx(ye,{rapidlyChangingMotionState:e.rapidlyChangingMotionState,dhParameters:e.dhParameters,chainOffsetPosition:c,chainOffsetQuaternion:i,...u})}const H={[R.Manufacturer.Abb]:[0,0,0,0,Math.PI/2,0,0],[R.Manufacturer.Fanuc]:[0,0,0,0,-Math.PI/2,0,0],[R.Manufacturer.Yaskawa]:[0,0,0,0,-Math.PI/2,0,0],[R.Manufacturer.Kuka]:[0,-Math.PI/2,Math.PI/2,0,Math.PI/2,0,0],[R.Manufacturer.Universalrobots]:[0,-Math.PI/2,-Math.PI/2,-Math.PI/2,Math.PI/2,-Math.PI/2,0],[R.Manufacturer.Staubli]:[0,-Math.PI/2,Math.PI/2,0,0,0,0]};function be(e){const[r]=e.split("_");switch(r){case"ABB":return R.Manufacturer.Abb;case"FANUC":return R.Manufacturer.Fanuc;case"YASKAWA":return R.Manufacturer.Yaskawa;case"KUKA":return R.Manufacturer.Kuka;case"UniversalRobots":return R.Manufacturer.Universalrobots;case"STAUBLI":return R.Manufacturer.Staubli;default:return null}}function ot(e,r){const t=be(e);return t&&t in H?H[t]:r||null}const Me=L.externalizeComponent(e=>{const{inverseSolver:r,dhParameters:t,...s}=e,[o,u]=m.useState(R.JointTypeEnum.RevoluteJoint);m.useEffect(()=>{t.length&&u(t[0].type??R.JointTypeEnum.RevoluteJoint)},[t]);const c=m.useMemo(()=>r===null&&o===R.JointTypeEnum.RevoluteJoint,[r,o]),i=m.useMemo(()=>r===null&&o===R.JointTypeEnum.PrismaticJoint,[r,o]);return m.useMemo(()=>!!r,[r])||c?n.jsx(W,{dhParameters:t,...s}):i?n.jsx(Q,{dhParameters:t,...s}):null}),st=L.externalizeComponent(e=>{const r=E.useSmoothedMotionState(e.rapidlyChangingMotionState);return n.jsx(Me,{...e,rapidlyChangingMotionState:r})});exports.CollisionSceneRenderer=Ee;exports.JointLimitGizmo=Be;exports.LinearAxis=rt;exports.MANUFACTURER_HOME_CONFIGS=H;exports.MotionGroupVisualizer=st;exports.MotionGroupVisualizerExact=Me;exports.PresetEnvironment=J;exports.Robot=xe;exports.RobotCard=tt;exports.SafetyZonesRenderer=We;exports.SupportedLinearAxis=je;exports.SupportedLinearAxisExact=Q;exports.SupportedRobot=me;exports.SupportedRobotExact=W;exports.TrajectoryRenderer=Qe;exports.defaultAxisConfig=nt;exports.defaultGetModel=k;exports.extractManufacturer=be;exports.getDefaultHomeConfig=ot;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const r=require("react/jsx-runtime"),m=require("@mui/material/Divider"),E=require("@mui/material/Stack"),f=require("mobx-react-lite"),x=require("./externalizeComponent-OO4jcrz5.cjs"),y=require("@mui/material/styles"),c=require("react"),d=require("react-i18next"),A=require("@mui/material/Popover"),g=require("@mui/material/SvgIcon"),h=require("@mui/material/Typography"),T=require("axios");function M(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const l=M(c);function _(e,t){throw new Error(`${t} ${JSON.stringify(e)}`)}function R(e){var t,a,n,o;return e instanceof T.AxiosError&&e.code==="ERR_NETWORK"?"Failed to connect to the server. Please check your internet connection.":e instanceof T.AxiosError&&e.response?`${(t=e.response)==null?void 0:t.status} ${(a=e.response)==null?void 0:a.statusText} from ${(n=e.response)==null?void 0:n.config.url}: ${JSON.stringify((o=e.response)==null?void 0:o.data)}`:e instanceof Error?e.message:`Unexpected error: ${x.tryStringifyJson(e)||e}`}const O=({title:e,titleId:t,...a},n)=>l.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...a},e?l.createElement("title",{id:t},e):null,l.createElement("path",{d:"M5.248 21c-.334 0-.619-.116-.853-.35a1.153 1.153 0 0 1-.351-.848c0-.333.117-.616.351-.85.234-.233.519-.35.853-.35H7.24L4.558 9.87a2.881 2.881 0 0 1-1.126-1.042A2.77 2.77 0 0 1 3 7.317c0-.793.28-1.467.838-2.023a2.774 2.774 0 0 1 2.033-.834 2.71 2.71 0 0 1 1.728.585c.494.389.832.887 1.014 1.493h3.58V5.239c0-.22.076-.406.226-.555a.76.76 0 0 1 .558-.224c.136 0 .263.035.381.104.118.07.209.167.273.292v.14l1.835-1.702a.979.979 0 0 1 .52-.279.881.881 0 0 1 .58.091l4.01 1.85a.74.74 0 0 1 .36.364.537.537 0 0 1-.002.474.592.592 0 0 1-.366.323.657.657 0 0 1-.477-.039l-3.858-1.774L13.76 6.59v1.454l2.473 2.233 3.858-1.774a.648.648 0 0 1 .485-.03.571.571 0 0 1 .358.314.513.513 0 0 1 .01.482.79.79 0 0 1-.367.357l-4.011 1.882a.881.881 0 0 1-.58.09.979.979 0 0 1-.52-.278L13.63 9.638v.14a.92.92 0 0 1-.273.275.665.665 0 0 1-.381.12.76.76 0 0 1-.558-.224.752.752 0 0 1-.225-.555V8.096h-3.58a2.82 2.82 0 0 1-.215.54 2.552 2.552 0 0 1-.323.479l5.139 9.488h2.673c.335 0 .62.116.854.35.234.233.35.516.35.849 0 .332-.116.615-.35.849a1.167 1.167 0 0 1-.854.349H5.248Zm.623-12.385c.362 0 .67-.126.924-.378a1.25 1.25 0 0 0 .38-.92 1.25 1.25 0 0 0-.38-.92 1.261 1.261 0 0 0-.924-.379 1.26 1.26 0 0 0-.925.379 1.25 1.25 0 0 0-.38.92c0 .36.127.667.38.92.254.252.562.378.925.378Z"})),j=c.forwardRef(O),B=({title:e,titleId:t,...a},n)=>l.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...a},e?l.createElement("title",{id:t},e):null,l.createElement("path",{d:"m13.37 9.12 1.69 1.69 2.99-2.99-3.73-3.73-.95-.95-7.66 7.66-.95.95 3.99 3.99v3.44h7.55v-3.55l-4.72-4.72 1.79-1.79Zm-.91-2.99.91-.91 2.6 2.6-.91.91-2.6-2.6Zm-2.25 10.24h3.74l-1.34-1.34-.04-.04h-2.5l-3.25-3.25 4.59-4.59.92.92L9.5 10.9l5.33 5.33v1.48H10.2v-1.35l.01.01ZM2 2v4.99h1.41V3.4h3.58V2H2ZM22.21 2h-4.98v1.41h3.59v3.58h1.4V2h-.01ZM20.81 20.65h-3.58v1.4h4.98v-4.99h-1.4v3.59ZM3.4 17.06H2v4.98h4.99v-1.4H3.4v-3.58Z"})),F=c.forwardRef(B),p=f.observer(({id:e,icon:t,color:a,title:n,name:o,label:s,explanation:i,literalValue:S,anchorOrigin:b,transformOrigin:v})=>{const u=f.useLocalObservable(()=>({anchorEl:null,get isPopoverOpen(){return!!u.anchorEl},openPopover(w){u.anchorEl=w.currentTarget},closePopover(){u.anchorEl=null}}));return r.jsxs(r.Fragment,{children:[r.jsxs(E,{"aria-owns":u.isPopoverOpen?e:void 0,"aria-haspopup":"true",onMouseEnter:u.openPopover,onMouseLeave:u.closePopover,direction:"row",spacing:1,sx:{cursor:"pointer"},children:[r.jsx(g,{component:t,sx:{color:a}}),s&&r.jsx("div",{style:{color:a},children:s})]}),r.jsx(A,{id:e,sx:{pointerEvents:"none"},open:u.isPopoverOpen,anchorEl:u.anchorEl,anchorOrigin:b??{vertical:"bottom",horizontal:"left"},transformOrigin:v??{vertical:"top",horizontal:"left"},onClose:u.closePopover,disableRestoreFocus:!0,children:r.jsxs(E,{gap:"1rem",padding:2,maxWidth:"450px",sx:{wordWrap:"break-word"},children:[r.jsxs("div",{children:[n&&r.jsx(h,{component:"span",fontSize:"14px",children:`${n}: `}),r.jsx(h,{component:"span",color:a,fontWeight:"bold",fontSize:"14px",children:o})]}),r.jsx(h,{fontSize:"14px",children:i}),S&&r.jsx(h,{fontSize:"12px",children:S})]})})]})}),Z=f.observer(({isVirtual:e,motionGroupId:t,anchorOrigin:a,transformOrigin:n,compact:o})=>{const s=y.useTheme(),i=c.useId(),{t:S}=d.useTranslation();return e?r.jsx(p,{id:`motion-group-virtual-${i}`,icon:F,color:s.palette.tertiary.main,name:S("SafetyBar.ControllerType.Virtual.lb"),label:o?null:S("SafetyBar.ControllerType.Virtual.lb"),explanation:r.jsxs(d.Trans,{i18nKey:"SafetyBar.MotionGroup.Virtual.Explanation.lb",values:{motionGroupId:t},children:["Motion group ",r.jsx("code",{children:t})," refers to a virtual robot with no physical counterpart. It can be freely manipulated without special safety precautions."]}),anchorOrigin:a,transformOrigin:n}):r.jsx(p,{id:`motion-group-physical-${i}`,icon:j,color:s.palette.primary.main,name:S("SafetyBar.ControllerType.Physical.lb"),label:o?null:S("SafetyBar.ControllerType.Physical.lb"),explanation:r.jsx(d.Trans,{i18nKey:"SafetyBar.MotionGroup.Physical.Explanation.lb",values:{motionGroupId:t},components:{code:r.jsx("code",{}),strong:r.jsx("strong",{})}}),anchorOrigin:a,transformOrigin:n})}),C=({title:e,titleId:t,...a},n)=>l.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...a},e?l.createElement("title",{id:t},e):null,l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.306 2.768c0-.424.344-.768.768-.768h.406C19.53 2 22 4.551 22 7.699c0 3.237-2.51 5.587-5.31 5.703-.84 1.595-2.478 2.677-4.36 2.677a4.845 4.845 0 0 1-3.146-1.163c-.6 1.783 0 3.922 1.79 4.99 1.929 1.149 4.395.467 5.508-1.524l.212-.378a.75.75 0 1 1 1.308.732l-.231.414c-1.524 2.725-4.9 3.66-7.54 2.085-2.716-1.618-3.432-5.037-2.129-7.599a5.22 5.22 0 0 1-.73-2.677c0-2.192 1.335-4.063 3.212-4.793-1.195-1.427-3.29-1.96-5.08-.892-1.928 1.15-2.589 3.696-1.475 5.687l.231.413a.75.75 0 0 1-1.308.732l-.212-.377c-1.524-2.726-.62-6.211 2.02-7.785 2.716-1.619 5.943-.55 7.44 1.897l.13-.001c2.739 0 4.96 2.292 4.96 5.12 0 .284-.023.563-.066.834 1.795-.354 3.288-1.96 3.288-4.095 0-2.3-1.805-4.163-4.032-4.163h-.406a.768.768 0 0 1-.768-.768Zm.496 8.191c0 .286-.033.564-.094.831a3.62 3.62 0 0 1-.672 1.415 3.425 3.425 0 0 1-2.706 1.338 3.402 3.402 0 0 1-2.384-.98 3.598 3.598 0 0 1-.852-1.306 3.677 3.677 0 0 1-.235-1.298c0-1.623 1.046-2.994 2.48-3.435a3.37 3.37 0 0 1 1.522-.107c1.665.264 2.94 1.75 2.94 3.542Z"})),P=c.forwardRef(C),$=({title:e,titleId:t,...a},n)=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...a},e?l.createElement("title",{id:t},e):null,l.createElement("path",{d:"M19.763 16.432 13.516 5.864c-.674-1.152-2.358-1.152-3.049 0l-6.23 10.568C3.563 17.567 4.405 19 5.753 19H18.23c1.364 0 2.206-1.432 1.532-2.568ZM12 8.498c.539 0 .96.428.96.938v.066l-.32 4.708a.639.639 0 0 1-.64.592.639.639 0 0 1-.64-.592l-.32-4.708A.953.953 0 0 1 12 8.498Zm0 8.79c-.556 0-1.01-.444-1.01-.987 0-.544.454-.988 1.01-.988s1.01.444 1.01.988c0 .542-.454.987-1.01.987Z",fill:"#fff",fillOpacity:.56})),N=c.forwardRef($),Y=({title:e,titleId:t,...a},n)=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...a},e?l.createElement("title",{id:t},e):null,l.createElement("path",{d:"M12.953 5.09a1.497 1.497 0 0 0-1.653-.518l-1.35.43a1.504 1.504 0 0 0-1.726-.376L2.858 6.97c-.736.321-1.06 1.155-.726 1.862.334.707 1.202 1.02 1.937.698l4.27-1.865 1.466 1.973v.402c0 .873-.627 1.63-1.512 1.827l-2.56.567c-1.329.295-2.27 1.431-2.27 2.74v.107c0 .26.22.469.489.469h11.117c1.329 0 2.618.435 3.656 1.233l1.665 1.28A1 1 0 0 0 22 17.47V11.062c0-.312-.108-.616-.308-.863l-3.415-4.218a1.5 1.5 0 0 0-1.618-.471l-.378.12-.866-.475a1.516 1.516 0 0 0-1.188-.114l-1.06.338-.214-.289Z"})),V=c.forwardRef(Y),q=f.observer(({operationMode:e,anchorOrigin:t,transformOrigin:a,compact:n})=>{const{t:o}=d.useTranslation(),s=y.useTheme(),i=c.useId();switch(e){case"OPERATION_MODE_AUTO":return r.jsx(p,{id:`operation-mode-auto-${i}`,icon:P,title:o("SafetyBar.OperationMode.ti"),name:o("SafetyBar.OperationMode.Automatic.ti"),label:n?null:o("SafetyBar.OperationMode.Automatic.ti"),color:s.palette.text.secondary,explanation:r.jsx(d.Trans,{i18nKey:"SafetyBar.OperationMode.Auto.Explanation.lb",children:"The robot controller is in automatic operation mode. Automated movement without manual confirmation is possible in this mode."}),anchorOrigin:t,transformOrigin:a});case"OPERATION_MODE_MANUAL":case"OPERATION_MODE_MANUAL_T1":case"OPERATION_MODE_MANUAL_T2":return r.jsx(p,{id:`operation-mode-manual-${i}`,icon:V,color:s.palette.warning.main,title:o("SafetyBar.OperationMode.ti"),name:o("SafetyBar.OperationMode.Manual.lb"),label:n?null:o("SafetyBar.OperationMode.Manual.lb"),explanation:r.jsx(d.Trans,{i18nKey:"SafetyBar.OperationMode.Manual.Explanation.lb",children:"The robot controller is in manual operation mode. On a physical robot, this generally indicates that an enabling switch must be held for the robot to move successfully."}),literalValue:e,anchorOrigin:t,transformOrigin:a});default:return r.jsx(p,{id:`operation-mode-error-${i}`,icon:N,color:s.palette.warning.main,title:o("SafetyBar.OperationMode.ti"),name:o("SafetyBar.OperationMode.Error.lb"),label:n?null:o("SafetyBar.OperationMode.Error.lb"),explanation:r.jsx(d.Trans,{i18nKey:"SafetyBar.OperationMode.Error.Explanation.lb",children:"The robot controller has entered an unexpected operation mode. Motion group movement may not be possible."}),literalValue:e,anchorOrigin:t,transformOrigin:a})}}),L=({title:e,titleId:t,...a},n)=>l.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...a},e?l.createElement("title",{id:t},e):null,l.createElement("path",{d:"M19.763 16.432 13.516 5.864c-.674-1.152-2.358-1.152-3.049 0l-6.23 10.568C3.563 17.567 4.405 19 5.753 19H18.23c1.364 0 2.206-1.432 1.532-2.568ZM12 8.498c.539 0 .96.428.96.938v.066l-.32 4.708a.639.639 0 0 1-.64.592.639.639 0 0 1-.64-.592l-.32-4.708A.953.953 0 0 1 12 8.498Zm0 8.79c-.556 0-1.01-.444-1.01-.987 0-.544.454-.988 1.01-.988s1.01.444 1.01.988c0 .542-.454.987-1.01.987Z"})),I=c.forwardRef(L),K=({title:e,titleId:t,...a},n)=>l.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...a},e?l.createElement("title",{id:t},e):null,l.createElement("path",{d:"M10.24 10.636 12 13.764l1.76-3.128h-3.52Z"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.364 12a6.364 6.364 0 1 1-12.728 0 6.364 6.364 0 0 1 12.728 0ZM7.909 9.273 12 16.546l4.09-7.273H7.91Z"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-1.364 0a8.636 8.636 0 1 1-17.273 0 8.636 8.636 0 0 1 17.273 0Z"})),D=c.forwardRef(K),H=({title:e,titleId:t,...a},n)=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...a},e?l.createElement("title",{id:t},e):null,l.createElement("path",{d:"M9.057 15.115c-1.681 0-3.111-.59-4.29-1.768C3.59 12.17 3 10.74 3 9.057c0-.29.021-.582.064-.876a4.1 4.1 0 0 1 .214-.844.78.78 0 0 1 .273-.36c.115-.077.244-.133.389-.168a.857.857 0 0 1 .437.008c.146.04.28.12.4.24l2.806 2.787 2.26-2.261-2.775-2.786a.903.903 0 0 1-.241-.405.875.875 0 0 1-.008-.442 1.13 1.13 0 0 1 .174-.389.82.82 0 0 1 .355-.273c.268-.107.548-.182.838-.224.29-.043.581-.064.871-.064 1.682 0 3.112.59 4.29 1.768 1.179 1.178 1.768 2.608 1.768 4.29 0 .444-.042.858-.126 1.241-.084.384-.21.755-.377 1.113l5.726 5.692A2.2 2.2 0 0 1 21 18.721a2.2 2.2 0 0 1-.662 1.617A2.2 2.2 0 0 1 18.72 21a2.173 2.173 0 0 1-1.617-.679l-5.692-5.709c-.372.161-.75.285-1.133.372-.383.087-.79.13-1.222.13Z",fill:"#fff",fillOpacity:.56})),U=c.forwardRef(H),z=({title:e,titleId:t,...a},n)=>l.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...a},e?l.createElement("title",{id:t},e):null,l.createElement("path",{d:"m10.6 13.8-2.15-2.15a.948.948 0 0 0-.7-.275.948.948 0 0 0-.7.275.948.948 0 0 0-.275.7c0 .283.092.517.275.7L9.9 15.9c.2.2.433.3.7.3.267 0 .5-.1.7-.3l5.65-5.65a.948.948 0 0 0 .275-.7.948.948 0 0 0-.275-.7.948.948 0 0 0-.7-.275.948.948 0 0 0-.7.275L10.6 13.8ZM12 22a9.738 9.738 0 0 1-3.9-.788 10.099 10.099 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.738 9.738 0 0 1 2 12c0-1.383.263-2.683.788-3.9a10.099 10.099 0 0 1 2.137-3.175c.9-.9 1.958-1.612 3.175-2.137A9.738 9.738 0 0 1 12 2c1.383 0 2.683.263 3.9.788a10.098 10.098 0 0 1 3.175 2.137c.9.9 1.613 1.958 2.137 3.175A9.738 9.738 0 0 1 22 12a9.738 9.738 0 0 1-.788 3.9 10.098 10.098 0 0 1-2.137 3.175c-.9.9-1.958 1.613-3.175 2.137A9.738 9.738 0 0 1 12 22Zm0-2c2.233 0 4.125-.775 5.675-2.325C19.225 16.125 20 14.233 20 12c0-2.233-.775-4.125-2.325-5.675C16.125 4.775 14.233 4 12 4c-2.233 0-4.125.775-5.675 2.325C4.775 7.875 4 9.767 4 12c0 2.233.775 4.125 2.325 5.675C7.875 19.225 9.767 20 12 20Z"})),k=c.forwardRef(z),W=({title:e,titleId:t,...a},n)=>l.createElement("svg",{width:24,height:24,xmlns:"http://www.w3.org/2000/svg",ref:n,"aria-labelledby":t,...a},e?l.createElement("title",{id:t},e):null,l.createElement("path",{d:"M9 16h6c.283 0 .52-.096.713-.287A.968.968 0 0 0 16 15V9a.967.967 0 0 0-.287-.713A.968.968 0 0 0 15 8H9a.968.968 0 0 0-.713.287A.968.968 0 0 0 8 9v6c0 .283.096.52.287.713.192.191.43.287.713.287Zm3 6a9.738 9.738 0 0 1-3.9-.788 10.099 10.099 0 0 1-3.175-2.137c-.9-.9-1.612-1.958-2.137-3.175A9.738 9.738 0 0 1 2 12c0-1.383.263-2.683.788-3.9a10.099 10.099 0 0 1 2.137-3.175c.9-.9 1.958-1.612 3.175-2.137A9.738 9.738 0 0 1 12 2c1.383 0 2.683.263 3.9.788a10.098 10.098 0 0 1 3.175 2.137c.9.9 1.613 1.958 2.137 3.175A9.738 9.738 0 0 1 22 12a9.738 9.738 0 0 1-.788 3.9 10.098 10.098 0 0 1-2.137 3.175c-.9.9-1.958 1.613-3.175 2.137A9.738 9.738 0 0 1 12 22Zm0-2c2.233 0 4.125-.775 5.675-2.325C19.225 16.125 20 14.233 20 12c0-2.233-.775-4.125-2.325-5.675C16.125 4.775 14.233 4 12 4c-2.233 0-4.125.775-5.675 2.325C4.775 7.875 4 9.767 4 12c0 2.233.775 4.125 2.325 5.675C7.875 19.225 9.767 20 12 20Z"})),G=c.forwardRef(W),J=f.observer(({safetyState:e,anchorOrigin:t,transformOrigin:a,compact:n})=>{const{t:o}=d.useTranslation(),s=y.useTheme(),i=c.useId();switch(e){case"SAFETY_STATE_NORMAL":return r.jsx(p,{id:`safety-state-normal-${i}`,title:o("SafetyBar.SafetyState.ti"),name:o("SafetyBar.SafetyState.Normal.lb"),label:n?null:o("SafetyBar.SafetyState.Normal.lb"),icon:k,color:s.palette.text.secondary,explanation:r.jsx(d.Trans,{i18nKey:"SafetyBar.SafetyState.Normal.Explanation.lb",children:"The robot controller is in a normal safety state. Movement is not prevented by this state."}),anchorOrigin:t,transformOrigin:a});case"SAFETY_STATE_DEVICE_EMERGENCY_STOP":case"SAFETY_STATE_ROBOT_EMERGENCY_STOP":return r.jsx(p,{id:`safety-state-estop-${i}`,title:o("SafetyBar.SafetyState.ti"),name:o("SafetyBar.SafetyState.Estop.lb"),label:n?null:o("SafetyBar.SafetyState.Estop.lb"),icon:D,color:s.palette.error.main,explanation:r.jsx(d.Trans,{i18nKey:"SafetyBar.StopState.Estop.Explanation.lb",children:"An emergency stop of the robot controller has been triggered. Movement of the robot is no longer possible until the estop is released."}),literalValue:e,anchorOrigin:t,transformOrigin:a});case"SAFETY_STATE_STOP_0":case"SAFETY_STATE_STOP_1":case"SAFETY_STATE_STOP_2":case"SAFETY_STATE_PROTECTIVE_STOP":case"SAFETY_STATE_STOP":return r.jsx(p,{id:`safety-state-stop-${i}`,icon:G,title:o("SafetyBar.SafetyState.ti"),name:o("SafetyBar.SafetyState.Stop.lb"),label:n?null:o("SafetyBar.SafetyState.Stop.lb"),color:s.palette.warning.main,explanation:r.jsx(d.Trans,{i18nKey:"SafetyBar.SafetyState.Stop.Explanation.lb",children:"The robot controller has entered a stop state. Movement is no longer possible until the stop state is resolved."}),literalValue:e,anchorOrigin:t,transformOrigin:a});case"SAFETY_STATE_REDUCED":case"SAFETY_STATE_MASTERING":case"SAFETY_STATE_CONFIRM_SAFETY":case"SAFETY_STATE_OPERATOR_SAFETY":case"SAFETY_STATE_RECOVERY":case"SAFETY_STATE_VIOLATION":return r.jsx(p,{id:`safety-state-manual-action-required-${i}`,icon:U,color:s.palette.warning.main,title:o("SafetyBar.SafetyState.ti"),name:o("SafetyBar.SafetyState.ManualActionRequired.lb"),label:n?null:o("SafetyBar.SafetyState.ManualActionRequired.lb"),explanation:r.jsx(d.Trans,{i18nKey:"SafetyBar.SafetyState.ManualActionRequired.Explanation.lb",children:"The robot controller has entered a safety state requiring manual action to resolve."}),literalValue:e,anchorOrigin:t,transformOrigin:a});case"SAFETY_STATE_UNKNOWN":case"SAFETY_STATE_FAULT":return r.jsx(p,{id:`safety-state-error-${i}`,icon:I,color:s.palette.error.main,title:o("SafetyBar.SafetyState.ti"),name:o("SafetyBar.SafetyState.Error.lb"),label:n?null:o("SafetyBar.SafetyState.Error.lb"),explanation:r.jsx(d.Trans,{i18nKey:"SafetyBar.SafetyState.Error.Explanation.lb",children:"The robot controller has entered an unexpected safety state."}),literalValue:e,anchorOrigin:t,transformOrigin:a});default:_(e,`Unknown safety state ${e}`)}}),Q=x.externalizeComponent(f.observer(({isVirtual:e,motionGroupId:t,operationMode:a,safetyState:n,anchorOrigin:o,transformOrigin:s,compact:i=!0})=>{const S=i?1:2;return r.jsxs(E,{direction:"row",gap:S,alignItems:"center",sx:{height:"24px"},children:[r.jsx(J,{safetyState:n,anchorOrigin:o,transformOrigin:s,compact:i}),r.jsx(m,{orientation:"vertical",flexItem:!0}),r.jsx(q,{operationMode:a,anchorOrigin:o,transformOrigin:s,compact:i}),r.jsx(m,{orientation:"vertical",flexItem:!0}),r.jsx(Z,{isVirtual:e,motionGroupId:t,anchorOrigin:o,transformOrigin:s,compact:i})]})}));exports.SafetyBar=Q;exports.makeErrorMessage=R;
|
|
@@ -1,268 +0,0 @@
|
|
|
1
|
-
import * as a from "three";
|
|
2
|
-
import { jsx as g } from "react/jsx-runtime";
|
|
3
|
-
import { memo as d } from "react";
|
|
4
|
-
import { I18nextProvider as m } from "react-i18next";
|
|
5
|
-
import p from "i18next";
|
|
6
|
-
import y from "i18next-browser-languagedetector";
|
|
7
|
-
function B(e) {
|
|
8
|
-
try {
|
|
9
|
-
return JSON.stringify(e);
|
|
10
|
-
} catch {
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
function E(e) {
|
|
15
|
-
const t = e.length(), n = new a.Quaternion();
|
|
16
|
-
if (t > 1e-6) {
|
|
17
|
-
const o = e.clone().normalize();
|
|
18
|
-
n.setFromAxisAngle(o, t);
|
|
19
|
-
}
|
|
20
|
-
return n;
|
|
21
|
-
}
|
|
22
|
-
function A(e) {
|
|
23
|
-
if (!e || e.length === 0)
|
|
24
|
-
return 5;
|
|
25
|
-
const o = e.reduce((l, i) => l + Math.abs(i.a ?? 0) / 1e3 + Math.abs(i.d ?? 0) / 1e3, 0) * 2;
|
|
26
|
-
return !Number.isFinite(o) || o <= 0 ? 5 : o;
|
|
27
|
-
}
|
|
28
|
-
function M(e) {
|
|
29
|
-
if (e.length < 3)
|
|
30
|
-
return console.log("Not enough vertices to define a plane"), { isCoplanar: !1 };
|
|
31
|
-
const t = new a.Vector3(e[0].x, e[0].y, e[0].z), n = new a.Vector3(e[1].x, e[1].y, e[1].z), o = new a.Vector3(e[2].x, e[2].y, e[2].z), l = new a.Vector3().subVectors(n, t), i = new a.Vector3().subVectors(o, t), s = new a.Vector3().crossVectors(l, i).normalize();
|
|
32
|
-
for (let r = 3; r < e.length; r++) {
|
|
33
|
-
const c = new a.Vector3(e[r].x, e[r].y, e[r].z), b = new a.Vector3().subVectors(c, t), u = s.dot(b);
|
|
34
|
-
if (Math.abs(u) > 1e-6)
|
|
35
|
-
return console.log("Vertices are not on the same plane"), { isCoplanar: !1 };
|
|
36
|
-
}
|
|
37
|
-
return { isCoplanar: !0, normal: s };
|
|
38
|
-
}
|
|
39
|
-
const f = {
|
|
40
|
-
"Jogging.Cartesian.Translation.velocityMmPerSec.lb": "{{amount}} mm/s",
|
|
41
|
-
"Jogging.Cartesian.Rotation.velocityDegPerSec.lb": "{{amount}}°/s",
|
|
42
|
-
"Jogging.Velocity.lb": "Geschwindigkeit",
|
|
43
|
-
"General.degree.variable": "{{amount}}°",
|
|
44
|
-
"General.mm.variable": "{{amount}} mm",
|
|
45
|
-
"Jogging.Blocked.ti": "Verbindung blockiert",
|
|
46
|
-
"Jogging.Blocked.lb": "Ein anderer Client kontrolliert das Jogging.",
|
|
47
|
-
"Jogging.Blocked.Reenable.bt": "Neu verbinden",
|
|
48
|
-
"Jogging.Cartesian.MotionType.lb": "Bewegungstyp",
|
|
49
|
-
"Jogging.Cartesian.Translation.bt": "Translation",
|
|
50
|
-
"Jogging.Cartesian.Rotation.bt": "Rotation",
|
|
51
|
-
"Jogging.Joints.JointValues.lb": "Gelenkwerte",
|
|
52
|
-
"Jogging.Increment.Continuous.dd": "Fortlaufend",
|
|
53
|
-
"Jogging.Cartesian.Orientation.lb": "Orientierung",
|
|
54
|
-
"Jogging.JointLimitsReached.lb": "Gelenkgrenzen für Gelenk {{jointNumbers}} erreicht",
|
|
55
|
-
"Jogging.Orientation.coordsys": "Roboterbasis",
|
|
56
|
-
"Jogging.Orientation.tool": "Werkzeug",
|
|
57
|
-
"Jogging.StreamStateSection.lb": "Status Stream:",
|
|
58
|
-
"Jogging.StreamStateSection.RUNNING.lb": "In Bewegung",
|
|
59
|
-
"Jogging.StreamStateSection.PAUSED_BY_USER.lb": "Pausiert (Nutzer)",
|
|
60
|
-
"Jogging.StreamStateSection.PAUSED_NEAR_COLLISION.lb": "Pausiert (Kollisionsnähe)",
|
|
61
|
-
"Jogging.StreamStateSection.PAUSED_NEAR_JOINT_LIMIT.lb": "Pausiert (nahe Gelenkgrenze)",
|
|
62
|
-
"Jogging.StreamStateSection.PAUSED_NEAR_SINGULARITY.lb": "Pausiert (nahe Singularität)",
|
|
63
|
-
"Jogging.StreamStateSection.PAUSED_ON_IO.lb": "Pausiert (I/O-Ereignis)",
|
|
64
|
-
"Jogging.StreamStateSection.END_OF_TRAJECTORY.lb": "Trajektorie beendet",
|
|
65
|
-
"Jogging.StreamStateSection.WAIT_FOR_IO.lb": "Warte auf I/O",
|
|
66
|
-
"Jogging.StreamStateSection.KIND_UNKNOWN.lb": "Bereit",
|
|
67
|
-
"SafetyBar.ActivationToggle.Activate.bt": "Aktivieren",
|
|
68
|
-
"SafetyBar.ActivationToggle.Activated.bt": "Aktiviert",
|
|
69
|
-
"SafetyBar.ActivationToggle.Activating.bt": "Wird aktiviert…",
|
|
70
|
-
"SafetyBar.ActivationToggle.Deactivating.bt": "Wird deaktiviert…",
|
|
71
|
-
"SafetyBar.ControllerType.Physical.lb": "Physisch",
|
|
72
|
-
"SafetyBar.ControllerType.Virtual.lb": "Virtuell",
|
|
73
|
-
"SafetyBar.MotionGroup.Physical.Explanation.lb": "<code>{{motionGroupId}}</code> ist ein physische Robotersteuerung. Für die Bewegung dieses Roboters sind <strong>Sicherheitsmaßnahmen</strong> aktiv.",
|
|
74
|
-
"SafetyBar.MotionGroup.Virtual.Explanation.lb": "<1>{{motionGroupId}}</1> ist eine virtuelle Robotersteuerung ohne physisches Gegenstück. Der Roboter kann ohne Sicherheitsmaßnahmen bewegt werden.",
|
|
75
|
-
"SafetyBar.OperationMode.Auto.Explanation.lb": "Automatischer Betriebsmodus der Robotersteuerung aktiv. Automatisierte Bewegung ohne manuelle Bestätigung freigegeben.",
|
|
76
|
-
"SafetyBar.OperationMode.Automatic.ti": "Automatisch",
|
|
77
|
-
"SafetyBar.OperationMode.Error.Explanation.lb": "Fehler beim Abrufen des Betriebsmodus. Originalhandbediengerät des Roboters verwenden, um Fehler zu lösen.",
|
|
78
|
-
"SafetyBar.OperationMode.Error.lb": "Fehler",
|
|
79
|
-
"SafetyBar.OperationMode.Manual.Explanation.lb": `Die Robotersteuerung befindet sich im manuellen Betriebsmodus.
|
|
80
|
-
Bei einem physischen Roboter bedeutet dies im Allgemeinen, dass ein Freigabeschalter gedrückt werden muss, damit sich der Roboter erfolgreich bewegen kann.`,
|
|
81
|
-
"SafetyBar.OperationMode.Manual.lb": "Manuell",
|
|
82
|
-
"SafetyBar.OperationMode.ti": "Betriebsmodus",
|
|
83
|
-
"SafetyBar.SafetyState.Error.Explanation.lb": "Die Robotersteuerung ist in einen unerwarteten Sicherheitszustand eingetreten.",
|
|
84
|
-
"SafetyBar.SafetyState.Error.lb": "Fehler",
|
|
85
|
-
"SafetyBar.SafetyState.Estop.lb": "NOT-AUS",
|
|
86
|
-
"SafetyBar.SafetyState.ManualActionRequired.Explanation.lb": "Die Robotersteuerung ist in einen Sicherheitszustand eingetreten, der manuelle Maßnahmen zur Behebung erfordert.",
|
|
87
|
-
"SafetyBar.SafetyState.ManualActionRequired.lb": "Aktion erforderlich",
|
|
88
|
-
"SafetyBar.SafetyState.Normal.Explanation.lb": "Die Robotersteuerung befindet sich in einem sicheren Zustand. Roboterbewegungen sind möglich.",
|
|
89
|
-
"SafetyBar.SafetyState.Normal.lb": "Sicher",
|
|
90
|
-
"SafetyBar.SafetyState.Stop.Explanation.lb": "Die Robotersteuerung ist in einen Stoppzustand übergegangen. Bis der Stoppzustand aufgelöst ist, ist keine Bewegung mehr möglich.",
|
|
91
|
-
"SafetyBar.SafetyState.Stop.lb": "Stopp",
|
|
92
|
-
"SafetyBar.SafetyState.ti": "Sicherheitszustand",
|
|
93
|
-
"SafetyBar.StopState.Estop.Explanation.lb": "NOT-AUS aktiviert. NOT-AUS freischalten, um Roboter zu bewegen.",
|
|
94
|
-
"Jogging.Increment.hlb": "Schrittgröße",
|
|
95
|
-
"Jogging.CoordinateSystem.hlb": "Koordinatensystem",
|
|
96
|
-
"Jogging.Cartesian.bt": "Kartesisch",
|
|
97
|
-
"Jogging.Joints.bt": "Gelenke",
|
|
98
|
-
"Jogging.Velocity.bt": "Geschwindigkeit",
|
|
99
|
-
"CycleTimer.RemainingTime.lb": "Verbleibende Zeit",
|
|
100
|
-
"CycleTimer.OfTime.lb": "von {{time}}",
|
|
101
|
-
"CycleTimer.Time.lb": "{{time}}",
|
|
102
|
-
"CycleTimer.Error.lb": "Fehler",
|
|
103
|
-
"CycleTimer.WaitingForCycle.lb": "Warten auf Programmzyklus",
|
|
104
|
-
"CycleTimer.CycleTime.lb": "Zykluszeit",
|
|
105
|
-
"CycleTimer.Measuring.lb": "wird gemessen...",
|
|
106
|
-
"CycleTimer.Determined.lb": "bestimmt",
|
|
107
|
-
"Timer.error": "Fehler",
|
|
108
|
-
"ProgramControl.Start.bt": "Start",
|
|
109
|
-
"ProgramControl.Resume.bt": "Weiter",
|
|
110
|
-
"ProgramControl.Retry.bt": "Wiederholen",
|
|
111
|
-
"ProgramControl.Pause.bt": "Pause",
|
|
112
|
-
"ProgramControl.Stop.bt": "Stopp",
|
|
113
|
-
"ProgramStateIndicator.Preparing.lb": "Vorbereitung",
|
|
114
|
-
"ProgramStateIndicator.Starting.lb": "Startet",
|
|
115
|
-
"ProgramStateIndicator.Running.lb": "In Betrieb",
|
|
116
|
-
"ProgramStateIndicator.Pausing.lb": "Pausiert",
|
|
117
|
-
"ProgramStateIndicator.Stopping.lb": "Stoppt",
|
|
118
|
-
"ProgramStateIndicator.Completed.lb": "Abgeschlossen",
|
|
119
|
-
"ProgramStateIndicator.Failed.lb": "Fehlgeschlagen",
|
|
120
|
-
"ProgramStateIndicator.Error.lb": "Fehler",
|
|
121
|
-
"ProgramStateIndicator.EStop.lb": "Not-Aus",
|
|
122
|
-
"ProgramStateIndicator.Idle.lb": "Leerlauf",
|
|
123
|
-
"ProgramStateIndicator.Paused.lb": "Pausiert",
|
|
124
|
-
"ProgramStateIndicator.Ready.lb": "Bereit",
|
|
125
|
-
"ProgramStateIndicator.Stopped.lb": "Gestoppt",
|
|
126
|
-
"ProgramStateIndicator.Auto.lb": "Auto",
|
|
127
|
-
"ProgramStateIndicator.Manual.lb": "Manuell",
|
|
128
|
-
"ProgramStateIndicator.ManualT1.lb": "Manuell T1",
|
|
129
|
-
"ProgramStateIndicator.ManualT2.lb": "Manuell T2",
|
|
130
|
-
"RobotSetupReadinessIndicator.Ready.lb": "Bereit",
|
|
131
|
-
"RobotSetupReadinessIndicator.RobotDisconnected.lb": "Roboter getrennt",
|
|
132
|
-
"RobotSetupReadinessIndicator.CellOpen.lb": "Zelle offen",
|
|
133
|
-
"RobotSetupReadinessIndicator.EStop.lb": "Not-Stopp",
|
|
134
|
-
"RobotSetupReadinessIndicator.ManualMode.lb": "Manueller Modus",
|
|
135
|
-
"RobotSetupReadinessIndicator.PreconditionNotFulfilled.lb": "Voraussetzung nicht erfüllt",
|
|
136
|
-
"RobotCard.Runtime.lb": "Laufzeit",
|
|
137
|
-
"RobotCard.DriveToHome.bt": "Zur Home-Position fahren"
|
|
138
|
-
}, h = {
|
|
139
|
-
"Jogging.Cartesian.Translation.velocityMmPerSec.lb": "{{amount}} mm/s",
|
|
140
|
-
"Jogging.Cartesian.Rotation.velocityDegPerSec.lb": "{{amount}}°/s",
|
|
141
|
-
"Jogging.Velocity.lb": "Velocity",
|
|
142
|
-
"General.degree.variable": "{{amount}}°",
|
|
143
|
-
"General.mm.variable": "{{amount}} mm",
|
|
144
|
-
"Jogging.Blocked.ti": "Connection blocked",
|
|
145
|
-
"Jogging.Blocked.lb": "Another client is currently controlling the jogging.",
|
|
146
|
-
"Jogging.Blocked.Reenable.bt": "Reconnect",
|
|
147
|
-
"Jogging.Cartesian.MotionType.lb": "Motion type",
|
|
148
|
-
"Jogging.Cartesian.Translation.bt": "Translation",
|
|
149
|
-
"Jogging.Cartesian.Rotation.bt": "Rotation",
|
|
150
|
-
"Jogging.Joints.JointValues.lb": "Joint values",
|
|
151
|
-
"Jogging.Increment.Continuous.dd": "Continuous",
|
|
152
|
-
"Jogging.Cartesian.Orientation.lb": "Orientation",
|
|
153
|
-
"Jogging.Activating.lb": "Activating jogging",
|
|
154
|
-
"Jogging.JointLimitsReached.lb": "Joint limit reached for joint {{jointNumbers}}",
|
|
155
|
-
"Jogging.Orientation.coordsys": "Robot base",
|
|
156
|
-
"Jogging.Orientation.tool": "Tool",
|
|
157
|
-
"Jogging.StreamStateSection.lb": "State stream:",
|
|
158
|
-
"Jogging.StreamStateSection.RUNNING.lb": "Running",
|
|
159
|
-
"Jogging.StreamStateSection.PAUSED_BY_USER.lb": "Paused (by user)",
|
|
160
|
-
"Jogging.StreamStateSection.PAUSED_NEAR_COLLISION.lb": "Paused (collision proximity)",
|
|
161
|
-
"Jogging.StreamStateSection.PAUSED_NEAR_JOINT_LIMIT.lb": "Paused (near joint limit)",
|
|
162
|
-
"Jogging.StreamStateSection.PAUSED_NEAR_SINGULARITY.lb": "Paused (near singularity)",
|
|
163
|
-
"Jogging.StreamStateSection.PAUSED_ON_IO.lb": "Paused (I/O event)",
|
|
164
|
-
"Jogging.StreamStateSection.END_OF_TRAJECTORY.lb": "End of trajectory",
|
|
165
|
-
"Jogging.StreamStateSection.WAIT_FOR_IO.lb": "Waiting for I/O",
|
|
166
|
-
"Jogging.StreamStateSection.KIND_UNKNOWN.lb": "Ready",
|
|
167
|
-
"SafetyBar.ActivationToggle.Activate.bt": "Activate",
|
|
168
|
-
"SafetyBar.ActivationToggle.Activated.bt": "Activated",
|
|
169
|
-
"SafetyBar.ActivationToggle.Activating.bt": "Activating",
|
|
170
|
-
"SafetyBar.ActivationToggle.Deactivating.bt": "Deactivating",
|
|
171
|
-
"SafetyBar.ControllerType.Physical.lb": "Physical",
|
|
172
|
-
"SafetyBar.ControllerType.Virtual.lb": "Virtual",
|
|
173
|
-
"SafetyBar.MotionGroup.Physical.Explanation.lb": "<code>{{motionGroupId}}</code> is a physical robot controller. <strong>Safety precautions</strong> are active for the movement of this robot.",
|
|
174
|
-
"SafetyBar.MotionGroup.Virtual.Explanation.lb": "<1>{{motionGroupId}}</1> is a virtual robot controller with no physical counterpart. It can be freely manipulated without safety precautions.",
|
|
175
|
-
"SafetyBar.OperationMode.Auto.Explanation.lb": "Automatic operation mode active. Automated movement without manual confirmation enabled.",
|
|
176
|
-
"SafetyBar.OperationMode.Automatic.ti": "Automatic",
|
|
177
|
-
"SafetyBar.OperationMode.Error.Explanation.lb": "Failed to get operation mode. Use the original control panel to resolve the error.",
|
|
178
|
-
"SafetyBar.OperationMode.Error.lb": "Error",
|
|
179
|
-
"SafetyBar.OperationMode.Manual.Explanation.lb": "The robot controller is in manual operation mode. On a physical robot, this generally indicates that an enabling switch must be held for the robot to move successfully.",
|
|
180
|
-
"SafetyBar.OperationMode.Manual.lb": "Manual",
|
|
181
|
-
"SafetyBar.OperationMode.ti": "Operation mode",
|
|
182
|
-
"SafetyBar.SafetyState.Error.Explanation.lb": "The robot controller has entered an unexpected safety state.",
|
|
183
|
-
"SafetyBar.SafetyState.Error.lb": "Error",
|
|
184
|
-
"SafetyBar.SafetyState.Estop.lb": "E-Stop",
|
|
185
|
-
"SafetyBar.SafetyState.ManualActionRequired.Explanation.lb": "The robot controller has entered a safety state requiring manual action to resolve.",
|
|
186
|
-
"SafetyBar.SafetyState.ManualActionRequired.lb": "Action required",
|
|
187
|
-
"SafetyBar.SafetyState.Normal.Explanation.lb": "The robot controller is in a safe state. Robot movement is enabled.",
|
|
188
|
-
"SafetyBar.SafetyState.Normal.lb": "Safe",
|
|
189
|
-
"SafetyBar.SafetyState.Stop.Explanation.lb": "The robot controller has entered a stop state. Movement is no longer possible until the stop state is resolved.",
|
|
190
|
-
"SafetyBar.SafetyState.Stop.lb": "Stop",
|
|
191
|
-
"SafetyBar.SafetyState.ti": "Safety state",
|
|
192
|
-
"SafetyBar.StopState.Estop.Explanation.lb": "An emergency stop of the robot controller has been triggered. Movement of the robot is no longer possible until the estop is released.",
|
|
193
|
-
"Jogging.Increment.hlb": "Increment",
|
|
194
|
-
"Jogging.CoordinateSystem.hlb": "Coordinate system",
|
|
195
|
-
"Jogging.Cartesian.bt": "Cartesian",
|
|
196
|
-
"Jogging.Joints.bt": "Joints",
|
|
197
|
-
"Jogging.Velocity.bt": "Velocity",
|
|
198
|
-
"CycleTimer.RemainingTime.lb": "Time remaining",
|
|
199
|
-
"CycleTimer.OfTime.lb": "of {{time}}",
|
|
200
|
-
"CycleTimer.Time.lb": "{{time}}",
|
|
201
|
-
"CycleTimer.Error.lb": "Error",
|
|
202
|
-
"CycleTimer.WaitingForCycle.lb": "Waiting for program cycle",
|
|
203
|
-
"CycleTimer.CycleTime.lb": "Cycle Time",
|
|
204
|
-
"CycleTimer.Measuring.lb": "measuring...",
|
|
205
|
-
"CycleTimer.Determined.lb": "determined",
|
|
206
|
-
"Timer.error": "Error",
|
|
207
|
-
"ProgramControl.Start.bt": "Start",
|
|
208
|
-
"ProgramControl.Resume.bt": "Resume",
|
|
209
|
-
"ProgramControl.Retry.bt": "Retry",
|
|
210
|
-
"ProgramControl.Pause.bt": "Pause",
|
|
211
|
-
"ProgramControl.Stop.bt": "Stop",
|
|
212
|
-
"ProgramStateIndicator.Preparing.lb": "Preparing",
|
|
213
|
-
"ProgramStateIndicator.Starting.lb": "Starting",
|
|
214
|
-
"ProgramStateIndicator.Running.lb": "Running",
|
|
215
|
-
"ProgramStateIndicator.Pausing.lb": "Pausing",
|
|
216
|
-
"ProgramStateIndicator.Stopping.lb": "Stopping",
|
|
217
|
-
"ProgramStateIndicator.Completed.lb": "Completed",
|
|
218
|
-
"ProgramStateIndicator.Failed.lb": "Failed",
|
|
219
|
-
"ProgramStateIndicator.Error.lb": "Error",
|
|
220
|
-
"ProgramStateIndicator.EStop.lb": "E-Stop",
|
|
221
|
-
"ProgramStateIndicator.Idle.lb": "Idle",
|
|
222
|
-
"ProgramStateIndicator.Paused.lb": "Paused",
|
|
223
|
-
"ProgramStateIndicator.Ready.lb": "Ready",
|
|
224
|
-
"ProgramStateIndicator.Stopped.lb": "Stopped",
|
|
225
|
-
"ProgramStateIndicator.Auto.lb": "Auto",
|
|
226
|
-
"ProgramStateIndicator.Manual.lb": "Manual",
|
|
227
|
-
"ProgramStateIndicator.ManualT1.lb": "Manual T1",
|
|
228
|
-
"ProgramStateIndicator.ManualT2.lb": "Manual T2",
|
|
229
|
-
"RobotSetupReadinessIndicator.Ready.lb": "Ready",
|
|
230
|
-
"RobotSetupReadinessIndicator.RobotDisconnected.lb": "Robot disconnected",
|
|
231
|
-
"RobotSetupReadinessIndicator.CellOpen.lb": "Cell open",
|
|
232
|
-
"RobotSetupReadinessIndicator.EStop.lb": "E-Stop",
|
|
233
|
-
"RobotSetupReadinessIndicator.ManualMode.lb": "Manual mode",
|
|
234
|
-
"RobotSetupReadinessIndicator.PreconditionNotFulfilled.lb": "Precondition not fulfilled",
|
|
235
|
-
"RobotCard.Runtime.lb": "Runtime",
|
|
236
|
-
"RobotCard.DriveToHome.bt": "Drive to Home"
|
|
237
|
-
}, S = p.createInstance();
|
|
238
|
-
S.use(y).init({
|
|
239
|
-
supportedLngs: ["en", "de"],
|
|
240
|
-
resources: {
|
|
241
|
-
en: {
|
|
242
|
-
translations: h
|
|
243
|
-
},
|
|
244
|
-
de: {
|
|
245
|
-
translations: f
|
|
246
|
-
}
|
|
247
|
-
},
|
|
248
|
-
ns: ["translations"],
|
|
249
|
-
defaultNS: "translations",
|
|
250
|
-
detection: {
|
|
251
|
-
order: ["navigator", "htmlTag"]
|
|
252
|
-
}
|
|
253
|
-
});
|
|
254
|
-
function v(e) {
|
|
255
|
-
const t = d(e);
|
|
256
|
-
return ((o) => /* @__PURE__ */ g(R, { children: /* @__PURE__ */ g(t, { ...o }) }));
|
|
257
|
-
}
|
|
258
|
-
const R = ({
|
|
259
|
-
children: e
|
|
260
|
-
}) => /* @__PURE__ */ g(m, { i18n: S, children: e });
|
|
261
|
-
export {
|
|
262
|
-
A as d,
|
|
263
|
-
v as e,
|
|
264
|
-
S as i,
|
|
265
|
-
E as o,
|
|
266
|
-
B as t,
|
|
267
|
-
M as v
|
|
268
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";const d=require("three"),g=require("react/jsx-runtime"),m=require("react"),y=require("react-i18next"),p=require("i18next"),f=require("i18next-browser-languagedetector");function h(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const o=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,o.get?o:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const n=h(d);function R(e){try{return JSON.stringify(e)}catch{return}}function P(e){const t=e.length(),a=new n.Quaternion;if(t>1e-6){const o=e.clone().normalize();a.setFromAxisAngle(o,t)}return a}function I(e){if(!e||e.length===0)return 5;const o=e.reduce((l,i)=>l+Math.abs(i.a??0)/1e3+Math.abs(i.d??0)/1e3,0)*2;return!Number.isFinite(o)||o<=0?5:o}function T(e){if(e.length<3)return console.log("Not enough vertices to define a plane"),{isCoplanar:!1};const t=new n.Vector3(e[0].x,e[0].y,e[0].z),a=new n.Vector3(e[1].x,e[1].y,e[1].z),o=new n.Vector3(e[2].x,e[2].y,e[2].z),l=new n.Vector3().subVectors(a,t),i=new n.Vector3().subVectors(o,t),c=new n.Vector3().crossVectors(l,i).normalize();for(let r=3;r<e.length;r++){const S=new n.Vector3(e[r].x,e[r].y,e[r].z),b=new n.Vector3().subVectors(S,t),u=c.dot(b);if(Math.abs(u)>1e-6)return console.log("Vertices are not on the same plane"),{isCoplanar:!1}}return{isCoplanar:!0,normal:c}}const C={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Geschwindigkeit","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}} mm","Jogging.Blocked.ti":"Verbindung blockiert","Jogging.Blocked.lb":"Ein anderer Client kontrolliert das Jogging.","Jogging.Blocked.Reenable.bt":"Neu verbinden","Jogging.Cartesian.MotionType.lb":"Bewegungstyp","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Gelenkwerte","Jogging.Increment.Continuous.dd":"Fortlaufend","Jogging.Cartesian.Orientation.lb":"Orientierung","Jogging.JointLimitsReached.lb":"Gelenkgrenzen für Gelenk {{jointNumbers}} erreicht","Jogging.Orientation.coordsys":"Roboterbasis","Jogging.Orientation.tool":"Werkzeug","Jogging.StreamStateSection.lb":"Status Stream:","Jogging.StreamStateSection.RUNNING.lb":"In Bewegung","Jogging.StreamStateSection.PAUSED_BY_USER.lb":"Pausiert (Nutzer)","Jogging.StreamStateSection.PAUSED_NEAR_COLLISION.lb":"Pausiert (Kollisionsnähe)","Jogging.StreamStateSection.PAUSED_NEAR_JOINT_LIMIT.lb":"Pausiert (nahe Gelenkgrenze)","Jogging.StreamStateSection.PAUSED_NEAR_SINGULARITY.lb":"Pausiert (nahe Singularität)","Jogging.StreamStateSection.PAUSED_ON_IO.lb":"Pausiert (I/O-Ereignis)","Jogging.StreamStateSection.END_OF_TRAJECTORY.lb":"Trajektorie beendet","Jogging.StreamStateSection.WAIT_FOR_IO.lb":"Warte auf I/O","Jogging.StreamStateSection.KIND_UNKNOWN.lb":"Bereit","SafetyBar.ActivationToggle.Activate.bt":"Aktivieren","SafetyBar.ActivationToggle.Activated.bt":"Aktiviert","SafetyBar.ActivationToggle.Activating.bt":"Wird aktiviert…","SafetyBar.ActivationToggle.Deactivating.bt":"Wird deaktiviert…","SafetyBar.ControllerType.Physical.lb":"Physisch","SafetyBar.ControllerType.Virtual.lb":"Virtuell","SafetyBar.MotionGroup.Physical.Explanation.lb":"<code>{{motionGroupId}}</code> ist ein physische Robotersteuerung. Für die Bewegung dieses Roboters sind <strong>Sicherheitsmaßnahmen</strong> aktiv.","SafetyBar.MotionGroup.Virtual.Explanation.lb":"<1>{{motionGroupId}}</1> ist eine virtuelle Robotersteuerung ohne physisches Gegenstück. Der Roboter kann ohne Sicherheitsmaßnahmen bewegt werden.","SafetyBar.OperationMode.Auto.Explanation.lb":"Automatischer Betriebsmodus der Robotersteuerung aktiv. Automatisierte Bewegung ohne manuelle Bestätigung freigegeben.","SafetyBar.OperationMode.Automatic.ti":"Automatisch","SafetyBar.OperationMode.Error.Explanation.lb":"Fehler beim Abrufen des Betriebsmodus. Originalhandbediengerät des Roboters verwenden, um Fehler zu lösen.","SafetyBar.OperationMode.Error.lb":"Fehler","SafetyBar.OperationMode.Manual.Explanation.lb":`Die Robotersteuerung befindet sich im manuellen Betriebsmodus.
|
|
2
|
-
Bei einem physischen Roboter bedeutet dies im Allgemeinen, dass ein Freigabeschalter gedrückt werden muss, damit sich der Roboter erfolgreich bewegen kann.`,"SafetyBar.OperationMode.Manual.lb":"Manuell","SafetyBar.OperationMode.ti":"Betriebsmodus","SafetyBar.SafetyState.Error.Explanation.lb":"Die Robotersteuerung ist in einen unerwarteten Sicherheitszustand eingetreten.","SafetyBar.SafetyState.Error.lb":"Fehler","SafetyBar.SafetyState.Estop.lb":"NOT-AUS","SafetyBar.SafetyState.ManualActionRequired.Explanation.lb":"Die Robotersteuerung ist in einen Sicherheitszustand eingetreten, der manuelle Maßnahmen zur Behebung erfordert.","SafetyBar.SafetyState.ManualActionRequired.lb":"Aktion erforderlich","SafetyBar.SafetyState.Normal.Explanation.lb":"Die Robotersteuerung befindet sich in einem sicheren Zustand. Roboterbewegungen sind möglich.","SafetyBar.SafetyState.Normal.lb":"Sicher","SafetyBar.SafetyState.Stop.Explanation.lb":"Die Robotersteuerung ist in einen Stoppzustand übergegangen. Bis der Stoppzustand aufgelöst ist, ist keine Bewegung mehr möglich.","SafetyBar.SafetyState.Stop.lb":"Stopp","SafetyBar.SafetyState.ti":"Sicherheitszustand","SafetyBar.StopState.Estop.Explanation.lb":"NOT-AUS aktiviert. NOT-AUS freischalten, um Roboter zu bewegen.","Jogging.Increment.hlb":"Schrittgröße","Jogging.CoordinateSystem.hlb":"Koordinatensystem","Jogging.Cartesian.bt":"Kartesisch","Jogging.Joints.bt":"Gelenke","Jogging.Velocity.bt":"Geschwindigkeit","CycleTimer.RemainingTime.lb":"Verbleibende Zeit","CycleTimer.OfTime.lb":"von {{time}}","CycleTimer.Time.lb":"{{time}}","CycleTimer.Error.lb":"Fehler","CycleTimer.WaitingForCycle.lb":"Warten auf Programmzyklus","CycleTimer.CycleTime.lb":"Zykluszeit","CycleTimer.Measuring.lb":"wird gemessen...","CycleTimer.Determined.lb":"bestimmt","Timer.error":"Fehler","ProgramControl.Start.bt":"Start","ProgramControl.Resume.bt":"Weiter","ProgramControl.Retry.bt":"Wiederholen","ProgramControl.Pause.bt":"Pause","ProgramControl.Stop.bt":"Stopp","ProgramStateIndicator.Preparing.lb":"Vorbereitung","ProgramStateIndicator.Starting.lb":"Startet","ProgramStateIndicator.Running.lb":"In Betrieb","ProgramStateIndicator.Pausing.lb":"Pausiert","ProgramStateIndicator.Stopping.lb":"Stoppt","ProgramStateIndicator.Completed.lb":"Abgeschlossen","ProgramStateIndicator.Failed.lb":"Fehlgeschlagen","ProgramStateIndicator.Error.lb":"Fehler","ProgramStateIndicator.EStop.lb":"Not-Aus","ProgramStateIndicator.Idle.lb":"Leerlauf","ProgramStateIndicator.Paused.lb":"Pausiert","ProgramStateIndicator.Ready.lb":"Bereit","ProgramStateIndicator.Stopped.lb":"Gestoppt","ProgramStateIndicator.Auto.lb":"Auto","ProgramStateIndicator.Manual.lb":"Manuell","ProgramStateIndicator.ManualT1.lb":"Manuell T1","ProgramStateIndicator.ManualT2.lb":"Manuell T2","RobotSetupReadinessIndicator.Ready.lb":"Bereit","RobotSetupReadinessIndicator.RobotDisconnected.lb":"Roboter getrennt","RobotSetupReadinessIndicator.CellOpen.lb":"Zelle offen","RobotSetupReadinessIndicator.EStop.lb":"Not-Stopp","RobotSetupReadinessIndicator.ManualMode.lb":"Manueller Modus","RobotSetupReadinessIndicator.PreconditionNotFulfilled.lb":"Voraussetzung nicht erfüllt","RobotCard.Runtime.lb":"Laufzeit","RobotCard.DriveToHome.bt":"Zur Home-Position fahren"},J={"Jogging.Cartesian.Translation.velocityMmPerSec.lb":"{{amount}} mm/s","Jogging.Cartesian.Rotation.velocityDegPerSec.lb":"{{amount}}°/s","Jogging.Velocity.lb":"Velocity","General.degree.variable":"{{amount}}°","General.mm.variable":"{{amount}} mm","Jogging.Blocked.ti":"Connection blocked","Jogging.Blocked.lb":"Another client is currently controlling the jogging.","Jogging.Blocked.Reenable.bt":"Reconnect","Jogging.Cartesian.MotionType.lb":"Motion type","Jogging.Cartesian.Translation.bt":"Translation","Jogging.Cartesian.Rotation.bt":"Rotation","Jogging.Joints.JointValues.lb":"Joint values","Jogging.Increment.Continuous.dd":"Continuous","Jogging.Cartesian.Orientation.lb":"Orientation","Jogging.Activating.lb":"Activating jogging","Jogging.JointLimitsReached.lb":"Joint limit reached for joint {{jointNumbers}}","Jogging.Orientation.coordsys":"Robot base","Jogging.Orientation.tool":"Tool","Jogging.StreamStateSection.lb":"State stream:","Jogging.StreamStateSection.RUNNING.lb":"Running","Jogging.StreamStateSection.PAUSED_BY_USER.lb":"Paused (by user)","Jogging.StreamStateSection.PAUSED_NEAR_COLLISION.lb":"Paused (collision proximity)","Jogging.StreamStateSection.PAUSED_NEAR_JOINT_LIMIT.lb":"Paused (near joint limit)","Jogging.StreamStateSection.PAUSED_NEAR_SINGULARITY.lb":"Paused (near singularity)","Jogging.StreamStateSection.PAUSED_ON_IO.lb":"Paused (I/O event)","Jogging.StreamStateSection.END_OF_TRAJECTORY.lb":"End of trajectory","Jogging.StreamStateSection.WAIT_FOR_IO.lb":"Waiting for I/O","Jogging.StreamStateSection.KIND_UNKNOWN.lb":"Ready","SafetyBar.ActivationToggle.Activate.bt":"Activate","SafetyBar.ActivationToggle.Activated.bt":"Activated","SafetyBar.ActivationToggle.Activating.bt":"Activating","SafetyBar.ActivationToggle.Deactivating.bt":"Deactivating","SafetyBar.ControllerType.Physical.lb":"Physical","SafetyBar.ControllerType.Virtual.lb":"Virtual","SafetyBar.MotionGroup.Physical.Explanation.lb":"<code>{{motionGroupId}}</code> is a physical robot controller. <strong>Safety precautions</strong> are active for the movement of this robot.","SafetyBar.MotionGroup.Virtual.Explanation.lb":"<1>{{motionGroupId}}</1> is a virtual robot controller with no physical counterpart. It can be freely manipulated without safety precautions.","SafetyBar.OperationMode.Auto.Explanation.lb":"Automatic operation mode active. Automated movement without manual confirmation enabled.","SafetyBar.OperationMode.Automatic.ti":"Automatic","SafetyBar.OperationMode.Error.Explanation.lb":"Failed to get operation mode. Use the original control panel to resolve the error.","SafetyBar.OperationMode.Error.lb":"Error","SafetyBar.OperationMode.Manual.Explanation.lb":"The robot controller is in manual operation mode. On a physical robot, this generally indicates that an enabling switch must be held for the robot to move successfully.","SafetyBar.OperationMode.Manual.lb":"Manual","SafetyBar.OperationMode.ti":"Operation mode","SafetyBar.SafetyState.Error.Explanation.lb":"The robot controller has entered an unexpected safety state.","SafetyBar.SafetyState.Error.lb":"Error","SafetyBar.SafetyState.Estop.lb":"E-Stop","SafetyBar.SafetyState.ManualActionRequired.Explanation.lb":"The robot controller has entered a safety state requiring manual action to resolve.","SafetyBar.SafetyState.ManualActionRequired.lb":"Action required","SafetyBar.SafetyState.Normal.Explanation.lb":"The robot controller is in a safe state. Robot movement is enabled.","SafetyBar.SafetyState.Normal.lb":"Safe","SafetyBar.SafetyState.Stop.Explanation.lb":"The robot controller has entered a stop state. Movement is no longer possible until the stop state is resolved.","SafetyBar.SafetyState.Stop.lb":"Stop","SafetyBar.SafetyState.ti":"Safety state","SafetyBar.StopState.Estop.Explanation.lb":"An emergency stop of the robot controller has been triggered. Movement of the robot is no longer possible until the estop is released.","Jogging.Increment.hlb":"Increment","Jogging.CoordinateSystem.hlb":"Coordinate system","Jogging.Cartesian.bt":"Cartesian","Jogging.Joints.bt":"Joints","Jogging.Velocity.bt":"Velocity","CycleTimer.RemainingTime.lb":"Time remaining","CycleTimer.OfTime.lb":"of {{time}}","CycleTimer.Time.lb":"{{time}}","CycleTimer.Error.lb":"Error","CycleTimer.WaitingForCycle.lb":"Waiting for program cycle","CycleTimer.CycleTime.lb":"Cycle Time","CycleTimer.Measuring.lb":"measuring...","CycleTimer.Determined.lb":"determined","Timer.error":"Error","ProgramControl.Start.bt":"Start","ProgramControl.Resume.bt":"Resume","ProgramControl.Retry.bt":"Retry","ProgramControl.Pause.bt":"Pause","ProgramControl.Stop.bt":"Stop","ProgramStateIndicator.Preparing.lb":"Preparing","ProgramStateIndicator.Starting.lb":"Starting","ProgramStateIndicator.Running.lb":"Running","ProgramStateIndicator.Pausing.lb":"Pausing","ProgramStateIndicator.Stopping.lb":"Stopping","ProgramStateIndicator.Completed.lb":"Completed","ProgramStateIndicator.Failed.lb":"Failed","ProgramStateIndicator.Error.lb":"Error","ProgramStateIndicator.EStop.lb":"E-Stop","ProgramStateIndicator.Idle.lb":"Idle","ProgramStateIndicator.Paused.lb":"Paused","ProgramStateIndicator.Ready.lb":"Ready","ProgramStateIndicator.Stopped.lb":"Stopped","ProgramStateIndicator.Auto.lb":"Auto","ProgramStateIndicator.Manual.lb":"Manual","ProgramStateIndicator.ManualT1.lb":"Manual T1","ProgramStateIndicator.ManualT2.lb":"Manual T2","RobotSetupReadinessIndicator.Ready.lb":"Ready","RobotSetupReadinessIndicator.RobotDisconnected.lb":"Robot disconnected","RobotSetupReadinessIndicator.CellOpen.lb":"Cell open","RobotSetupReadinessIndicator.EStop.lb":"E-Stop","RobotSetupReadinessIndicator.ManualMode.lb":"Manual mode","RobotSetupReadinessIndicator.PreconditionNotFulfilled.lb":"Precondition not fulfilled","RobotCard.Runtime.lb":"Runtime","RobotCard.DriveToHome.bt":"Drive to Home"},s=p.createInstance();s.use(f).init({supportedLngs:["en","de"],resources:{en:{translations:J},de:{translations:C}},ns:["translations"],defaultNS:"translations",detection:{order:["navigator","htmlTag"]}});function B(e){const t=m.memo(e);return(o=>g.jsx(E,{children:g.jsx(t,{...o})}))}const E=({children:e})=>g.jsx(y.I18nextProvider,{i18n:s,children:e});exports.dhParametersToPlaneSize=I;exports.externalizeComponent=B;exports.i18n=s;exports.orientationToQuaternion=P;exports.tryStringifyJson=R;exports.verticesToCoplanarity=T;
|