ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

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

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

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

Comments

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 image AndyZe  ( 2017-06-19 09:11:38 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

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

lucasw gravatar image

You could broadcast a tf from C++ (or python), but it's easier to use a static_transform_publisher http://wiki.ros.org/tf#static_transfo...

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

Question Tools

2 followers

Stats

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

Seen: 773 times

Last updated: Jun 19 '17