Bug report
Issue details
The CameraZoomPlugin does not update the camera intrinsics published in the /world/{world}/model/{model}/link/{link}/sensor/{sensor}/camera_info (gz.msgs.CameraInfo) topic.
Version
Steps to replicate:
- Run an example containing a model equipped with the
gimbal_small_3d which includes a camera sensor and CameraZoomPlugin.
- Inspect the topics for the one containing
camera_info and subscribe to the topic and filter for the projection matrix. For example:
gz topic -e -t /world/playpen/model/mount/model/gimbal/link/pitch_link/sensor/camera/camera_info | grep -A12 projection
--
projection {
p: 205.46962738037109
p: 0
p: 320
p: 0
p: 0
p: 205.46965599060059
p: 240
p: 0
p: 0
p: 0
p: 1
p: 0
In another terminal change the zoom setting of the camera:
gz topic -t /model/gimbal/sensor/camera/zoom/cmd_zoom -m gz.msgs.Double -p "data: 4"
Monitor the camera_info topic and notice there is no change to the intrinsic matrix.
Platform
[ x ] All
[ ] AntennaTracker
[ ] Copter
[ ] Plane
[ ] Rover
[ ] Submarine
Bug report
Issue details
The CameraZoomPlugin does not update the camera intrinsics published in the
/world/{world}/model/{model}/link/{link}/sensor/{sensor}/camera_info(gz.msgs.CameraInfo) topic.Version
mainSteps to replicate:
gimbal_small_3dwhich includes a camera sensor andCameraZoomPlugin.camera_infoand subscribe to the topic and filter for the projection matrix. For example:gz topic -e -t /world/playpen/model/mount/model/gimbal/link/pitch_link/sensor/camera/camera_info | grep -A12 projection -- projection { p: 205.46962738037109 p: 0 p: 320 p: 0 p: 0 p: 205.46965599060059 p: 240 p: 0 p: 0 p: 0 p: 1 p: 0In another terminal change the zoom setting of the camera:
gz topic -t /model/gimbal/sensor/camera/zoom/cmd_zoom -m gz.msgs.Double -p "data: 4"Monitor the
camera_info topicand notice there is no change to the intrinsic matrix.Platform
[ x ] All
[ ] AntennaTracker
[ ] Copter
[ ] Plane
[ ] Rover
[ ] Submarine