<?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/13011" />

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2020-07-04T07:35:56+00:00</updated>

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

		<entry>
		<author><name><![CDATA[sakura_hana]]></name></author>
		<updated>2020-07-04T07:35:56+00:00</updated>

		<published>2020-07-04T07:35:56+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43013#p43013</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43013#p43013"/>
		<title type="html"><![CDATA[Re: How to keep the walking robot in view?]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=43013#p43013"><![CDATA[
In the main loop of your code you can call resetDebugVisualizerCamera and pass the base position of the robot to the cameraTargetPosition parameter.<br><br><strong class="text-strong">Like this:</strong><br><div class="codebox"><p>Code: </p><pre><code>while (1):basePos, baseOrn = p.getBasePositionAndOrientation(baseID) # Get model positionp.resetDebugVisualizerCamera( cameraDistance=0.3, cameraYaw=75, cameraPitch=-20, cameraTargetPosition=basePos) # fix camera onto modeltime.sleep(0.01)</code></pre></div><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13710">sakura_hana</a> — Sat Jul 04, 2020 7:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[incomplete]]></name></author>
		<updated>2020-06-27T08:39:33+00:00</updated>

		<published>2020-06-27T08:39:33+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42961#p42961</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42961#p42961"/>
		<title type="html"><![CDATA[How to keep the walking robot in view?]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=42961#p42961"><![CDATA[
If there is a robot walking along a fixed direction, some time later, it would walk out the view (the border of the desktop window, created with `pybullet.connect(pybullet.GUI)`).<br><br>How to keep the robot in view? (i.e. let the camera follow the movement of the robot)<br><br>I saw that there is a function `resetDebugVisualizerCamera()`, but it doesn't seem to have any effect.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=13684">incomplete</a> — Sat Jun 27, 2020 8:39 am</p><hr />
]]></content>
	</entry>
	</feed>
