jsk-ros-pkg / jsk_visualization

jsk visualization ros packages
https://github.com/jsk-ros-pkg/jsk_visualization
324 stars 173 forks source link

Use CameraInfo `P` translation to offset camera center #868

Open lucasw opened 1 year ago

lucasw commented 1 year ago

It looks like the Tx, Ty translations in a CameraInfo are ignored in the camera info rviz display- I think it would only require converting the Txyz (as specified in http://docs.ros.org/en/noetic/api/sensor_msgs/html/msg/CameraInfo.html- it says it assumes Tz is always zero, but if it wasn't zero why not respect it here?) to meters and then shifting the entire set of camera info 3D lines by that amount. I think a negative Tx is a shift to the right (or +x) in camera optical frame but I'd like to double check.

(and now I'm curious if rviz DepthCloud or Camera respects the Tx/Ty either)