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

Gazebo's camera doesn't refresh [closed]

asked 2014-03-22 04:03:21 -0500

alexbe gravatar image

Hi everyone,

I'm trying to get the video stream from the camera in the hector_quadrotor simulation (outdoor flight demo). As pr2_teleop is not available for ROS Hydro (my current distribution), I added some code in the "xbox_controller.launch" file in order to send Twist messages from keyboard inputs. Everything works fine and I can control the UAV. The problem is that in Rviz, the UAV moves as expected but the video stream from the camera still show the same image as if the UAV never takes of. When I display video stream from the topic "front_cam/camera/image" with the image_view package, the image never changes while the UAV moves.

Here, the UAV is on the floor: img11.hostingpics.net/pics/672533capture1.png

And now, the UAV is flying but the camera still displays the same image (even if laser sensor data seem to follow the UAV moves as expected): img11.hostingpics.net/pics/402316capture2.png

Can anyone tell me where could this problem come from? Rviz, Gazebo or my customized controller? Thanks in advance!

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by alexbe
close date 2014-03-26 01:45:12

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-03-24 02:46:06 -0500

andreasBihlmaier gravatar image

I have not yet investigated the source of this issue, but for me the problem results from

  • not having a directional light source in the world

and/or

  • having the world's shadows disabled
edit flag offensive delete link more

Comments

Wow! How did you guess? Indeed, putting shadows at "true" in the file "rolling_landscape_120m.world" solved this problem. I don't know why but the camera works well now. Thanks a lot!!

alexbe gravatar image alexbe  ( 2014-03-26 01:43:23 -0500 )edit

Glad to have been of help. I'll still open an issue at the gazebo issue tracker.

andreasBihlmaier gravatar image andreasBihlmaier  ( 2014-03-26 05:22:46 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-03-22 04:03:21 -0500

Seen: 793 times

Last updated: Mar 24 '14