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

ar_kinect nan value in the transform

asked 2012-02-21 10:39:38 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I set up ar_kinect and printed the 4x4 pattern on a piece of paper (letter size). Everything seems to be working except that the recognition of pattern is on and off. In particular it only recognizes a transform when the paper is tilted (not perpendicular to the camera) and even then the update rate is slow (compared to what I see on the videos posted). I get the following message whenever a pose is not published


TF_NAN_INPUT: Ignoring transform for child_frame_id "/TEST_PATTERN" from authority "/ar_kinect" because of a nan value in the transform (nan nan nan) (nan nan nan nan)--


here is the roslaunch file for ar_kinect


<launch>
<node name="ar_kinect" pkg="ar_kinect" type="ar_kinect" respawn="false" output="screen">
    <param name="marker_pattern_list" type="string" value="$(find ar_kinect)/data/objects_kinect"/>
    <param name="marker_data_directory" type="string" value="$(find ar_pose)"/>
    <param name="threshold" type="int" value="100"/>
    <remap from="/camera/rgb/points" to="/camera/depth_registered/points"/>
</node>

</launch>


Is this because ar_kinect uses the depth information and there is very little depth info on a piece of paper? If so what is the proper setup?

I will appreciate it if anyone can help with this.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-02-21 21:35:24 -0500

fergs gravatar image

Ar_kinect basically uses ar_toolkit to find the four corners, then uses the depth information to refine the 3d pose. If any of the corners has no depth data, the registration fails. Unfortunately, there isn't much you can do if you just don't have depth data at some angles.

I just applied a patch that has been sitting on our issue tracker for quite some time which should clean up the NANs. (which is a more graceful way to deal with missing points than publishing horribly NAN transforms). If you pull the trunk again from SVN and rebuild you should at least see the NAN issues go away.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2012-02-21 10:39:38 -0500

Seen: 651 times

Last updated: Feb 21 '12