<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://pybullet.org/Bullet/phpBB3/app.php/feed/topic/13437" />

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2022-05-19T12:04:38+00:00</updated>

	<author><name><![CDATA[Real-Time Physics Simulation Forum]]></name></author>
	<id>https://pybullet.org/Bullet/phpBB3/app.php/feed/topic/13437</id>

		<entry>
		<author><name><![CDATA[everglow0214]]></name></author>
		<updated>2022-05-19T12:04:38+00:00</updated>

		<published>2022-05-19T12:04:38+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44019#p44019</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44019#p44019"/>
		<title type="html"><![CDATA[Re: Link number limit in createVisualShapeArray]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44019#p44019"><![CDATA[
Here is the result of the codes above.<dl class="file"><dt class="attach-image"><img src="https://pybullet.org/Bullet/phpBB3/download/file.php?id=1932" class="postimage" alt="pybullet_question.png" onclick="viewableArea(this);" /></dt></dl><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=14331">everglow0214</a> — Thu May 19, 2022 12:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[everglow0214]]></name></author>
		<updated>2022-05-19T11:53:55+00:00</updated>

		<published>2022-05-19T11:53:55+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44018#p44018</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44018#p44018"/>
		<title type="html"><![CDATA[Link number limit in createVisualShapeArray]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=44018#p44018"><![CDATA[
Hello everyone. Is there a limit of number of links in function <strong class="text-strong">createVisualShapeArray</strong>? I want to add some visualization of occupancy grid map in PyBullet. However, only a few grids can be shown. Here are my codes, where the variable <strong class="text-strong">grid_map</strong> is a 3-dimensional numpy array.<br><div class="codebox"><p>Code: </p><pre><code>ground_idxs = np.argwhere(grid_map[0:1,:] &gt;= 50)num_ground_idxs = ground_idxs.shape[0]        shapeTypes_ground = [p.GEOM_BOX for _ in range(num_ground_idxs)]half_size = [resolution/2, resolution/2, resolution/2]halfExtents_ground = [half_size for _ in range(num_ground_idxs)]visualFramePositions_ground =\    (np.flip(ground_idxs,axis=1) + 0.5) * resolution + np.array(bbx_min)visualGroundId = p.createVisualShapeArray(    shapeTypes = shapeTypes_ground,    halfExtents = halfExtents_ground,    visualFramePositions = visualFramePositions_ground.tolist())mb_id = p.createMultiBody(    baseMass = 0,    baseVisualShapeIndex = visualGroundId,    basePosition = [0,0,0])p.changeVisualShape(mb_id, -1, rgbaColor=[0, 0.5, 0, 0.5])</code></pre></div>The grid map is in the order of Z-Y-X. In this code, I would like to plot the grids that indicate the ground. So I used <div class="codebox"><p>Code: </p><pre><code>np.argwhere(grid_map[0:1,:] &gt;= 50)</code></pre></div>The size of <strong class="text-strong">ground_idxs</strong> is 563. But only less than 20 grids are shown properly.<br><br>Thanks~<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=14331">everglow0214</a> — Thu May 19, 2022 11:53 am</p><hr />
]]></content>
	</entry>
	</feed>
