Skip to content

Commit

Permalink
deploy: a6297ce
Browse files Browse the repository at this point in the history
  • Loading branch information
dmronga committed Mar 6, 2024
1 parent 620825e commit b94e189
Show file tree
Hide file tree
Showing 6 changed files with 133 additions and 6 deletions.
123 changes: 123 additions & 0 deletions cart__pos__ctrl__dynamic_8cpp.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>wbc: tutorials/kuka_iiwa/cart_pos_ctrl_dynamic.cpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">wbc
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.10.0 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',false,false,'search.php','Search');
});
/* @license-end */
</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_0d353d24d0afa59909efab6593124f6d.html">tutorials</a></li><li class="navelem"><a class="el" href="dir_5d45abd4863d15c2c47de1951180b2a2.html">kuka_iiwa</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#func-members">Functions</a> </div>
<div class="headertitle"><div class="title">cart_pos_ctrl_dynamic.cpp File Reference</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;<a class="el" href="RobotModelPinocchio_8hpp_source.html">robot_models/pinocchio/RobotModelPinocchio.hpp</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="QPOasesSolver_8hpp_source.html">solvers/qpoases/QPOasesSolver.hpp</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="AccelerationSceneTSID_8hpp_source.html">scenes/acceleration_tsid/AccelerationSceneTSID.hpp</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="JointIntegrator_8hpp_source.html">tools/JointIntegrator.hpp</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="CartesianPosPDController_8hpp_source.html">controllers/CartesianPosPDController.hpp</a>&gt;</code><br />
<code>#include &lt;unistd.h&gt;</code><br />
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ae66f6b31b5ad750f1fe042a706a4e3d4" id="r_ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a> ()</td></tr>
<tr class="separator:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="ae66f6b31b5ad750f1fe042a706a4e3d4" name="ae66f6b31b5ad750f1fe042a706a4e3d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae66f6b31b5ad750f1fe042a706a4e3d4">&#9670;&#160;</a></span>main()</h2>

