Ask Your Question

Rotate camera display to show x+ axis instead of z+

asked 2017-06-18 14:58:46 -0600

frizzle gravatar image

Hi everyone,

I have a standard camera display with a calibrated camera info file and it's displaying everything correctly, but instead of looking up the z-axis I would like to look into the direction of the positive x-axis.
My guess would be to create an extra frame (like this?) and rotate it or something like that?
Does anyone have any pointers for me? Thanks a lot!

edit retag flag offensive close merge delete


Are you doing this to be compatible with the look_at_pose package?

Do you mean, you have a robot model and you want to rotate the camera in the robot model? Or, you want to change the frame that the camera data gets reported in?

AndyZe gravatar imageAndyZe ( 2017-06-19 09:11:38 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-06-19 17:42:53 -0600

lucasw gravatar image

You could broadcast a tf from C++ (or python), but it's easier to use a static_transform_publisher

For your transform xyz would be 0 0 0, and then 0 1.570796 0 for yaw pitch roll (or play with the numbers until it comes out right).

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2017-06-18 14:58:46 -0600

Seen: 259 times

Last updated: Jun 19 '17