Robotics StackExchange | Archived questions

nao camera transform problem rviz

Hello,

i am currently working with the nao and i am getting some really strange behavior, when i use the camera of the nao. But step by step:

1.) If i only start the nao camera, more specific the top camera, everything works fine. I am able to display the data in rviz, as camera data. I use as fixed frame the correct frame "CameraTopframe". The camerainfo is published and recivied correctly. Everything works as expected.

Now the problem:

If i add a statictransform to the launch file, between the frames "world" and "CameraTopframe" (The rest stays the same!!) nothing works. Rviz ist not able to display the incoming data as camera data. Even if i choose as fixed frame again "CameraTopframe" like in the step before. Rviz is able to display the data as image data, using the world or the CameraTopframe.

My conclusion is that something is wrong with the /camerainfo data, which is needed for displaying the data as camera data. But how is it possible that a static transform, somehow destroys the /camerainfo data completely? The topic /camerainfo is still there and data is published, like in step 1.). Even Rviz is complaining about the /camerainfo stuff:

Warning: No Camerainfo recieved on .....

Hoping for some help, because i really don't know what to do.

EDIT:

I solved the problem by changing a line in the nao_camera.py script. It seems that it was some kind of a timing problem. I changed the line "img.header.stamp = rospy.Time(stampAL)" to "img.header.stamp = rospy.Time.now()". After that everything works perfect.

Asked by Tirgo on 2014-05-06 23:18:32 UTC

Comments

I am also getting this warning:

[ WARN] [1399455010.185558605]: MessageFilter [target=world ]: Dropped 100.00% of messages so far. Please turn the [ros.rviz.message_notifier] rosconsole logger to DEBUG for more information.

[ WARN] [1399455010.185655733]: MessageFilter [target=world ]: The majority of dropped messages were due to messages growing older than the TF cache time. The last message's timestamp was: 1253149784.947127, and the last frame_id was: /CameraTop_frame

Asked by Tirgo on 2014-05-06 23:33:52 UTC

If i hit the Reset button in Rviz, it displays one image at the camera display and then it freezes.

Asked by Tirgo on 2014-05-07 00:14:43 UTC

Defining a transform should not affect the presence or absence of camera info. Try rostopic list to verify the topic name and rostopic echo /camera_info to see the contents.

Asked by joq on 2014-05-08 11:43:20 UTC

Hello, the topic camera_info is published correctly. But i have an other update: If I add the param "use_sim_time", with the value true, to the launch file something strange happens. /camera_info is receivied correctly by rviz, but now receiving the image topic is a problem for rviz.

Asked by Tirgo on 2014-05-08 22:59:32 UTC

Why are you setting use_sim_time? Aren't you using the real device?

Asked by joq on 2014-05-09 05:51:00 UTC

It was just for testing, because the error looked similar to one i had some time ago. Yes i am using a real device.

Asked by Tirgo on 2014-05-11 21:55:49 UTC

Please edit your question and paste in the exact static transform command you added.

Asked by joq on 2014-05-12 05:02:02 UTC

Answers