import{s as $o,o as ho,n as B}from"../chunks/scheduler.eb244325.js";import{S as co,i as wo,e as b,s as a,c as u,h as bo,a as M,d as s,b as m,f as uo,g as $,j as y,k as j,l as Mo,m as i,n as d,t as h,o as c,p as w}from"../chunks/index.3fe63ad3.js";import{C as yo}from"../chunks/CopyLLMTxtMenu.08242e11.js";import{C}from"../chunks/CodeBlock.91baa5b4.js";import{H as U,E as go}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.234c3f85.js";import{H as Kt,a as G}from"../chunks/HfOption.0914e9f3.js";function vo(v){let l,p="<li>Attach the gripper to motor 5, attach it to the motor horn on the wrist using 4 M3x6mm screws.</li> <li>Insert the gripper motor and secure it with 2 M2x6mm screws on each side.</li> <li>Attach the motor horns and again use a M3x6mm horn screw.</li> <li>Install the gripper claw and secure it with 4 M3x6mm screws on both sides.</li>",o,f,n='<video controls="" width="600"><source src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/lerobot/Gripper_v2.mp4" type="video/mp4"/></video>';return{c(){l=b("ul"),l.innerHTML=p,o=a(),f=b("div"),f.innerHTML=n,this.h()},l(r){l=M(r,"UL",{"data-svelte-h":!0}),y(l)!=="svelte-m8yqcj"&&(l.innerHTML=p),o=m(r),f=M(r,"DIV",{class:!0,"data-svelte-h":!0}),y(f)!=="svelte-1veagf2"&&(f.innerHTML=n),this.h()},h(){j(f,"class","video-container")},m(r,g){i(r,l,g),i(r,o,g),i(r,f,g)},p:B,d(r){r&&(s(l),s(o),s(f))}}}function To(v){let l,p="<li>Mount the leader holder onto the wrist and secure it with 4 M3x6mm screws.</li> <li>Attach the handle to motor 5 using 1 M2x6mm screw.</li> <li>Insert the gripper motor, secure it with 2 M2x6mm screws on each side, attach a motor horn using a M3x6mm horn screw.</li> <li>Attach the follower trigger with 4 M3x6mm screws.</li>",o,f,n='<video controls="" width="600"><source src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/lerobot/Leader_v2.mp4" type="video/mp4"/></video>';return{c(){l=b("ul"),l.innerHTML=p,o=a(),f=b("div"),f.innerHTML=n,this.h()},l(r){l=M(r,"UL",{"data-svelte-h":!0}),y(l)!=="svelte-lj1gu4"&&(l.innerHTML=p),o=m(r),f=M(r,"DIV",{class:!0,"data-svelte-h":!0}),y(f)!=="svelte-1avnc4s"&&(f.innerHTML=n),this.h()},h(){j(f,"class","video-container")},m(r,g){i(r,l,g),i(r,o,g),i(r,f,g)},p:B,d(r){r&&(s(l),s(o),s(f))}}}function Jo(v){let l,p,o,f;return l=new G({props:{id:"assembly",option:"Follower",$$slots:{default:[vo]},$$scope:{ctx:v}}}),o=new G({props:{id:"assembly",option:"Leader",$$slots:{default:[To]},$$scope:{ctx:v}}}),{c(){u(l.$$.fragment),p=a(),u(o.$$.fragment)},l(n){$(l.$$.fragment,n),p=m(n),$(o.$$.fragment,n)},m(n,r){d(l,n,r),i(n,p,r),d(o,n,r),f=!0},p(n,r){const g={};r&2&&(g.$$scope={dirty:r,ctx:n}),l.$set(g);const x={};r&2&&(x.$$scope={dirty:r,ctx:n}),o.$set(x)},i(n){f||(h(l.$$.fragment,n),h(o.$$.fragment,n),f=!0)},o(n){c(l.$$.fragment,n),c(o.$$.fragment,n),f=!1},d(n){n&&s(p),w(l,n),w(o,n)}}}function xo(v){let l,p="Example output:",o,f,n,r,g="Where the found port is: <code>/dev/tty.usbmodem575E0032081</code> corresponding to your leader or follower arm.",x;return f=new C({props:{code:"RmluZGluZyUyMGFsbCUyMGF2YWlsYWJsZSUyMHBvcnRzJTIwZm9yJTIwdGhlJTIwTW90b3JCdXMuJTBBJTVCJyUyRmRldiUyRnR0eS51c2Jtb2RlbTU3NUUwMDMyMDgxJyUyQyUyMCclMkZkZXYlMkZ0dHkudXNibW9kZW01NzVFMDAzMTc1MSclNUQlMEFSZW1vdmUlMjB0aGUlMjBVU0IlMjBjYWJsZSUyMGZyb20lMjB5b3VyJTIwTW90b3JzQnVzJTIwYW5kJTIwcHJlc3MlMjBFbnRlciUyMHdoZW4lMjBkb25lLiUwQSUwQSU1Qi4uLkRpc2Nvbm5lY3QlMjBjb3JyZXNwb25kaW5nJTIwbGVhZGVyJTIwb3IlMjBmb2xsb3dlciUyMGFybSUyMGFuZCUyMHByZXNzJTIwRW50ZXIuLi4lNUQlMEElMEFUaGUlMjBwb3J0JTIwb2YlMjB0aGlzJTIwTW90b3JzQnVzJTIwaXMlMjAlMkZkZXYlMkZ0dHkudXNibW9kZW01NzVFMDAzMjA4MSUwQVJlY29ubmVjdCUyMHRoZSUyMFVTQiUyMGNhYmxlLg==",highlighted:`<span class="hljs-symbol">Finding</span> all available ports for the <span class="hljs-symbol">MotorBus</span>.
[<span class="hljs-string">&#x27;/dev/tty.usbmodem575E0032081&#x27;</span>, <span class="hljs-string">&#x27;/dev/tty.usbmodem575E0031751&#x27;</span>]
<span class="hljs-symbol">Remove</span> the <span class="hljs-symbol">USB</span> cable from your <span class="hljs-symbol">MotorsBus</span> and press <span class="hljs-symbol">Enter</span> when done.

[...<span class="hljs-symbol">Disconnect</span> corresponding leader or follower arm and press <span class="hljs-symbol">Enter</span>...]

<span class="hljs-symbol">The</span> port of this <span class="hljs-symbol">MotorsBus</span> is /dev/tty.usbmodem575E0032081
<span class="hljs-symbol">Reconnect</span> the <span class="hljs-symbol">USB</span> cable.`,wrap:!1}}),{c(){l=b("p"),l.textContent=p,o=a(),u(f.$$.fragment),n=a(),r=b("p"),r.innerHTML=g},l(J){l=M(J,"P",{"data-svelte-h":!0}),y(l)!=="svelte-c9hbnf"&&(l.textContent=p),o=m(J),$(f.$$.fragment,J),n=m(J),r=M(J,"P",{"data-svelte-h":!0}),y(r)!=="svelte-cknsqd"&&(r.innerHTML=g)},m(J,_){i(J,l,_),i(J,o,_),d(f,J,_),i(J,n,_),i(J,r,_),x=!0},p:B,i(J){x||(h(f.$$.fragment,J),x=!0)},o(J){c(f.$$.fragment,J),x=!1},d(J){J&&(s(l),s(o),s(n),s(r)),w(f,J)}}}function Uo(v){let l,p="On Linux, you might need to give access to the USB ports by running:",o,f,n,r,g="Example output:",x,J,_,I,R="Where the found port is: <code>/dev/ttyACM1</code> corresponding to your leader or follower arm.",L;return f=new C({props:{code:"c3VkbyUyMGNobW9kJTIwNjY2JTIwJTJGZGV2JTJGdHR5QUNNMCUwQXN1ZG8lMjBjaG1vZCUyMDY2NiUyMCUyRmRldiUyRnR0eUFDTTE=",highlighted:`sudo <span class="hljs-built_in">chmod</span> 666 /dev/ttyACM0
sudo <span class="hljs-built_in">chmod</span> 666 /dev/ttyACM1`,wrap:!1}}),J=new C({props:{code:"RmluZGluZyUyMGFsbCUyMGF2YWlsYWJsZSUyMHBvcnRzJTIwZm9yJTIwdGhlJTIwTW90b3JCdXMuJTBBJTVCJyUyRmRldiUyRnR0eUFDTTAnJTJDJTIwJyUyRmRldiUyRnR0eUFDTTEnJTVEJTBBUmVtb3ZlJTIwdGhlJTIwdXNiJTIwY2FibGUlMjBmcm9tJTIweW91ciUyME1vdG9yc0J1cyUyMGFuZCUyMHByZXNzJTIwRW50ZXIlMjB3aGVuJTIwZG9uZS4lMEElMEElNUIuLi5EaXNjb25uZWN0JTIwY29ycmVzcG9uZGluZyUyMGxlYWRlciUyMG9yJTIwZm9sbG93ZXIlMjBhcm0lMjBhbmQlMjBwcmVzcyUyMEVudGVyLi4uJTVEJTBBJTBBVGhlJTIwcG9ydCUyMG9mJTIwdGhpcyUyME1vdG9yc0J1cyUyMGlzJTIwJTJGZGV2JTJGdHR5QUNNMSUwQVJlY29ubmVjdCUyMHRoZSUyMFVTQiUyMGNhYmxlLg==",highlighted:`<span class="hljs-symbol">Finding</span> all available ports for the <span class="hljs-symbol">MotorBus</span>.
[<span class="hljs-string">&#x27;/dev/ttyACM0&#x27;</span>, <span class="hljs-string">&#x27;/dev/ttyACM1&#x27;</span>]
<span class="hljs-symbol">Remove</span> the usb cable from your <span class="hljs-symbol">MotorsBus</span> and press <span class="hljs-symbol">Enter</span> when done.

[...<span class="hljs-symbol">Disconnect</span> corresponding leader or follower arm and press <span class="hljs-symbol">Enter</span>...]

<span class="hljs-symbol">The</span> port of this <span class="hljs-symbol">MotorsBus</span> is /dev/ttyACM1
<span class="hljs-symbol">Reconnect</span> the <span class="hljs-symbol">USB</span> cable.`,wrap:!1}}),{c(){l=b("p"),l.textContent=p,o=a(),u(f.$$.fragment),n=a(),r=b("p"),r.textContent=g,x=a(),u(J.$$.fragment),_=a(),I=b("p"),I.innerHTML=R},l(T){l=M(T,"P",{"data-svelte-h":!0}),y(l)!=="svelte-q7p48l"&&(l.textContent=p),o=m(T),$(f.$$.fragment,T),n=m(T),r=M(T,"P",{"data-svelte-h":!0}),y(r)!=="svelte-c9hbnf"&&(r.textContent=g),x=m(T),$(J.$$.fragment,T),_=m(T),I=M(T,"P",{"data-svelte-h":!0}),y(I)!=="svelte-bj510z"&&(I.innerHTML=R)},m(T,Z){i(T,l,Z),i(T,o,Z),d(f,T,Z),i(T,n,Z),i(T,r,Z),i(T,x,Z),d(J,T,Z),i(T,_,Z),i(T,I,Z),L=!0},p:B,i(T){L||(h(f.$$.fragment,T),h(J.$$.fragment,T),L=!0)},o(T){c(f.$$.fragment,T),c(J.$$.fragment,T),L=!1},d(T){T&&(s(l),s(o),s(n),s(r),s(x),s(_),s(I)),w(f,T),w(J,T)}}}function Co(v){let l,p,o,f;return l=new G({props:{id:"example",option:"Mac",$$slots:{default:[xo]},$$scope:{ctx:v}}}),o=new G({props:{id:"example",option:"Linux",$$slots:{default:[Uo]},$$scope:{ctx:v}}}),{c(){u(l.$$.fragment),p=a(),u(o.$$.fragment)},l(n){$(l.$$.fragment,n),p=m(n),$(o.$$.fragment,n)},m(n,r){d(l,n,r),i(n,p,r),d(o,n,r),f=!0},p(n,r){const g={};r&2&&(g.$$scope={dirty:r,ctx:n}),l.$set(g);const x={};r&2&&(x.$$scope={dirty:r,ctx:n}),o.$set(x)},i(n){f||(h(l.$$.fragment,n),h(o.$$.fragment,n),f=!0)},o(n){c(l.$$.fragment,n),c(o.$$.fragment,n),f=!1},d(n){n&&s(p),w(l,n),w(o,n)}}}function _o(v){let l,p;return l=new C({props:{code:"bGVyb2JvdC1zZXR1cC1tb3RvcnMlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXJvYm90LnR5cGUlM0RzbzEwMV9mb2xsb3dlciUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tcm9ib3QucG9ydCUzRCUyRmRldiUyRnR0eS51c2Jtb2RlbTU4NUEwMDc2ODQxJTIwJTIwJTIzJTIwJTNDLSUyMHBhc3RlJTIwaGVyZSUyMHRoZSUyMHBvcnQlMjBmb3VuZCUyMGF0JTIwcHJldmlvdXMlMjBzdGVw",highlighted:`lerobot-setup-motors \\
    --robot.type=so101_follower \\
    --robot.port=/dev/tty.usbmodem585A0076841  <span class="hljs-comment"># &lt;- paste here the port found at previous step</span>`,wrap:!1}}),{c(){u(l.$$.fragment)},l(o){$(l.$$.fragment,o)},m(o,f){d(l,o,f),p=!0},p:B,i(o){p||(h(l.$$.fragment,o),p=!0)},o(o){c(l.$$.fragment,o),p=!1},d(o){w(l,o)}}}function jo(v){let l,p;return l=new C({props:{code:"ZnJvbSUyMGxlcm9ib3Qucm9ib3RzLnNvMTAxX2ZvbGxvd2VyJTIwaW1wb3J0JTIwU08xMDFGb2xsb3dlciUyQyUyMFNPMTAxRm9sbG93ZXJDb25maWclMEElMEFjb25maWclMjAlM0QlMjBTTzEwMUZvbGxvd2VyQ29uZmlnKCUwQSUyMCUyMCUyMCUyMHBvcnQlM0QlMjIlMkZkZXYlMkZ0dHkudXNibW9kZW01ODVBMDA3Njg0MSUyMiUyQyUwQSUyMCUyMCUyMCUyMGlkJTNEJTIybXlfYXdlc29tZV9mb2xsb3dlcl9hcm0lMjIlMkMlMEEpJTBBZm9sbG93ZXIlMjAlM0QlMjBTTzEwMUZvbGxvd2VyKGNvbmZpZyklMEFmb2xsb3dlci5zZXR1cF9tb3RvcnMoKQ==",highlighted:`<span class="hljs-keyword">from</span> lerobot.robots.so101_follower <span class="hljs-keyword">import</span> SO101Follower, SO101FollowerConfig

config = SO101FollowerConfig(
    port=<span class="hljs-string">&quot;/dev/tty.usbmodem585A0076841&quot;</span>,
    <span class="hljs-built_in">id</span>=<span class="hljs-string">&quot;my_awesome_follower_arm&quot;</span>,
)
follower = SO101Follower(config)
follower.setup_motors()`,wrap:!1}}),{c(){u(l.$$.fragment)},l(o){$(l.$$.fragment,o)},m(o,f){d(l,o,f),p=!0},p:B,i(o){p||(h(l.$$.fragment,o),p=!0)},o(o){c(l.$$.fragment,o),p=!1},d(o){w(l,o)}}}function Io(v){let l,p,o,f;return l=new G({props:{id:"setup_motors",option:"Command",$$slots:{default:[_o]},$$scope:{ctx:v}}}),o=new G({props:{id:"setup_motors",option:"API example",$$slots:{default:[jo]},$$scope:{ctx:v}}}),{c(){u(l.$$.fragment),p=a(),u(o.$$.fragment)},l(n){$(l.$$.fragment,n),p=m(n),$(o.$$.fragment,n)},m(n,r){d(l,n,r),i(n,p,r),d(o,n,r),f=!0},p(n,r){const g={};r&2&&(g.$$scope={dirty:r,ctx:n}),l.$set(g);const x={};r&2&&(x.$$scope={dirty:r,ctx:n}),o.$set(x)},i(n){f||(h(l.$$.fragment,n),h(o.$$.fragment,n),f=!0)},o(n){c(l.$$.fragment,n),c(o.$$.fragment,n),f=!1},d(n){n&&s(p),w(l,n),w(o,n)}}}function Zo(v){let l,p;return l=new C({props:{code:"bGVyb2JvdC1zZXR1cC1tb3RvcnMlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXRlbGVvcC50eXBlJTNEc28xMDFfbGVhZGVyJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS10ZWxlb3AucG9ydCUzRCUyRmRldiUyRnR0eS51c2Jtb2RlbTU3NUUwMDMxNzUxJTIwJTIwJTIzJTIwJTNDLSUyMHBhc3RlJTIwaGVyZSUyMHRoZSUyMHBvcnQlMjBmb3VuZCUyMGF0JTIwcHJldmlvdXMlMjBzdGVw",highlighted:`lerobot-setup-motors \\
    --teleop.type=so101_leader \\
    --teleop.port=/dev/tty.usbmodem575E0031751  <span class="hljs-comment"># &lt;- paste here the port found at previous step</span>`,wrap:!1}}),{c(){u(l.$$.fragment)},l(o){$(l.$$.fragment,o)},m(o,f){d(l,o,f),p=!0},p:B,i(o){p||(h(l.$$.fragment,o),p=!0)},o(o){c(l.$$.fragment,o),p=!1},d(o){w(l,o)}}}function Go(v){let l,p;return l=new C({props:{code:"ZnJvbSUyMGxlcm9ib3QudGVsZW9wZXJhdG9ycy5zbzEwMV9sZWFkZXIlMjBpbXBvcnQlMjBTTzEwMUxlYWRlciUyQyUyMFNPMTAxTGVhZGVyQ29uZmlnJTBBJTBBY29uZmlnJTIwJTNEJTIwU08xMDFMZWFkZXJDb25maWcoJTBBJTIwJTIwJTIwJTIwcG9ydCUzRCUyMiUyRmRldiUyRnR0eS51c2Jtb2RlbTU4NUEwMDc2ODQxJTIyJTJDJTBBJTIwJTIwJTIwJTIwaWQlM0QlMjJteV9hd2Vzb21lX2xlYWRlcl9hcm0lMjIlMkMlMEEpJTBBbGVhZGVyJTIwJTNEJTIwU08xMDFMZWFkZXIoY29uZmlnKSUwQWxlYWRlci5zZXR1cF9tb3RvcnMoKQ==",highlighted:`<span class="hljs-keyword">from</span> lerobot.teleoperators.so101_leader <span class="hljs-keyword">import</span> SO101Leader, SO101LeaderConfig

config = SO101LeaderConfig(
    port=<span class="hljs-string">&quot;/dev/tty.usbmodem585A0076841&quot;</span>,
    <span class="hljs-built_in">id</span>=<span class="hljs-string">&quot;my_awesome_leader_arm&quot;</span>,
)
leader = SO101Leader(config)
leader.setup_motors()`,wrap:!1}}),{c(){u(l.$$.fragment)},l(o){$(l.$$.fragment,o)},m(o,f){d(l,o,f),p=!0},p:B,i(o){p||(h(l.$$.fragment,o),p=!0)},o(o){c(l.$$.fragment,o),p=!1},d(o){w(l,o)}}}function Bo(v){let l,p,o,f;return l=new G({props:{id:"setup_motors",option:"Command",$$slots:{default:[Zo]},$$scope:{ctx:v}}}),o=new G({props:{id:"setup_motors",option:"API example",$$slots:{default:[Go]},$$scope:{ctx:v}}}),{c(){u(l.$$.fragment),p=a(),u(o.$$.fragment)},l(n){$(l.$$.fragment,n),p=m(n),$(o.$$.fragment,n)},m(n,r){d(l,n,r),i(n,p,r),d(o,n,r),f=!0},p(n,r){const g={};r&2&&(g.$$scope={dirty:r,ctx:n}),l.$set(g);const x={};r&2&&(x.$$scope={dirty:r,ctx:n}),o.$set(x)},i(n){f||(h(l.$$.fragment,n),h(o.$$.fragment,n),f=!0)},o(n){c(l.$$.fragment,n),c(o.$$.fragment,n),f=!1},d(n){n&&s(p),w(l,n),w(o,n)}}}function Ro(v){let l,p;return l=new C({props:{code:"bGVyb2JvdC1jYWxpYnJhdGUlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXJvYm90LnR5cGUlM0RzbzEwMV9mb2xsb3dlciUyMCU1QyUwQSUyMCUyMCUyMCUyMC0tcm9ib3QucG9ydCUzRCUyRmRldiUyRnR0eS51c2Jtb2RlbTU4NzYwNDMxNTUxJTIwJTVDJTIwJTIzJTIwJTNDLSUyMFRoZSUyMHBvcnQlMjBvZiUyMHlvdXIlMjByb2JvdCUwQSUyMCUyMCUyMCUyMC0tcm9ib3QuaWQlM0RteV9hd2Vzb21lX2ZvbGxvd2VyX2FybSUyMCUyMyUyMCUzQy0lMjBHaXZlJTIwdGhlJTIwcm9ib3QlMjBhJTIwdW5pcXVlJTIwbmFtZQ==",highlighted:`lerobot-calibrate \\
    --robot.type=so101_follower \\
    --robot.port=/dev/tty.usbmodem58760431551 \\ <span class="hljs-comment"># &lt;- The port of your robot</span>
    --robot.id=my_awesome_follower_arm <span class="hljs-comment"># &lt;- Give the robot a unique name</span>`,wrap:!1}}),{c(){u(l.$$.fragment)},l(o){$(l.$$.fragment,o)},m(o,f){d(l,o,f),p=!0},p:B,i(o){p||(h(l.$$.fragment,o),p=!0)},o(o){c(l.$$.fragment,o),p=!1},d(o){w(l,o)}}}function Lo(v){let l,p;return l=new C({props:{code:"ZnJvbSUyMGxlcm9ib3Qucm9ib3RzLnNvMTAxX2ZvbGxvd2VyJTIwaW1wb3J0JTIwU08xMDFGb2xsb3dlckNvbmZpZyUyQyUyMFNPMTAxRm9sbG93ZXIlMEElMEFjb25maWclMjAlM0QlMjBTTzEwMUZvbGxvd2VyQ29uZmlnKCUwQSUyMCUyMCUyMCUyMHBvcnQlM0QlMjIlMkZkZXYlMkZ0dHkudXNibW9kZW01ODVBMDA3Njg5MSUyMiUyQyUwQSUyMCUyMCUyMCUyMGlkJTNEJTIybXlfYXdlc29tZV9mb2xsb3dlcl9hcm0lMjIlMkMlMEEpJTBBJTBBZm9sbG93ZXIlMjAlM0QlMjBTTzEwMUZvbGxvd2VyKGNvbmZpZyklMEFmb2xsb3dlci5jb25uZWN0KGNhbGlicmF0ZSUzREZhbHNlKSUwQWZvbGxvd2VyLmNhbGlicmF0ZSgpJTBBZm9sbG93ZXIuZGlzY29ubmVjdCgp",highlighted:`<span class="hljs-keyword">from</span> lerobot.robots.so101_follower <span class="hljs-keyword">import</span> SO101FollowerConfig, SO101Follower

config = SO101FollowerConfig(
    port=<span class="hljs-string">&quot;/dev/tty.usbmodem585A0076891&quot;</span>,
    <span class="hljs-built_in">id</span>=<span class="hljs-string">&quot;my_awesome_follower_arm&quot;</span>,
)

follower = SO101Follower(config)
follower.connect(calibrate=<span class="hljs-literal">False</span>)
follower.calibrate()
follower.disconnect()`,wrap:!1}}),{c(){u(l.$$.fragment)},l(o){$(l.$$.fragment,o)},m(o,f){d(l,o,f),p=!0},p:B,i(o){p||(h(l.$$.fragment,o),p=!0)},o(o){c(l.$$.fragment,o),p=!1},d(o){w(l,o)}}}function So(v){let l,p,o,f;return l=new G({props:{id:"calibrate_follower",option:"Command",$$slots:{default:[Ro]},$$scope:{ctx:v}}}),o=new G({props:{id:"calibrate_follower",option:"API example",$$slots:{default:[Lo]},$$scope:{ctx:v}}}),{c(){u(l.$$.fragment),p=a(),u(o.$$.fragment)},l(n){$(l.$$.fragment,n),p=m(n),$(o.$$.fragment,n)},m(n,r){d(l,n,r),i(n,p,r),d(o,n,r),f=!0},p(n,r){const g={};r&2&&(g.$$scope={dirty:r,ctx:n}),l.$set(g);const x={};r&2&&(x.$$scope={dirty:r,ctx:n}),o.$set(x)},i(n){f||(h(l.$$.fragment,n),h(o.$$.fragment,n),f=!0)},o(n){c(l.$$.fragment,n),c(o.$$.fragment,n),f=!1},d(n){n&&s(p),w(l,n),w(o,n)}}}function ko(v){let l,p;return l=new C({props:{code:"bGVyb2JvdC1jYWxpYnJhdGUlMjAlNUMlMEElMjAlMjAlMjAlMjAtLXRlbGVvcC50eXBlJTNEc28xMDFfbGVhZGVyJTIwJTVDJTBBJTIwJTIwJTIwJTIwLS10ZWxlb3AucG9ydCUzRCUyRmRldiUyRnR0eS51c2Jtb2RlbTU4NzYwNDMxNTUxJTIwJTVDJTIwJTIzJTIwJTNDLSUyMFRoZSUyMHBvcnQlMjBvZiUyMHlvdXIlMjByb2JvdCUwQSUyMCUyMCUyMCUyMC0tdGVsZW9wLmlkJTNEbXlfYXdlc29tZV9sZWFkZXJfYXJtJTIwJTIzJTIwJTNDLSUyMEdpdmUlMjB0aGUlMjByb2JvdCUyMGElMjB1bmlxdWUlMjBuYW1l",highlighted:`lerobot-calibrate \\
    --teleop.type=so101_leader \\
    --teleop.port=/dev/tty.usbmodem58760431551 \\ <span class="hljs-comment"># &lt;- The port of your robot</span>
    --teleop.id=my_awesome_leader_arm <span class="hljs-comment"># &lt;- Give the robot a unique name</span>`,wrap:!1}}),{c(){u(l.$$.fragment)},l(o){$(l.$$.fragment,o)},m(o,f){d(l,o,f),p=!0},p:B,i(o){p||(h(l.$$.fragment,o),p=!0)},o(o){c(l.$$.fragment,o),p=!1},d(o){w(l,o)}}}function Ho(v){let l,p;return l=new C({props:{code:"ZnJvbSUyMGxlcm9ib3QudGVsZW9wZXJhdG9ycy5zbzEwMV9sZWFkZXIlMjBpbXBvcnQlMjBTTzEwMUxlYWRlckNvbmZpZyUyQyUyMFNPMTAxTGVhZGVyJTBBJTBBY29uZmlnJTIwJTNEJTIwU08xMDFMZWFkZXJDb25maWcoJTBBJTIwJTIwJTIwJTIwcG9ydCUzRCUyMiUyRmRldiUyRnR0eS51c2Jtb2RlbTU4NzYwNDMxNTUxJTIyJTJDJTBBJTIwJTIwJTIwJTIwaWQlM0QlMjJteV9hd2Vzb21lX2xlYWRlcl9hcm0lMjIlMkMlMEEpJTBBJTBBbGVhZGVyJTIwJTNEJTIwU08xMDFMZWFkZXIoY29uZmlnKSUwQWxlYWRlci5jb25uZWN0KGNhbGlicmF0ZSUzREZhbHNlKSUwQWxlYWRlci5jYWxpYnJhdGUoKSUwQWxlYWRlci5kaXNjb25uZWN0KCk=",highlighted:`<span class="hljs-keyword">from</span> lerobot.teleoperators.so101_leader <span class="hljs-keyword">import</span> SO101LeaderConfig, SO101Leader

config = SO101LeaderConfig(
    port=<span class="hljs-string">&quot;/dev/tty.usbmodem58760431551&quot;</span>,
    <span class="hljs-built_in">id</span>=<span class="hljs-string">&quot;my_awesome_leader_arm&quot;</span>,
)

leader = SO101Leader(config)
leader.connect(calibrate=<span class="hljs-literal">False</span>)
leader.calibrate()
leader.disconnect()`,wrap:!1}}),{c(){u(l.$$.fragment)},l(o){$(l.$$.fragment,o)},m(o,f){d(l,o,f),p=!0},p:B,i(o){p||(h(l.$$.fragment,o),p=!0)},o(o){c(l.$$.fragment,o),p=!1},d(o){w(l,o)}}}function Vo(v){let l,p,o,f;return l=new G({props:{id:"calibrate_leader",option:"Command",$$slots:{default:[ko]},$$scope:{ctx:v}}}),o=new G({props:{id:"calibrate_leader",option:"API example",$$slots:{default:[Ho]},$$scope:{ctx:v}}}),{c(){u(l.$$.fragment),p=a(),u(o.$$.fragment)},l(n){$(l.$$.fragment,n),p=m(n),$(o.$$.fragment,n)},m(n,r){d(l,n,r),i(n,p,r),d(o,n,r),f=!0},p(n,r){const g={};r&2&&(g.$$scope={dirty:r,ctx:n}),l.$set(g);const x={};r&2&&(x.$$scope={dirty:r,ctx:n}),o.$set(x)},i(n){f||(h(l.$$.fragment,n),h(o.$$.fragment,n),f=!0)},o(n){c(l.$$.fragment,n),c(o.$$.fragment,n),f=!1},d(n){n&&s(p),w(l,n),w(o,n)}}}function Eo(v){let l,p,o,f,n,r,g,x,J,_="In the steps below, we explain how to assemble our flagship robot, the SO-101.",I,R,L,T,Z=`Follow this <a href="https://github.com/TheRobotStudio/SO-ARM100" rel="nofollow">README</a>. It contains the bill of materials, with a link to source the parts, as well as the instructions to 3D print the parts.
And advise if it’s your first time printing or if you don’t own a 3D printer.`,ee,q,le,O,yl='To install LeRobot, follow our <a href="./installation">Installation Guide</a>',oe,K,gl="In addition to these instructions, you need to install the Feetech SDK:",ne,tt,se,et,ie,lt,vl="The follower arm uses 6x STS3215 motors with 1/345 gearing. The leader, however, uses three differently geared motors to make sure it can both sustain its own weight and it can be moved without requiring much force. Which motor is needed for which joint is shown in the table below.",re,ot,Tl='<thead><tr><th>Leader-Arm Axis</th> <th align="center">Motor</th> <th align="center">Gear Ratio</th></tr></thead> <tbody><tr><td>Base / Shoulder Pan</td> <td align="center">1</td> <td align="center">1 / 191</td></tr> <tr><td>Shoulder Lift</td> <td align="center">2</td> <td align="center">1 / 345</td></tr> <tr><td>Elbow Flex</td> <td align="center">3</td> <td align="center">1 / 191</td></tr> <tr><td>Wrist Flex</td> <td align="center">4</td> <td align="center">1 / 147</td></tr> <tr><td>Wrist Roll</td> <td align="center">5</td> <td align="center">1 / 147</td></tr> <tr><td>Gripper</td> <td align="center">6</td> <td align="center">1 / 147</td></tr></tbody>',ae,nt,me,st,Jl="Remove all support material from the 3D-printed parts. The easiest way to do this is using a small screwdriver to get underneath the support material.",pe,it,xl="It is advisable to install one 3-pin cable in the motor after placing them before continuing assembly.",fe,rt,ue,at,Ul="<li>Place the first motor into the base.</li> <li>Fasten the motor with 4 M2x6mm screws (smallest screws). Two from the top and two from the bottom.</li> <li>Slide over the first motor holder and fasten it using two M2x6mm screws (one on each side).</li> <li>Install both motor horns, securing the top horn with a M3x6mm screw.</li> <li>Attach the shoulder part.</li> <li>Tighten the shoulder part with 4 M3x6mm screws on top and 4 M3x6mm screws on the bottom</li> <li>Add the shoulder motor holder.</li>",$e,S,Cl='<video controls="" width="600"><source src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/lerobot/Joint1_v2.mp4" type="video/mp4"/></video>',de,mt,he,pt,_l="<li>Slide the second motor in from the top.</li> <li>Fasten the second motor with 4 M2x6mm screws.</li> <li>Attach both motor horns to motor 2, again use the M3x6mm horn screw.</li> <li>Attach the upper arm with 4 M3x6mm screws on each side.</li>",ce,k,jl='<video controls="" width="600"><source src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/lerobot/Joint2_v2.mp4" type="video/mp4"/></video>',we,ft,be,ut,Il="<li>Insert motor 3 and fasten using 4 M2x6mm screws</li> <li>Attach both motor horns to motor 3 and secure one again with a M3x6mm horn screw.</li> <li>Connect the forearm to motor 3 using 4 M3x6mm screws on each side.</li>",Me,H,Zl='<video controls="" width="600"><source src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/lerobot/Joint3_v2.mp4" type="video/mp4"/></video>',ye,$t,ge,dt,Gl="<li>Slide over motor holder 4.</li> <li>Slide in motor 4.</li> <li>Fasten motor 4 with 4 M2x6mm screws and attach its motor horns, use a M3x6mm horn screw.</li>",ve,V,Bl='<video controls="" width="600"><source src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/lerobot/Joint4_v2.mp4" type="video/mp4"/></video>',Te,ht,Je,ct,Rl="<li>Insert motor 5 into the wrist holder and secure it with 2 M2x6mm front screws.</li> <li>Install only one motor horn on the wrist motor and secure it with a M3x6mm horn screw.</li> <li>Secure the wrist to motor 4 using 4 M3x6mm screws on both sides.</li>",xe,E,Ll='<video controls="" width="600"><source src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/lerobot/Joint5_v2.mp4" type="video/mp4"/></video>',Ue,wt,Ce,F,_e,bt,je,Mt,Ie,yt,Sl="To find the port for each bus servo adapter, connect MotorBus to your computer via USB and power. Run the following script and disconnect the MotorBus when prompted:",Ze,gt,Ge,N,Be,vt,Re,Tt,kl="Each motor is identified by a unique id on the bus. When brand new, motors usually come with a default id of <code>1</code>. For the communication to work properly between the motors and the controller, we first need to set a unique, different id to each motor. Additionally, the speed at which data is transmitted on the bus is determined by the baudrate. In order to talk to each other, the controller and all the motors need to be configured with the same baudrate.",Le,Jt,Hl="To that end, we first need to connect to each motor individually with the controller in order to set these. Since we will write these parameters in the non-volatile section of the motors’ internal memory (EEPROM), we’ll only need to do this once.",Se,xt,Vl="If you are repurposing motors from another robot, you will probably also need to perform this step as the ids and baudrate likely won’t match.",ke,Ut,El="The video below shows the sequence of steps for setting the motor ids.",He,Ct,Ve,W,Fl='<video controls="" width="600"><source src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/lerobot/setup_motors_so101_2.mp4" type="video/mp4"/></video>',Ee,_t,Fe,jt,Nl="Connect the usb cable from your computer and the power supply to the follower arm’s controller board. Then, run the following command or run the API example with the port you got from the previous step. You’ll also need to give your leader arm a name with the <code>id</code> parameter.",Ne,A,We,It,Wl="You should see the following instruction",Ae,Zt,Qe,Gt,Al="As instructed, plug the gripper’s motor. Make sure it’s the only motor connected to the board, and that the motor itself is not yet daisy-chained to any other motor. As you press <code>[Enter]</code>, the script will automatically set the id and baudrate for that motor.",Xe,Bt,Ql="<summary>Troubleshooting</summary> <p>If you get an error at that point, check your cables and make sure they are plugged in properly:</p> <ul><li>Power supply</li> <li>USB cable between your computer and the controller board</li> <li>The 3-pin cable from the controller board to the motor</li></ul> <p>If you are using a Waveshare controller board, make sure that the two jumpers are set on the <code>B</code> channel (USB).</p>",ze,Rt,Xl="You should then see the following message:",De,Lt,Pe,St,zl="Followed by the next instruction:",Ye,kt,qe,Ht,Dl="You can disconnect the 3-pin cable from the controller board, but you can leave it connected to the gripper motor on the other end, as it will already be in the right place. Now, plug in another 3-pin cable to the wrist roll motor and connect it to the controller board. As with the previous motor, make sure it is the only motor connected to the board and that the motor itself isn’t connected to any other one.",Oe,Vt,Pl="Repeat the operation for each motor as instructed.",Ke,Q,Yl="<p>Check your cabling at each step before pressing Enter. For instance, the power supply cable might disconnect as you manipulate the board.</p>",tl,Et,ql="When you are done, the script will simply finish, at which point the motors are ready to be used. You can now plug the 3-pin cable from each motor to the next one, and the cable from the first motor (the ‘shoulder pan’ with id=1) to the controller board, which can now be attached to the base of the arm.",el,Ft,ll,Nt,Ol="Do the same steps for the leader arm.",ol,X,nl,Wt,sl,At,Kl=`Next, you’ll need to calibrate your robot to ensure that the leader and follower arms have the same position values when they are in the same physical position.
The calibration process is very important because it allows a neural network trained on one robot to work on another.`,il,Qt,rl,Xt,to="Run the following command or API example to calibrate the follower arm:",al,z,ml,zt,eo="The video below shows how to perform the calibration. First you need to move the robot to the position where all joints are in the middle of their ranges. Then after pressing enter you have to move each joint through its full range of motion.",pl,Dt,fl,D,lo='<video controls="" width="600"><source src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/lerobot/calibrate_so101_2.mp4" type="video/mp4"/></video>',ul,Pt,$l,Yt,oo="Do the same steps to calibrate the leader arm, run the following command or API example:",dl,P,hl,qt,no='Congrats 🎉, your robot is all set to learn a task on its own. Start training it by following this tutorial: <a href="./il_robots">Getting started with real-world robots</a>',cl,Y,so='<p>If you have any questions or need help, please reach out on <a href="https://discord.com/invite/s3KuuzsPFb" rel="nofollow">Discord</a>.</p>',wl,Ot,bl,te,Ml;return n=new yo({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),g=new U({props:{title:"SO-101",local:"so-101",headingTag:"h1"}}),R=new U({props:{title:"Source the parts",local:"source-the-parts",headingTag:"h2"}}),q=new U({props:{title:"Install LeRobot 🤗",local:"install-lerobot-",headingTag:"h2"}}),tt=new C({props:{code:"cGlwJTIwaW5zdGFsbCUyMC1lJTIwJTIyLiU1QmZlZXRlY2glNUQlMjI=",highlighted:'pip install -e <span class="hljs-string">&quot;.[feetech]&quot;</span>',wrap:!1}}),et=new U({props:{title:"Step-by-Step Assembly Instructions",local:"step-by-step-assembly-instructions",headingTag:"h2"}}),nt=new U({props:{title:"Clean Parts",local:"clean-parts",headingTag:"h3"}}),rt=new U({props:{title:"Joint 1",local:"joint-1",headingTag:"h3"}}),mt=new U({props:{title:"Joint 2",local:"joint-2",headingTag:"h3"}}),ft=new U({props:{title:"Joint 3",local:"joint-3",headingTag:"h3"}}),$t=new U({props:{title:"Joint 4",local:"joint-4",headingTag:"h3"}}),ht=new U({props:{title:"Joint 5",local:"joint-5",headingTag:"h3"}}),wt=new U({props:{title:"Gripper / Handle",local:"gripper--handle",headingTag:"h3"}}),F=new Kt({props:{id:"assembly",options:["Follower","Leader"],$$slots:{default:[Jo]},$$scope:{ctx:v}}}),bt=new U({props:{title:"Configure the motors",local:"configure-the-motors",headingTag:"h2"}}),Mt=new U({props:{title:"1. Find the USB ports associated with each arm",local:"1-find-the-usb-ports-associated-with-each-arm",headingTag:"h3"}}),gt=new C({props:{code:"bGVyb2JvdC1maW5kLXBvcnQ=",highlighted:"lerobot-find-port",wrap:!1}}),N=new Kt({props:{id:"example",options:["Mac","Linux"],$$slots:{default:[Co]},$$scope:{ctx:v}}}),vt=new U({props:{title:"2. Set the motors ids and baudrates",local:"2-set-the-motors-ids-and-baudrates",headingTag:"h3"}}),Ct=new U({props:{title:"Setup motors video",local:"setup-motors-video",headingTag:"h5"}}),_t=new U({props:{title:"Follower",local:"follower",headingTag:"h4"}}),A=new Kt({props:{id:"setup_motors",options:["Command","API example"],$$slots:{default:[Io]},$$scope:{ctx:v}}}),Zt=new C({props:{code:"Q29ubmVjdCUyMHRoZSUyMGNvbnRyb2xsZXIlMjBib2FyZCUyMHRvJTIwdGhlJTIwJ2dyaXBwZXInJTIwbW90b3IlMjBvbmx5JTIwYW5kJTIwcHJlc3MlMjBlbnRlci4=",highlighted:'Connect the controller board to the <span class="hljs-string">&#x27;gripper&#x27;</span> motor only and press enter.',wrap:!1}}),Lt=new C({props:{code:"J2dyaXBwZXInJTIwbW90b3IlMjBpZCUyMHNldCUyMHRvJTIwNg==",highlighted:'<span class="hljs-string">&#x27;gripper&#x27;</span> motor <span class="hljs-built_in">id</span> <span class="hljs-built_in">set</span> to 6',wrap:!1}}),kt=new C({props:{code:"Q29ubmVjdCUyMHRoZSUyMGNvbnRyb2xsZXIlMjBib2FyZCUyMHRvJTIwdGhlJTIwJ3dyaXN0X3JvbGwnJTIwbW90b3IlMjBvbmx5JTIwYW5kJTIwcHJlc3MlMjBlbnRlci4=",highlighted:'Connect the controller board to the <span class="hljs-string">&#x27;wrist_roll&#x27;</span> motor only and press enter.',wrap:!1}}),Ft=new U({props:{title:"Leader",local:"leader",headingTag:"h4"}}),X=new Kt({props:{id:"setup_motors",options:["Command","API example"],$$slots:{default:[Bo]},$$scope:{ctx:v}}}),Wt=new U({props:{title:"Calibrate",local:"calibrate",headingTag:"h2"}}),Qt=new U({props:{title:"Follower",local:"follower",headingTag:"h4"}}),z=new Kt({props:{id:"calibrate_follower",options:["Command","API example"],$$slots:{default:[So]},$$scope:{ctx:v}}}),Dt=new U({props:{title:"Calibration video",local:"calibration-video",headingTag:"h5"}}),Pt=new U({props:{title:"Leader",local:"leader",headingTag:"h4"}}),P=new Kt({props:{id:"calibrate_leader",options:["Command","API example"],$$slots:{default:[Vo]},$$scope:{ctx:v}}}),Ot=new go({props:{source:"https://github.com/huggingface/lerobot/blob/main/docs/source/so101.mdx"}}),{c(){l=b("meta"),p=a(),o=b("p"),f=a(),u(n.$$.fragment),r=a(),u(g.$$.fragment),x=a(),J=b("p"),J.textContent=_,I=a(),u(R.$$.fragment),L=a(),T=b("p"),T.innerHTML=Z,ee=a(),u(q.$$.fragment),le=a(),O=b("p"),O.innerHTML=yl,oe=a(),K=b("p"),K.textContent=gl,ne=a(),u(tt.$$.fragment),se=a(),u(et.$$.fragment),ie=a(),lt=b("p"),lt.textContent=vl,re=a(),ot=b("table"),ot.innerHTML=Tl,ae=a(),u(nt.$$.fragment),me=a(),st=b("p"),st.textContent=Jl,pe=a(),it=b("p"),it.textContent=xl,fe=a(),u(rt.$$.fragment),ue=a(),at=b("ul"),at.innerHTML=Ul,$e=a(),S=b("div"),S.innerHTML=Cl,de=a(),u(mt.$$.fragment),he=a(),pt=b("ul"),pt.innerHTML=_l,ce=a(),k=b("div"),k.innerHTML=jl,we=a(),u(ft.$$.fragment),be=a(),ut=b("ul"),ut.innerHTML=Il,Me=a(),H=b("div"),H.innerHTML=Zl,ye=a(),u($t.$$.fragment),ge=a(),dt=b("ul"),dt.innerHTML=Gl,ve=a(),V=b("div"),V.innerHTML=Bl,Te=a(),u(ht.$$.fragment),Je=a(),ct=b("ul"),ct.innerHTML=Rl,xe=a(),E=b("div"),E.innerHTML=Ll,Ue=a(),u(wt.$$.fragment),Ce=a(),u(F.$$.fragment),_e=a(),u(bt.$$.fragment),je=a(),u(Mt.$$.fragment),Ie=a(),yt=b("p"),yt.textContent=Sl,Ze=a(),u(gt.$$.fragment),Ge=a(),u(N.$$.fragment),Be=a(),u(vt.$$.fragment),Re=a(),Tt=b("p"),Tt.innerHTML=kl,Le=a(),Jt=b("p"),Jt.textContent=Hl,Se=a(),xt=b("p"),xt.textContent=Vl,ke=a(),Ut=b("p"),Ut.textContent=El,He=a(),u(Ct.$$.fragment),Ve=a(),W=b("div"),W.innerHTML=Fl,Ee=a(),u(_t.$$.fragment),Fe=a(),jt=b("p"),jt.innerHTML=Nl,Ne=a(),u(A.$$.fragment),We=a(),It=b("p"),It.textContent=Wl,Ae=a(),u(Zt.$$.fragment),Qe=a(),Gt=b("p"),Gt.innerHTML=Al,Xe=a(),Bt=b("details"),Bt.innerHTML=Ql,ze=a(),Rt=b("p"),Rt.textContent=Xl,De=a(),u(Lt.$$.fragment),Pe=a(),St=b("p"),St.textContent=zl,Ye=a(),u(kt.$$.fragment),qe=a(),Ht=b("p"),Ht.textContent=Dl,Oe=a(),Vt=b("p"),Vt.textContent=Pl,Ke=a(),Q=b("blockquote"),Q.innerHTML=Yl,tl=a(),Et=b("p"),Et.textContent=ql,el=a(),u(Ft.$$.fragment),ll=a(),Nt=b("p"),Nt.textContent=Ol,ol=a(),u(X.$$.fragment),nl=a(),u(Wt.$$.fragment),sl=a(),At=b("p"),At.textContent=Kl,il=a(),u(Qt.$$.fragment),rl=a(),Xt=b("p"),Xt.textContent=to,al=a(),u(z.$$.fragment),ml=a(),zt=b("p"),zt.textContent=eo,pl=a(),u(Dt.$$.fragment),fl=a(),D=b("div"),D.innerHTML=lo,ul=a(),u(Pt.$$.fragment),$l=a(),Yt=b("p"),Yt.textContent=oo,dl=a(),u(P.$$.fragment),hl=a(),qt=b("p"),qt.innerHTML=no,cl=a(),Y=b("blockquote"),Y.innerHTML=so,wl=a(),u(Ot.$$.fragment),bl=a(),te=b("p"),this.h()},l(t){const e=bo("svelte-u9bgzb",document.head);l=M(e,"META",{name:!0,content:!0}),e.forEach(s),p=m(t),o=M(t,"P",{}),uo(o).forEach(s),f=m(t),$(n.$$.fragment,t),r=m(t),$(g.$$.fragment,t),x=m(t),J=M(t,"P",{"data-svelte-h":!0}),y(J)!=="svelte-aunukm"&&(J.textContent=_),I=m(t),$(R.$$.fragment,t),L=m(t),T=M(t,"P",{"data-svelte-h":!0}),y(T)!=="svelte-1bkocry"&&(T.innerHTML=Z),ee=m(t),$(q.$$.fragment,t),le=m(t),O=M(t,"P",{"data-svelte-h":!0}),y(O)!=="svelte-141t05y"&&(O.innerHTML=yl),oe=m(t),K=M(t,"P",{"data-svelte-h":!0}),y(K)!=="svelte-upuyxa"&&(K.textContent=gl),ne=m(t),$(tt.$$.fragment,t),se=m(t),$(et.$$.fragment,t),ie=m(t),lt=M(t,"P",{"data-svelte-h":!0}),y(lt)!=="svelte-135n9gt"&&(lt.textContent=vl),re=m(t),ot=M(t,"TABLE",{"data-svelte-h":!0}),y(ot)!=="svelte-j7v58"&&(ot.innerHTML=Tl),ae=m(t),$(nt.$$.fragment,t),me=m(t),st=M(t,"P",{"data-svelte-h":!0}),y(st)!=="svelte-k1r3x2"&&(st.textContent=Jl),pe=m(t),it=M(t,"P",{"data-svelte-h":!0}),y(it)!=="svelte-1wwx18k"&&(it.textContent=xl),fe=m(t),$(rt.$$.fragment,t),ue=m(t),at=M(t,"UL",{"data-svelte-h":!0}),y(at)!=="svelte-q481ml"&&(at.innerHTML=Ul),$e=m(t),S=M(t,"DIV",{class:!0,"data-svelte-h":!0}),y(S)!=="svelte-hgn4ym"&&(S.innerHTML=Cl),de=m(t),$(mt.$$.fragment,t),he=m(t),pt=M(t,"UL",{"data-svelte-h":!0}),y(pt)!=="svelte-49wwax"&&(pt.innerHTML=_l),ce=m(t),k=M(t,"DIV",{class:!0,"data-svelte-h":!0}),y(k)!=="svelte-r6ummd"&&(k.innerHTML=jl),we=m(t),$(ft.$$.fragment,t),be=m(t),ut=M(t,"UL",{"data-svelte-h":!0}),y(ut)!=="svelte-18wirmg"&&(ut.innerHTML=Il),Me=m(t),H=M(t,"DIV",{class:!0,"data-svelte-h":!0}),y(H)!=="svelte-1shnxws"&&(H.innerHTML=Zl),ye=m(t),$($t.$$.fragment,t),ge=m(t),dt=M(t,"UL",{"data-svelte-h":!0}),y(dt)!=="svelte-1gwovp4"&&(dt.innerHTML=Gl),ve=m(t),V=M(t,"DIV",{class:!0,"data-svelte-h":!0}),y(V)!=="svelte-1lnu0nn"&&(V.innerHTML=Bl),Te=m(t),$(ht.$$.fragment,t),Je=m(t),ct=M(t,"UL",{"data-svelte-h":!0}),y(ct)!=="svelte-144j26s"&&(ct.innerHTML=Rl),xe=m(t),E=M(t,"DIV",{class:!0,"data-svelte-h":!0}),y(E)!=="svelte-f5ydea"&&(E.innerHTML=Ll),Ue=m(t),$(wt.$$.fragment,t),Ce=m(t),$(F.$$.fragment,t),_e=m(t),$(bt.$$.fragment,t),je=m(t),$(Mt.$$.fragment,t),Ie=m(t),yt=M(t,"P",{"data-svelte-h":!0}),y(yt)!=="svelte-yserl4"&&(yt.textContent=Sl),Ze=m(t),$(gt.$$.fragment,t),Ge=m(t),$(N.$$.fragment,t),Be=m(t),$(vt.$$.fragment,t),Re=m(t),Tt=M(t,"P",{"data-svelte-h":!0}),y(Tt)!=="svelte-19hhhh8"&&(Tt.innerHTML=kl),Le=m(t),Jt=M(t,"P",{"data-svelte-h":!0}),y(Jt)!=="svelte-7rhllm"&&(Jt.textContent=Hl),Se=m(t),xt=M(t,"P",{"data-svelte-h":!0}),y(xt)!=="svelte-efyae4"&&(xt.textContent=Vl),ke=m(t),Ut=M(t,"P",{"data-svelte-h":!0}),y(Ut)!=="svelte-13y89sk"&&(Ut.textContent=El),He=m(t),$(Ct.$$.fragment,t),Ve=m(t),W=M(t,"DIV",{class:!0,"data-svelte-h":!0}),y(W)!=="svelte-bqfm02"&&(W.innerHTML=Fl),Ee=m(t),$(_t.$$.fragment,t),Fe=m(t),jt=M(t,"P",{"data-svelte-h":!0}),y(jt)!=="svelte-1mcn9cu"&&(jt.innerHTML=Nl),Ne=m(t),$(A.$$.fragment,t),We=m(t),It=M(t,"P",{"data-svelte-h":!0}),y(It)!=="svelte-kl9pz"&&(It.textContent=Wl),Ae=m(t),$(Zt.$$.fragment,t),Qe=m(t),Gt=M(t,"P",{"data-svelte-h":!0}),y(Gt)!=="svelte-9nq0x0"&&(Gt.innerHTML=Al),Xe=m(t),Bt=M(t,"DETAILS",{"data-svelte-h":!0}),y(Bt)!=="svelte-uj5pem"&&(Bt.innerHTML=Ql),ze=m(t),Rt=M(t,"P",{"data-svelte-h":!0}),y(Rt)!=="svelte-nrvfwv"&&(Rt.textContent=Xl),De=m(t),$(Lt.$$.fragment,t),Pe=m(t),St=M(t,"P",{"data-svelte-h":!0}),y(St)!=="svelte-1qmpg9r"&&(St.textContent=zl),Ye=m(t),$(kt.$$.fragment,t),qe=m(t),Ht=M(t,"P",{"data-svelte-h":!0}),y(Ht)!=="svelte-97c9xv"&&(Ht.textContent=Dl),Oe=m(t),Vt=M(t,"P",{"data-svelte-h":!0}),y(Vt)!=="svelte-85ylx7"&&(Vt.textContent=Pl),Ke=m(t),Q=M(t,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),y(Q)!=="svelte-rwsljd"&&(Q.innerHTML=Yl),tl=m(t),Et=M(t,"P",{"data-svelte-h":!0}),y(Et)!=="svelte-cwdauv"&&(Et.textContent=ql),el=m(t),$(Ft.$$.fragment,t),ll=m(t),Nt=M(t,"P",{"data-svelte-h":!0}),y(Nt)!=="svelte-pxzpok"&&(Nt.textContent=Ol),ol=m(t),$(X.$$.fragment,t),nl=m(t),$(Wt.$$.fragment,t),sl=m(t),At=M(t,"P",{"data-svelte-h":!0}),y(At)!=="svelte-jmtuc1"&&(At.textContent=Kl),il=m(t),$(Qt.$$.fragment,t),rl=m(t),Xt=M(t,"P",{"data-svelte-h":!0}),y(Xt)!=="svelte-lnreu8"&&(Xt.textContent=to),al=m(t),$(z.$$.fragment,t),ml=m(t),zt=M(t,"P",{"data-svelte-h":!0}),y(zt)!=="svelte-163nui"&&(zt.textContent=eo),pl=m(t),$(Dt.$$.fragment,t),fl=m(t),D=M(t,"DIV",{class:!0,"data-svelte-h":!0}),y(D)!=="svelte-xug5ar"&&(D.innerHTML=lo),ul=m(t),$(Pt.$$.fragment,t),$l=m(t),Yt=M(t,"P",{"data-svelte-h":!0}),y(Yt)!=="svelte-1mr2rqs"&&(Yt.textContent=oo),dl=m(t),$(P.$$.fragment,t),hl=m(t),qt=M(t,"P",{"data-svelte-h":!0}),y(qt)!=="svelte-19zk1vh"&&(qt.innerHTML=no),cl=m(t),Y=M(t,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),y(Y)!=="svelte-so5vtc"&&(Y.innerHTML=so),wl=m(t),$(Ot.$$.fragment,t),bl=m(t),te=M(t,"P",{}),uo(te).forEach(s),this.h()},h(){j(l,"name","hf:doc:metadata"),j(l,"content",Fo),j(S,"class","video-container"),j(k,"class","video-container"),j(H,"class","video-container"),j(V,"class","video-container"),j(E,"class","video-container"),j(W,"class","video-container"),j(Q,"class","tip"),j(D,"class","video-container"),j(Y,"class","tip")},m(t,e){Mo(document.head,l),i(t,p,e),i(t,o,e),i(t,f,e),d(n,t,e),i(t,r,e),d(g,t,e),i(t,x,e),i(t,J,e),i(t,I,e),d(R,t,e),i(t,L,e),i(t,T,e),i(t,ee,e),d(q,t,e),i(t,le,e),i(t,O,e),i(t,oe,e),i(t,K,e),i(t,ne,e),d(tt,t,e),i(t,se,e),d(et,t,e),i(t,ie,e),i(t,lt,e),i(t,re,e),i(t,ot,e),i(t,ae,e),d(nt,t,e),i(t,me,e),i(t,st,e),i(t,pe,e),i(t,it,e),i(t,fe,e),d(rt,t,e),i(t,ue,e),i(t,at,e),i(t,$e,e),i(t,S,e),i(t,de,e),d(mt,t,e),i(t,he,e),i(t,pt,e),i(t,ce,e),i(t,k,e),i(t,we,e),d(ft,t,e),i(t,be,e),i(t,ut,e),i(t,Me,e),i(t,H,e),i(t,ye,e),d($t,t,e),i(t,ge,e),i(t,dt,e),i(t,ve,e),i(t,V,e),i(t,Te,e),d(ht,t,e),i(t,Je,e),i(t,ct,e),i(t,xe,e),i(t,E,e),i(t,Ue,e),d(wt,t,e),i(t,Ce,e),d(F,t,e),i(t,_e,e),d(bt,t,e),i(t,je,e),d(Mt,t,e),i(t,Ie,e),i(t,yt,e),i(t,Ze,e),d(gt,t,e),i(t,Ge,e),d(N,t,e),i(t,Be,e),d(vt,t,e),i(t,Re,e),i(t,Tt,e),i(t,Le,e),i(t,Jt,e),i(t,Se,e),i(t,xt,e),i(t,ke,e),i(t,Ut,e),i(t,He,e),d(Ct,t,e),i(t,Ve,e),i(t,W,e),i(t,Ee,e),d(_t,t,e),i(t,Fe,e),i(t,jt,e),i(t,Ne,e),d(A,t,e),i(t,We,e),i(t,It,e),i(t,Ae,e),d(Zt,t,e),i(t,Qe,e),i(t,Gt,e),i(t,Xe,e),i(t,Bt,e),i(t,ze,e),i(t,Rt,e),i(t,De,e),d(Lt,t,e),i(t,Pe,e),i(t,St,e),i(t,Ye,e),d(kt,t,e),i(t,qe,e),i(t,Ht,e),i(t,Oe,e),i(t,Vt,e),i(t,Ke,e),i(t,Q,e),i(t,tl,e),i(t,Et,e),i(t,el,e),d(Ft,t,e),i(t,ll,e),i(t,Nt,e),i(t,ol,e),d(X,t,e),i(t,nl,e),d(Wt,t,e),i(t,sl,e),i(t,At,e),i(t,il,e),d(Qt,t,e),i(t,rl,e),i(t,Xt,e),i(t,al,e),d(z,t,e),i(t,ml,e),i(t,zt,e),i(t,pl,e),d(Dt,t,e),i(t,fl,e),i(t,D,e),i(t,ul,e),d(Pt,t,e),i(t,$l,e),i(t,Yt,e),i(t,dl,e),d(P,t,e),i(t,hl,e),i(t,qt,e),i(t,cl,e),i(t,Y,e),i(t,wl,e),d(Ot,t,e),i(t,bl,e),i(t,te,e),Ml=!0},p(t,[e]){const io={};e&2&&(io.$$scope={dirty:e,ctx:t}),F.$set(io);const ro={};e&2&&(ro.$$scope={dirty:e,ctx:t}),N.$set(ro);const ao={};e&2&&(ao.$$scope={dirty:e,ctx:t}),A.$set(ao);const mo={};e&2&&(mo.$$scope={dirty:e,ctx:t}),X.$set(mo);const po={};e&2&&(po.$$scope={dirty:e,ctx:t}),z.$set(po);const fo={};e&2&&(fo.$$scope={dirty:e,ctx:t}),P.$set(fo)},i(t){Ml||(h(n.$$.fragment,t),h(g.$$.fragment,t),h(R.$$.fragment,t),h(q.$$.fragment,t),h(tt.$$.fragment,t),h(et.$$.fragment,t),h(nt.$$.fragment,t),h(rt.$$.fragment,t),h(mt.$$.fragment,t),h(ft.$$.fragment,t),h($t.$$.fragment,t),h(ht.$$.fragment,t),h(wt.$$.fragment,t),h(F.$$.fragment,t),h(bt.$$.fragment,t),h(Mt.$$.fragment,t),h(gt.$$.fragment,t),h(N.$$.fragment,t),h(vt.$$.fragment,t),h(Ct.$$.fragment,t),h(_t.$$.fragment,t),h(A.$$.fragment,t),h(Zt.$$.fragment,t),h(Lt.$$.fragment,t),h(kt.$$.fragment,t),h(Ft.$$.fragment,t),h(X.$$.fragment,t),h(Wt.$$.fragment,t),h(Qt.$$.fragment,t),h(z.$$.fragment,t),h(Dt.$$.fragment,t),h(Pt.$$.fragment,t),h(P.$$.fragment,t),h(Ot.$$.fragment,t),Ml=!0)},o(t){c(n.$$.fragment,t),c(g.$$.fragment,t),c(R.$$.fragment,t),c(q.$$.fragment,t),c(tt.$$.fragment,t),c(et.$$.fragment,t),c(nt.$$.fragment,t),c(rt.$$.fragment,t),c(mt.$$.fragment,t),c(ft.$$.fragment,t),c($t.$$.fragment,t),c(ht.$$.fragment,t),c(wt.$$.fragment,t),c(F.$$.fragment,t),c(bt.$$.fragment,t),c(Mt.$$.fragment,t),c(gt.$$.fragment,t),c(N.$$.fragment,t),c(vt.$$.fragment,t),c(Ct.$$.fragment,t),c(_t.$$.fragment,t),c(A.$$.fragment,t),c(Zt.$$.fragment,t),c(Lt.$$.fragment,t),c(kt.$$.fragment,t),c(Ft.$$.fragment,t),c(X.$$.fragment,t),c(Wt.$$.fragment,t),c(Qt.$$.fragment,t),c(z.$$.fragment,t),c(Dt.$$.fragment,t),c(Pt.$$.fragment,t),c(P.$$.fragment,t),c(Ot.$$.fragment,t),Ml=!1},d(t){t&&(s(p),s(o),s(f),s(r),s(x),s(J),s(I),s(L),s(T),s(ee),s(le),s(O),s(oe),s(K),s(ne),s(se),s(ie),s(lt),s(re),s(ot),s(ae),s(me),s(st),s(pe),s(it),s(fe),s(ue),s(at),s($e),s(S),s(de),s(he),s(pt),s(ce),s(k),s(we),s(be),s(ut),s(Me),s(H),s(ye),s(ge),s(dt),s(ve),s(V),s(Te),s(Je),s(ct),s(xe),s(E),s(Ue),s(Ce),s(_e),s(je),s(Ie),s(yt),s(Ze),s(Ge),s(Be),s(Re),s(Tt),s(Le),s(Jt),s(Se),s(xt),s(ke),s(Ut),s(He),s(Ve),s(W),s(Ee),s(Fe),s(jt),s(Ne),s(We),s(It),s(Ae),s(Qe),s(Gt),s(Xe),s(Bt),s(ze),s(Rt),s(De),s(Pe),s(St),s(Ye),s(qe),s(Ht),s(Oe),s(Vt),s(Ke),s(Q),s(tl),s(Et),s(el),s(ll),s(Nt),s(ol),s(nl),s(sl),s(At),s(il),s(rl),s(Xt),s(al),s(ml),s(zt),s(pl),s(fl),s(D),s(ul),s($l),s(Yt),s(dl),s(hl),s(qt),s(cl),s(Y),s(wl),s(bl),s(te)),s(l),w(n,t),w(g,t),w(R,t),w(q,t),w(tt,t),w(et,t),w(nt,t),w(rt,t),w(mt,t),w(ft,t),w($t,t),w(ht,t),w(wt,t),w(F,t),w(bt,t),w(Mt,t),w(gt,t),w(N,t),w(vt,t),w(Ct,t),w(_t,t),w(A,t),w(Zt,t),w(Lt,t),w(kt,t),w(Ft,t),w(X,t),w(Wt,t),w(Qt,t),w(z,t),w(Dt,t),w(Pt,t),w(P,t),w(Ot,t)}}}const Fo='{"title":"SO-101","local":"so-101","sections":[{"title":"Source the parts","local":"source-the-parts","sections":[],"depth":2},{"title":"Install LeRobot 🤗","local":"install-lerobot-","sections":[],"depth":2},{"title":"Step-by-Step Assembly Instructions","local":"step-by-step-assembly-instructions","sections":[{"title":"Clean Parts","local":"clean-parts","sections":[],"depth":3},{"title":"Joint 1","local":"joint-1","sections":[],"depth":3},{"title":"Joint 2","local":"joint-2","sections":[],"depth":3},{"title":"Joint 3","local":"joint-3","sections":[],"depth":3},{"title":"Joint 4","local":"joint-4","sections":[],"depth":3},{"title":"Joint 5","local":"joint-5","sections":[],"depth":3},{"title":"Gripper / Handle","local":"gripper--handle","sections":[],"depth":3}],"depth":2},{"title":"Configure the motors","local":"configure-the-motors","sections":[{"title":"1. Find the USB ports associated with each arm","local":"1-find-the-usb-ports-associated-with-each-arm","sections":[],"depth":3},{"title":"2. Set the motors ids and baudrates","local":"2-set-the-motors-ids-and-baudrates","sections":[{"title":"Setup motors video","local":"setup-motors-video","sections":[],"depth":5},{"title":"Follower","local":"follower","sections":[],"depth":4},{"title":"Leader","local":"leader","sections":[],"depth":4}],"depth":3}],"depth":2},{"title":"Calibrate","local":"calibrate","sections":[{"title":"Follower","local":"follower","sections":[{"title":"Calibration video","local":"calibration-video","sections":[],"depth":5}],"depth":4},{"title":"Leader","local":"leader","sections":[],"depth":4}],"depth":2}],"depth":1}';function No(v){return ho(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Po extends co{constructor(l){super(),wo(this,l,No,Eo,$o,{})}}export{Po as component};
