uji-ros-pkg / underwater_simulation

UWSim-NET, the Underwater Simulator
97 stars 64 forks source link

Angle of view of virtual camera #39

Closed Anuragch closed 10 years ago

Anuragch commented 10 years ago

I was trying to change virtual camera but there is no change in angle of view of camera .Please help me regarding this .

perezsolerj commented 10 years ago

Hi,

Yes, it seems fov is still hard-coded if not using intrinsic parameters in config file. Using "parameters" tag you should be able to change it, if I'm not wrong angle of view on x axis is arctan((width/2)/fx), same for y ayis using height and fy. By now, virtual cameras have a fixed angle of view of 50 on y axis and aspect ratio 1.33, I will add a config parameter on XML so it can be changed and aspect ratio depends on width and height.

Thanks for reporting.