Skip to content

Commit

Permalink
[doc]: Minor fix in Talos fast
Browse files Browse the repository at this point in the history
  • Loading branch information
costashatz committed Feb 1, 2024
1 parent 2acb7a2 commit ac7bbb1
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 11 deletions.
8 changes: 0 additions & 8 deletions docs/robots/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1043,14 +1043,6 @@ <h2 id="talos-pal-robotics">Talos (PAL Robotics)<a class="headerlink" href="#tal
</div>
<div class="highlight"><pre><span></span><code><a id="__codelineno-2-1" name="__codelineno-2-1" href="#__codelineno-2-1"></a><span class="c1">// load talos fast</span>
<a id="__codelineno-2-2" name="__codelineno-2-2" href="#__codelineno-2-2"></a><span class="k">auto</span><span class="w"> </span><span class="n">robot</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">std</span><span class="o">::</span><span class="n">make_shared</span><span class="o">&lt;</span><span class="n">robot_dart</span><span class="o">::</span><span class="n">robots</span><span class="o">::</span><span class="n">TalosFastCollision</span><span class="o">&gt;</span><span class="p">();</span>
<a id="__codelineno-2-3" name="__codelineno-2-3" href="#__codelineno-2-3"></a>
<a id="__codelineno-2-4" name="__codelineno-2-4" href="#__codelineno-2-4"></a><span class="c1">// Set actuator types to VELOCITY (for speed)</span>
<a id="__codelineno-2-5" name="__codelineno-2-5" href="#__codelineno-2-5"></a><span class="n">robot</span><span class="o">-&gt;</span><span class="n">set_actuator_types</span><span class="p">(</span><span class="s">&quot;velocity&quot;</span><span class="p">);</span>
<a id="__codelineno-2-6" name="__codelineno-2-6" href="#__codelineno-2-6"></a>
<a id="__codelineno-2-7" name="__codelineno-2-7" href="#__codelineno-2-7"></a><span class="kt">double</span><span class="w"> </span><span class="n">dt</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0.001</span><span class="p">;</span>
<a id="__codelineno-2-8" name="__codelineno-2-8" href="#__codelineno-2-8"></a><span class="n">robot_dart</span><span class="o">::</span><span class="n">RobotDARTSimu</span><span class="w"> </span><span class="nf">simu</span><span class="p">(</span><span class="n">dt</span><span class="p">);</span>
<a id="__codelineno-2-9" name="__codelineno-2-9" href="#__codelineno-2-9"></a><span class="c1">// we can use the DART (fast) collision detector</span>
<a id="__codelineno-2-10" name="__codelineno-2-10" href="#__codelineno-2-10"></a><span class="n">simu</span><span class="p">.</span><span class="n">set_collision_detector</span><span class="p">(</span><span class="s">&quot;dart&quot;</span><span class="p">);</span>
</code></pre></div>
<div class="tabbed-set tabbed-alternate" data-tabs="4:1"><input checked="checked" id="__tabbed_4_1" name="__tabbed_4" type="radio" /><div class="tabbed-labels"><label for="__tabbed_4_1">Python</label></div>
<div class="tabbed-content">
Expand Down
2 changes: 1 addition & 1 deletion docs/search/search_index.json

Large diffs are not rendered by default.

Binary file modified docs/sitemap.xml.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion src/docs/include/macros.py

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/examples/talos_fast_collision.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ int main()
// @TALOS_FAST@
// load talos fast
auto robot = std::make_shared<robot_dart::robots::TalosFastCollision>();
// @TALOS_FAST_END@

// Set actuator types to VELOCITY (for speed)
robot->set_actuator_types("velocity");
Expand All @@ -23,7 +24,7 @@ int main()
robot_dart::RobotDARTSimu simu(dt);
// we can use the DART (fast) collision detector
simu.set_collision_detector("dart");
// @TALOS_FAST_END@

#ifdef GRAPHIC
auto graphics = std::make_shared<robot_dart::gui::magnum::Graphics>();
simu.set_graphics(graphics);
Expand Down

0 comments on commit ac7bbb1

Please sign in to comment.