<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int main </td>
<td>(</td>
<td class="paramname"><span class="paramname"></span></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Acceleration-based example, Cartesian position control of the KUKA iiwa robot (fixed base, no contacts). In the example the following problem is solved: </p><p class="formulaDsp">
\[
\begin{array}{ccc}
minimize &amp; \| \mathbf{J}\ddot{\mathbf{q}} - \dot{\mathbf{v}}_d + \dot{\mathbf{J}}\dot{\mathbf{q}}\|_2\\
\mathbf{\ddot{q}},\mathbf{\tau} &amp; &amp; \\
s.t. &amp; \mathbf{H}\mathbf{\ddot{q}} - \mathbf{\tau} - \mathbf{J}_{c,i}^T\mathbf{f} = -\mathbf{h}, \, \forall i &amp; \\
&amp; \mathbf{\tau}_m \leq \mathbf{\tau} \leq \mathbf{\tau}_M&amp; \\
\end{array}
\]
</p>
<p> where </p><p class="formulaDsp">
\[
\dot{\mathbf{v}}_d = \dot{\mathbf{v}}_r + \mathbf{K}_d(\mathbf{v}_r-\mathbf{v}) + \mathbf{K}_p(\mathbf{x}_r-\mathbf{x})
\]
</p>
<p> \(\ddot{\mathbf{q}}\) - Vector of robot joint accelerations<br />
\(\dot{\mathbf{v}}_{d}\) - desired spatial acceleration / controller output <br />
\(\mathbf{\tau}\) - actuation forces/torques<br />
\(\mathbf{J}\) - task Jacobian <br />
\(\mathbf{H}\) - Joint space inertia matrix<br />
\(\mathbf{h}\) - bias forces/torques<br />
\(\mathbf{\tau}_m,\mathbf{\tau}_M\) - Joint force/torque limits<br />
\(\mathbf{x}_r, \mathbf{x}\) - Reference pose, actual pose<br />
\(\mathbf{v}_r, \mathbf{v}\) - Reference spatial velocity, actual spatial velocity<br />
\(\dot{\mathbf{v}}_r\) - Reference spatial acceleration (feed forward)<br />
\(\mathbf{K}_p, \mathbf{K}_d\) - Proportional, derivative gain matrix<br />
</p>
<p>The end effector is supposed to follow a sinusoidal trajectory. The solver computes the joint accelerations and forces/torques required to generate the desired spatial accelerations given by the Cartesian controller. </p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0
</small></address>
</body>
</html>
2 changes: 2 additions & 0 deletions dir_5d45abd4863d15c2c47de1951180b2a2.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="files" name="files"></a>
Files</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top"><span class="icondoc"></span>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="cart__pos__ctrl__dynamic_8cpp.html">cart_pos_ctrl_dynamic.cpp</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top"><span class="icondoc"></span>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="cart__pos__ctrl__hls_8cpp.html">cart_pos_ctrl_hls.cpp</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top"><span class="icondoc"></span>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="cart__pos__ctrl__hls__hierarchies_8cpp.html">cart_pos_ctrl_hls_hierarchies.cpp</a></td></tr>
Expand Down
1 change: 1 addition & 0 deletions doxygen_crawl.html
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@
<a href="SVD_8hpp.html"/>
<a href="URDFTools_8cpp.html"/>
<a href="URDFTools_8hpp.html"/>
<a href="cart__pos__ctrl__dynamic_8cpp.html"/>
<a href="cart__pos__ctrl__hls_8cpp.html"/>
<a href="cart__pos__ctrl__hls__hierarchies_8cpp.html"/>
<a href="cart__pos__ctrl__hls__weights_8cpp.html"/>
Expand Down
9 changes: 5 additions & 4 deletions files.html
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,11 @@
<tr id="row_0_7_7_" class="odd" style="display:none;"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><a href="URDFTools_8hpp_source.html"><span class="icondoc"></span></a><a class="el" href="URDFTools_8hpp.html" target="_self">URDFTools.hpp</a></td><td class="desc"></td></tr>
<tr id="row_1_" class="odd"><td class="entry"><span style="width:0px;display:inline-block;">&#160;</span><span id="arr_1_" class="arrow" onclick="dynsection.toggleFolder('1_')">&#9660;</span><span id="img_1_" class="iconfopen" onclick="dynsection.toggleFolder('1_')">&#160;</span><a class="el" href="dir_0d353d24d0afa59909efab6593124f6d.html" target="_self">tutorials</a></td><td class="desc"></td></tr>
<tr id="row_1_0_" class="even"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span id="arr_1_0_" class="arrow" onclick="dynsection.toggleFolder('1_0_')">&#9658;</span><span id="img_1_0_" class="iconfclosed" onclick="dynsection.toggleFolder('1_0_')">&#160;</span><a class="el" href="dir_5d45abd4863d15c2c47de1951180b2a2.html" target="_self">kuka_iiwa</a></td><td class="desc"></td></tr>
<tr id="row_1_0_0_" class="odd" style="display:none;"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icondoc"></span><a class="el" href="cart__pos__ctrl__hls_8cpp.html" target="_self">cart_pos_ctrl_hls.cpp</a></td><td class="desc"></td></tr>
<tr id="row_1_0_1_" class="odd" style="display:none;"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icondoc"></span><a class="el" href="cart__pos__ctrl__hls__hierarchies_8cpp.html" target="_self">cart_pos_ctrl_hls_hierarchies.cpp</a></td><td class="desc"></td></tr>
<tr id="row_1_0_2_" class="odd" style="display:none;"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icondoc"></span><a class="el" href="cart__pos__ctrl__hls__weights_8cpp.html" target="_self">cart_pos_ctrl_hls_weights.cpp</a></td><td class="desc"></td></tr>
<tr id="row_1_0_3_" class="odd" style="display:none;"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icondoc"></span><a class="el" href="cart__pos__ctrl__qpoases_8cpp.html" target="_self">cart_pos_ctrl_qpoases.cpp</a></td><td class="desc"></td></tr>
<tr id="row_1_0_0_" class="odd" style="display:none;"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icondoc"></span><a class="el" href="cart__pos__ctrl__dynamic_8cpp.html" target="_self">cart_pos_ctrl_dynamic.cpp</a></td><td class="desc"></td></tr>
<tr id="row_1_0_1_" class="odd" style="display:none;"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icondoc"></span><a class="el" href="cart__pos__ctrl__hls_8cpp.html" target="_self">cart_pos_ctrl_hls.cpp</a></td><td class="desc"></td></tr>
<tr id="row_1_0_2_" class="odd" style="display:none;"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icondoc"></span><a class="el" href="cart__pos__ctrl__hls__hierarchies_8cpp.html" target="_self">cart_pos_ctrl_hls_hierarchies.cpp</a></td><td class="desc"></td></tr>
<tr id="row_1_0_3_" class="odd" style="display:none;"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icondoc"></span><a class="el" href="cart__pos__ctrl__hls__weights_8cpp.html" target="_self">cart_pos_ctrl_hls_weights.cpp</a></td><td class="desc"></td></tr>
<tr id="row_1_0_4_" class="odd" style="display:none;"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icondoc"></span><a class="el" href="cart__pos__ctrl__qpoases_8cpp.html" target="_self">cart_pos_ctrl_qpoases.cpp</a></td><td class="desc"></td></tr>
<tr id="row_1_1_" class="odd"><td class="entry"><span style="width:16px;display:inline-block;">&#160;</span><span id="arr_1_1_" class="arrow" onclick="dynsection.toggleFolder('1_1_')">&#9658;</span><span id="img_1_1_" class="iconfclosed" onclick="dynsection.toggleFolder('1_1_')">&#160;</span><a class="el" href="dir_7f801739ae288071006f32dbe37cdff2.html" target="_self">rh5</a></td><td class="desc"></td></tr>
<tr id="row_1_1_0_" class="even" style="display:none;"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icondoc"></span><a class="el" href="rh5__legs__floating__base_8cpp.html" target="_self">rh5_legs_floating_base.cpp</a></td><td class="desc"></td></tr>
<tr id="row_1_1_1_" class="even" style="display:none;"><td class="entry"><span style="width:48px;display:inline-block;">&#160;</span><span class="icondoc"></span><a class="el" href="rh5__single__leg_8cpp.html" target="_self">rh5_single_leg.cpp</a></td><td class="desc"></td></tr>
Expand Down
2 changes: 1 addition & 1 deletion globals.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ <h3><a id="index_j" name="index_j"></a>- j -</h3><ul>


<h3><a id="index_m" name="index_m"></a>- m -</h3><ul>
<li>main()&#160;:&#160;<a class="el" href="cart__pos__ctrl__hls_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">cart_pos_ctrl_hls.cpp</a>, <a class="el" href="cart__pos__ctrl__hls__hierarchies_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627">cart_pos_ctrl_hls_hierarchies.cpp</a>, <a class="el" href="cart__pos__ctrl__hls__weights_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">cart_pos_ctrl_hls_weights.cpp</a>, <a class="el" href="cart__pos__ctrl__qpoases_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">cart_pos_ctrl_qpoases.cpp</a>, <a class="el" href="rh5__legs__floating__base_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">rh5_legs_floating_base.cpp</a>, <a class="el" href="rh5__single__leg_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">rh5_single_leg.cpp</a>, <a class="el" href="rh5__single__leg__hybrid_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">rh5_single_leg_hybrid.cpp</a>, <a class="el" href="rh5v2_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">rh5v2.cpp</a>, <a class="el" href="rh5v2__hybrid_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">rh5v2_hybrid.cpp</a></li>
<li>main()&#160;:&#160;<a class="el" href="cart__pos__ctrl__dynamic_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">cart_pos_ctrl_dynamic.cpp</a>, <a class="el" href="cart__pos__ctrl__hls_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">cart_pos_ctrl_hls.cpp</a>, <a class="el" href="cart__pos__ctrl__hls__hierarchies_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627">cart_pos_ctrl_hls_hierarchies.cpp</a>, <a class="el" href="cart__pos__ctrl__hls__weights_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">cart_pos_ctrl_hls_weights.cpp</a>, <a class="el" href="cart__pos__ctrl__qpoases_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">cart_pos_ctrl_qpoases.cpp</a>, <a class="el" href="rh5__legs__floating__base_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">rh5_legs_floating_base.cpp</a>, <a class="el" href="rh5__single__leg_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">rh5_single_leg.cpp</a>, <a class="el" href="rh5__single__leg__hybrid_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">rh5_single_leg_hybrid.cpp</a>, <a class="el" href="rh5v2_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">rh5v2.cpp</a>, <a class="el" href="rh5v2__hybrid_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">rh5v2_hybrid.cpp</a></li>
</ul>


Expand Down
2 changes: 1 addition & 1 deletion globals_func.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ <h3><a id="index_j" name="index_j"></a>- j -</h3><ul>


<h3><a id="index_m" name="index_m"></a>- m -</h3><ul>
<li>main()&#160;:&#160;<a class="el" href="cart__pos__ctrl__hls_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">cart_pos_ctrl_hls.cpp</a>, <a class="el" href="cart__pos__ctrl__hls__hierarchies_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627">cart_pos_ctrl_hls_hierarchies.cpp</a>, <a class="el" href="cart__pos__ctrl__hls__weights_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">cart_pos_ctrl_hls_weights.cpp</a>, <a class="el" href="cart__pos__ctrl__qpoases_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">cart_pos_ctrl_qpoases.cpp</a>, <a class="el" href="rh5__legs__floating__base_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">rh5_legs_floating_base.cpp</a>, <a class="el" href="rh5__single__leg_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">rh5_single_leg.cpp</a>, <a class="el" href="rh5__single__leg__hybrid_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">rh5_single_leg_hybrid.cpp</a>, <a class="el" href="rh5v2_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">rh5v2.cpp</a>, <a class="el" href="rh5v2__hybrid_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">rh5v2_hybrid.cpp</a></li>
<li>main()&#160;:&#160;<a class="el" href="cart__pos__ctrl__dynamic_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">cart_pos_ctrl_dynamic.cpp</a>, <a class="el" href="cart__pos__ctrl__hls_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">cart_pos_ctrl_hls.cpp</a>, <a class="el" href="cart__pos__ctrl__hls__hierarchies_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627">cart_pos_ctrl_hls_hierarchies.cpp</a>, <a class="el" href="cart__pos__ctrl__hls__weights_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">cart_pos_ctrl_hls_weights.cpp</a>, <a class="el" href="cart__pos__ctrl__qpoases_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">cart_pos_ctrl_qpoases.cpp</a>, <a class="el" href="rh5__legs__floating__base_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">rh5_legs_floating_base.cpp</a>, <a class="el" href="rh5__single__leg_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">rh5_single_leg.cpp</a>, <a class="el" href="rh5__single__leg__hybrid_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">rh5_single_leg_hybrid.cpp</a>, <a class="el" href="rh5v2_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">rh5v2.cpp</a>, <a class="el" href="rh5v2__hybrid_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">rh5v2_hybrid.cpp</a></li>
</ul>


Expand Down

0 comments on commit b94e189

Please sign in to comment.