You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ignore the weird lens effects at high zoom levels. If someone wants to make a 50-9999999 lens simulator, then let them.
Assume most users want instant zoom, so the default for the zoom rate will be infinity.
Additional context
I can do the implementation. Just requires a bit more math. It will be nice internally in the plugin to start doing math against focal lengths instead of the currently exposed zoom factor.
Feature request
Is your feature request related to a problem? Please describe.
Not all cameras can do instant zoom. I'd like to achieve the nice optical zoom rate limit that nice cameras have.
Describe the solution you'd like
Add one new parameter "slew_rate", which is the change in focal length per second possible from the camera.
The gazebo camera zoom plugin should be able to configure something like this:
https://www.youtube.com/watch?v=jShVCd7m1ak&ab_channel=SuperZoom
https://www.nikonusa.com/en/nikon-products/product/compact-digital-cameras/coolpix-p1000.html
Example:
Nikon has a P1000 has a 125x optical zoom (3000mm / 24mm = 125x). From the video, it takes about 7 seconds to do the zoom action.
Converting to SI, because REP-15, you have a 3 meter to 0.024 meter change.
Slew Rate [m/s] = ( 3 - 0.024) / 7 = 0.42514285714 m/s
Thus, you would add to
models/gimbal_small_3d/model.sdf
:Describe alternatives you've considered
N/A
Platform
[ x] All
[ ] AntennaTracker
[ ] Copter
[ ] Plane
[ ] Rover
[ ] Submarine
Assumptions
Ignore the weird lens effects at high zoom levels. If someone wants to make a 50-9999999 lens simulator, then let them.
Assume most users want instant zoom, so the default for the zoom rate will be infinity.
Additional context
I can do the implementation. Just requires a bit more math. It will be nice internally in the plugin to start doing math against focal lengths instead of the currently exposed zoom factor.
https://www.scantips.com/lights/fieldofviewmath.html
https://en.wikipedia.org/wiki/Focal_length
The text was updated successfully, but these errors were encountered: