Skip to content

Commit b6e4791

Browse files
authored
Merge pull request #221 from NOSALRO/mesh_issue
Negative mesh scale issue
2 parents ab8c9c5 + f0f5b2c commit b6e4791

File tree

3 files changed

+42
-1
lines changed

3 files changed

+42
-1
lines changed

docs/robots/index.html

+28
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,15 @@
595595
</span>
596596
</a>
597597

598+
</li>
599+
600+
<li class="md-nav__item">
601+
<a href="#known-issues" class="md-nav__link">
602+
<span class="md-ellipsis">
603+
Known issues
604+
</span>
605+
</a>
606+
598607
</li>
599608

600609
</ul>
@@ -1297,6 +1306,15 @@
12971306
</span>
12981307
</a>
12991308

1309+
</li>
1310+
1311+
<li class="md-nav__item">
1312+
<a href="#known-issues" class="md-nav__link">
1313+
<span class="md-ellipsis">
1314+
Known issues
1315+
</span>
1316+
</a>
1317+
13001318
</li>
13011319

13021320
</ul>
@@ -1774,6 +1792,16 @@ <h2 id="loading-custom-robots">Loading Custom Robots<a class="headerlink" href="
17741792
<a id="__codelineno-31-2" name="__codelineno-31-2" href="#__codelineno-31-2"></a> <span class="n">your_robot</span> <span class="o">=</span> <span class="n">robot_dart</span><span class="o">.</span><span class="n">Robot</span><span class="p">(</span><span class="s2">&quot;path/to/model.urdf&quot;</span><span class="p">,</span> <span class="n">your_model_packages</span><span class="p">)</span>
17751793
</code></pre></div>
17761794
</div>
1795+
<h2 id="known-issues">Known issues<a class="headerlink" href="#known-issues" title="Permanent link">&para;</a></h2>
1796+
<p>For DART versions 6.14.4 and below, one might see the following error <strong>when loading meshes with negative scaling</strong>:</p>
1797+
<div class="highlight"><pre><span></span><code><a id="__codelineno-32-1" name="__codelineno-32-1" href="#__codelineno-32-1"></a>./dart/dynamics/MeshShape.cpp:240: void dart::dynamics::MeshShape::setScale(const Eigen::Vector3d&amp;): Assertion `(scale.array() &gt; 0.0).all()&#39; failed.
1798+
<a id="__codelineno-32-2" name="__codelineno-32-2" href="#__codelineno-32-2"></a>Aborted (core dumped)
1799+
</code></pre></div>
1800+
<p>There are two solutions to this:</p>
1801+
<ol>
1802+
<li>Download and build the latest DART master or a version greater than 6.14.4</li>
1803+
<li>Edit your meshes to not have negative scale</li>
1804+
</ol>
17771805

17781806

17791807

docs/search/search_index.json

+1-1
Large diffs are not rendered by default.

src/docs/docs/robots.md

+13
Original file line numberDiff line numberDiff line change
@@ -273,3 +273,16 @@ RobotDART gives you the ability to load custom robots that are defined in [URDF
273273
your_robot = robot_dart.Robot("path/to/model.urdf", your_model_packages)
274274
```
275275

276+
## Known issues
277+
278+
For DART versions 6.14.4 and below, one might see the following error **when loading meshes with negative scaling**:
279+
280+
```
281+
./dart/dynamics/MeshShape.cpp:240: void dart::dynamics::MeshShape::setScale(const Eigen::Vector3d&): Assertion `(scale.array() > 0.0).all()' failed.
282+
Aborted (core dumped)
283+
```
284+
285+
There are two solutions to this:
286+
287+
1. Download and build the latest DART master or a version greater than 6.14.4
288+
2. Edit your meshes to not have negative scale

0 commit comments

Comments
 (0)