Gazebo | Ignition | Community
Ask Your Question

[Gzweb] To set initial pose of the camera

asked 2015-04-21 10:40:54 -0600

IsaacS gravatar image

Is there a way to specify the initial pose of the camera (the one that we see the view through) on Gzweb (I'm using version 1.2.0 but open for the higher version if any)? Thanks in advance.

#####In case if there isn't, an enhancement ticket is already opened.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-05-03 04:19:54 -0600

suzanak gravatar image

Yes, you can do so by adapting the arguments of these two function calls in gzweb/gz3d/src/gzscene.js to your needs:

this.defaultCameraPosition = new THREE.Vector3(0, -5, 5);

.. and THREE.Vector3( 0, 0, 0 ));

...and executing the script afterwards.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2015-04-21 10:40:54 -0600

Seen: 1,116 times

Last updated: May 03 '16