freenect and fovis_ros

asked 2014-12-17 22:20:11 -0500

jackcviers gravatar image

updated 2014-12-18 00:22:44 -0500

So I want to use fovis_ros to do visual odometry on my test robot.

Here's my launchfile:

<launch>
<arg name="camera" default="camera" />
<include file="$(find freenect_launch)/launch/freenect.launch" />
<node pkg="nodelet" type="nodelet" args="manager" name="nodelet_manager" />

<node pkg="fovis_ros" type="fovis_mono_depth_odometer" name="kinect_odometer">
    <remap from="/camera/rgb/image_rect" to="$(arg camera)/rgb/image_rect_mono" />
    <remap from="/camera/rgb/camera_info" to="$(arg camera)/rgb/camera_info" />
    <remap from="/camera/depth_registered/camera_info" to="camera/depth_registered/sw_registered/camera_info" />
    <remap from="/camera/depth_registered/image_rect" to="camera/depth_registered/image_rect" />
    <param name="approximate_sync" type="bool" value="True" />
</node>

</launch>

I get depth information, but I don't get any info on the connect odometry topic. If I were to hook it up to my robot description and the joint_state_publisher, is that what I need to get the odometry working?

UPDATE

It did not work. I've tried using openni instead of freenect, but openni.launch never picks up the kinect:

So no dice when using my standard launchfiles. When I try the fovis_ros launch with openni, the kinect never registers.

[ INFO] [1418883183.707266521]: No devices connected.... waiting for devices to be connected

According to the wiki page, it needs:

  1. transforms from the base_link to the camera_link, (check, in the robot launch file)
  2. /camera/rgb/image_rect
  3. /camera/depth_registered/image_rect
  4. /camera_info

In the example file, they also do a depth_image_proc conversion to meters from mm, so I assume they need this as well?

edit retag flag offensive close merge delete

Comments

So no dice when either the original launch file, fovis_ros openni launch or coupling the fovis_ros or coupling my robot launch with the fovis_ros launch are used.

jackcviers gravatar imagejackcviers ( 2014-12-18 00:10:25 -0500 )edit