Skip to content

Commit

Permalink
Deploy to GitHub pages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Dec 11, 2023
1 parent 416f40c commit b67397b
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 49 deletions.
Binary file not shown.
Binary file modified compas_fab/pull_390/.doctrees/environment.pickle
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ <h1>WorkpieceState</h1>
<p class="rubric">Example</p>
<p>Example of a workpiece state that is not attached to robot:</p>
<div class="doctest language-python notranslate"><div class="highlight"><pre><button class="btn copy"><i class="far fa-copy"></i></button><code><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">from</span> <span class="nn">compas.geometry</span> <span class="kn">import</span> <span class="n">Frame</span>
<span class="gp">&gt;&gt;&gt; </span><span class="kn">from</span> <span class="nn">compas_fab.robots</span> <span class="kn">import</span> <span class="n">WorkpieceState</span>
<span class="gp">&gt;&gt;&gt; </span><span class="kn">from</span> <span class="nn">compas_fab.planning</span> <span class="kn">import</span> <span class="n">WorkpieceState</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">workpiece_state</span> <span class="o">=</span> <span class="n">WorkpieceState</span><span class="p">(</span>
<span class="gp">&gt;&gt;&gt; </span> <span class="n">workpiece_id</span><span class="o">=</span><span class="s2">&quot;wbeam1&quot;</span><span class="p">,</span>
<span class="gp">&gt;&gt;&gt; </span> <span class="n">frame</span><span class="o">=</span><span class="n">Frame</span><span class="o">.</span><span class="n">worldXY</span><span class="p">()</span>
Expand All @@ -134,7 +134,7 @@ <h1>WorkpieceState</h1>
<p>Example of a workpiece state that is attached to robot:</p>
<div class="doctest language-python notranslate"><div class="highlight"><pre><button class="btn copy"><i class="far fa-copy"></i></button><code><span></span><span class="gp">&gt;&gt;&gt; </span><span class="kn">from</span> <span class="nn">compas.geometry</span> <span class="kn">import</span> <span class="n">Frame</span>
<span class="gp">&gt;&gt;&gt; </span><span class="kn">from</span> <span class="nn">compas.geometry</span> <span class="kn">import</span> <span class="n">Transformation</span>
<span class="gp">&gt;&gt;&gt; </span><span class="kn">from</span> <span class="nn">compas_fab.robots</span> <span class="kn">import</span> <span class="n">WorkpieceState</span>
<span class="gp">&gt;&gt;&gt; </span><span class="kn">from</span> <span class="nn">compas_fab.planning</span> <span class="kn">import</span> <span class="n">WorkpieceState</span>
<span class="gp">&gt;&gt;&gt; </span><span class="c1"># In this example the workpiece is located at the pickup location</span>
<span class="gp">&gt;&gt;&gt; </span><span class="c1"># the pickup frame of the workpiece is defined in world coordinates</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">beam_pickup_frame</span> <span class="o">=</span> <span class="n">Frame</span><span class="p">([</span><span class="mi">200</span><span class="p">,</span> <span class="mi">200</span><span class="p">,</span> <span class="mi">500</span><span class="p">],</span> <span class="p">[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">],</span> <span class="p">[</span><span class="mi">0</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="mi">0</span><span class="p">])</span>
Expand Down
Loading

0 comments on commit b67397b

Please sign in to comment.