Open osrf-migration opened 9 years ago
Original comment by Kei Okada (Bitbucket: k-okada).
if I understand correctly, there is no way for gzweb to get initial camera pose http://gazebosim.org/tutorials/?tut=ros_comm
k-okada@kokada-t440s:~$ gztopic list
/gazebo/default/pose/local/info
/gazebo/default/pose/info
/gazebo/default/gui
/gazebo/default/response
/gazebo/default/world_stats
/gazebo/default/selection
/gazebo/default/model/info
/gazebo/default/light
/gazebo/default/physics/contacts
/gazebo/default/visual
/gazebo/default/request
/gazebo/default/joint
/gazebo/default/factory
/gazebo/world/modify
/gazebo/default/model/modify
/gazebo/default/scene
/gazebo/default/physics
/gazebo/default/world_control
/gazebo/server/control
/gazebo/default/diagnostics
/gazebo/default/log/status
Am I correct?
Original comment by Ansar Khan (Bitbucket: Ansar Khan).
Looks like this is some sort of race condition which resets the camera position to zero in the init; even though resetView()
is called. Current work around for this would be adding this.resetView();
at the end of the GZ3D.Scene.prototype.init
method (approx line 5562) in gz3d.js
Original comment by Ansar Khan (Bitbucket: Ansar Khan).
Kei Okada (k-okada) Yes, the initial camera pose from the launch file is used by gzclient
but gzweb
takes its initial camera parameters in the GZ3D.Scene.prototype.init
method which are currently hard coded to be: this.defaultCameraPosition = new THREE.Vector3(0, -5, 5);
`
Original report (archived issue) by Isaac Saito (Bitbucket: 130s).
In
.world
file we can define the cameraview's init pose like this, whichGzweb
1.2.0 seems to be ignoring for me.Manually chaging
gzweb/http/client/gz3d.js
like below works.Still, this
resetView
isn't effective when the web page is reloaded. PressingReset View
button on Gzweb works.So in summary, issues I'm seeing:
1)
camera
tag in SDF is ignored. 2)resetView
ingzweb/http/client/gz3d.js
does not work when the Gzweb web page is loaded.