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

VISO2 pitch angle

asked 2013-01-21 18:00:07 -0600

Hello,

I have managed to get ros_viso2 package to work, I am just wondering where is the pitch angle measured from? for example, I would like to point the camera upwards looking at the ceiling, what should my pitch angle be? and is it in degrees or radians?

I am viewing the outcome of the visual odometry on rviz where I set the fixed frame: /odom and target frame: base_link. Is this the best way to visualize the camera/robot path?

Thanks alot for your help.

Khalid

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-01-21 18:19:23 -0600

Karan gravatar image

The pitch angle is the angle measured clockwise about the Y-axis. In your case the camera looks upwards and the Y-axis goes towards your left. So if you look towards the left from the camera the angle is pi/2 anti-clockwise. So pitch in your case is -pi/2. The roll,pitch and yaw are measured in radians. Hope this helps!

edit flag offensive delete link more

Comments

Sorry I'm not sure I understood you, so your saying that the x-axis is the axis that the camera is pointing to, the y-axis is to the left of the camera and I guess the z-axis is upwards? So from what I understand, if the camera was pointing to the floor the pitch angle would be pi/2?

K_Yousif gravatar image K_Yousif  ( 2013-01-21 20:29:08 -0600 )edit

That is correct. Please not that this coordinate system you are talking about is different from the camera's optical frame (see REP 103).

Stephan gravatar image Stephan  ( 2013-01-21 20:47:35 -0600 )edit

Note: The mono_odometer estimates the ground plane and uses ~camera_height and ~camera_pitch to scale the motion. If the camera looks to the ceiling I'm not sure what happens. It could be that it works just fine or that the output is twisted. I would always recommend to use stereo_odometer instead.

Stephan gravatar image Stephan  ( 2013-01-21 20:52:27 -0600 )edit

X axis goes forward, Y-axis goes to the left and so Z upwards which is exactly what you said.. And yes if you point the camera downwards the pitch increases..(atleast i got the same results with visual odometry using fovis with Kinect)

Karan gravatar image Karan  ( 2013-01-21 20:57:29 -0600 )edit

2nd Note: For mono_odometer features must not be coplanar. Else the linear system to calculate transformations degenerates (see 6th stanza of The Fundamental Matrix Song). Apart from features on the ground (or ceiling) you need features on walls or other objects.

Stephan gravatar image Stephan  ( 2013-01-21 20:57:53 -0600 )edit

I see, so I do not thing pointing to the ceiling will work. I do not have a stereo camera but I have a Kinect, would that work?

K_Yousif gravatar image K_Yousif  ( 2013-01-21 22:30:20 -0600 )edit

Kinect wont work with viso2_ros as of now but Lib Fovis is very good for visual odometry which uses the rgb and depth incoming images..

Karan gravatar image Karan  ( 2013-01-21 23:14:49 -0600 )edit

Question Tools

Stats

Asked: 2013-01-21 18:00:07 -0600

Seen: 712 times

Last updated: Jan 21 '13