Ask Your Question
1

ASUS Xtion problems with openni2_launch

asked 2015-03-07 22:17:09 -0600

rdhn gravatar image

updated 2015-03-08 01:42:27 -0600

gvdhoorn gravatar image

I am trying to connect the camera on Ubuntu 12.04 with ROS hydro. I followed the installation instructions but I am getting a warning after running

roslaunch openni2_launch openni2.launch

[ INFO] [1425787153.513333929]: Device "1d27/0601@3/2" with serial number "1305230087" connected

Warning: USB events thread - failed to set priority. This might cause loss of data...
process[camera_base_link2-12]: started with pid [3040]
process[camera_base_link3-13]: started with pid [3051]

When I run the command

rosrun rviz rviz

there is a Global Status:error saying Fixed Frame [map] does not exist in rviz.

I am not sure whether the drivers are not installed correctly, or there is a problem with the device not being detected by USB port. Do I need to make some initial setting to the rviz console? I have referred to all the possible solutions available on ros.answers on this topic but none have proved to useful.

This is the online check summary after running

roswtf

Online checks summary:

Found 1 warning(s).
Warnings are things that may be just fine, but are sometimes at fault

WARNING The following node subscriptions are unconnected:
 * /camera/camera_nodelet_manager:
   * /tf_static
 * /rviz_1425787173718334596:
   * /tf_static
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-03-08 01:55:29 -0600

gvdhoorn gravatar image

updated 2015-03-08 05:17:47 -0600

but I am getting a warning after running

[..]

[ INFO] [1425787153.513333929]: Device "1d27/0601@3/2" with serial number "1305230087" connected
Warning: USB events thread - failed to set priority. This might cause loss of data...

This is really just a warning: it just tells you that because the priority of the thread could not be changed, data might be lost (as the USB thread could potentially be starved by other threads).

The line above the warning tells you that things are actually working: it found your xtion and has connected.

there is a Global Status:error saying Fixed Frame [map] does not exist in rviz.

This is actually an error, but it just tells you that RViz is looking for a TF coordinate frame called map (and it cannot find it). It needs this to be able to visualise incoming data: without proper transforms, RViz cannot place sensor data at its proper location in 3D (or 6D) space. Since you are not publishing a map frame (and that is the default that RViz will look for, if not configured for something else), it displays that error to you. You will also not see anything in RViz, until that error is fixed.

Do I need to make some initial setting to the rviz [..]?

Yes: you'll have to set Fixed Frame to some frame that does exist. For most cameras in ROS, a frame called camera_link, camera_base_link or camera_(rgb|depth)_optical_frame will exist (as the driver publishes frames in it, or a urdf provides the frame). Changing to that should allow you to visualise your point clouds (after adding a PointCloud2 display).


Edit:

I understand why the error has occurred but can you please explain how to set the fixed frame. I tried to set the frame by topic camera/depth/image but I am still getting a blank screen and a yellow exclamation mark before the camera option in the rviz console for no images received.

The frame is not an 'rgb frame' or a 'depth image frame', but a TF coordinate frame. To see which coordinate frames are being published, click on the dropdown arrow next to the Fixed Frame input field. If the dropdown is empty, there are no TF frames being published.

In that case, you can probably use a static_transform_publisher for now, until you get your TF tree properly setup. Then set the Fixed Frame to the frame you are providing.


Edit2:

I am still getting a blank screen and a yellow exclamation mark before the camera option in the rviz console for no images received

Are you trying to visualise the RGB stream from the camera, or the point cloud? If the former, than you don't really need TF. A simple Image display should do. If the latter, you do need TF, as RViz needs to transform the points in the cloud into its 3D visualisation.

edit flag offensive delete link more

Comments

I was trying to visualize the RGB stream and then the point cloud. Adding both to display did the trick. thanks a lot

rdhn gravatar imagerdhn ( 2015-03-08 05:40:27 -0600 )edit

I tried disconnecting and reconnecting the device and running the commands. At time the camera does give me warning that it failed to get any images. Can you please explain why this is happening?

rdhn gravatar imagerdhn ( 2015-03-08 05:46:57 -0600 )edit

I think it would be best if you either update your original question (append new information), or post a new question to solve that issue (if it hasn't already been asked before on this site). Please include as much information as possible in either case (what was the warning, etc).

gvdhoorn gravatar imagegvdhoorn ( 2015-03-08 06:06:46 -0600 )edit

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2015-03-07 22:17:09 -0600

Seen: 1,561 times

Last updated: Mar 08 '15