Open osrf-migration opened 11 years ago
Original comment by bram_ridder (Bitbucket: bram_ridder).
The problem seems to be the class image_transport::ImageTransport. In simulator_gazebo/gazebo_plugin/gazebo_ros_camera_utils.cpp we advertise the image service with:
this->imagepub = this->itnode_->advertise( this->image_topicname,1, boost::bind( &GazeboRosCameraUtils::ImageConnect,this), boost::bind( &GazeboRosCameraUtils::ImageDisconnect,this), ros::VoidPtr(), &this->cameraqueue);
However, the ImageConnect and ImageDisconnect methods are never called. So the variable image_connectcount always remains 0. I'm currently ignoring this value so it always publishes the image information even if no one is listening. This is not very efficient but works for now.
image_common is a ROS package, so maybe this is a task they need to solve?
Original comment by Nate Koenig (Bitbucket: Nathan Koenig).
Until after June, 2013.
Original report (archived issue) by Nate Koenig (Bitbucket: Nathan Koenig).
See: http://answers.gazebosim.org/question/1653/problem-depth-camera-plugin-does-not-show-any/