change rviz default angle
Opened this issue · 1 comments
ysl208 commented
You probably can change the default camera angle. You have to peel through the layers and reach into the three.js API. ros-rviz uses ros3djs, which in turn uses three.js. If you read the code for ros3djs, you can see how it interacts with three.js. And you can read the three.js code here: https://threejs.org/docs/index.html#manual/en/introduction/Creating-a-scene
ysl208 commented
check ros3djs/build/ros3d.js
and change the FOV value in new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 );
to a lower number e.g. 30 to get a more zoomed in version