gazebosim / gazebo-classic

Gazebo classic. For the latest version, see https://github.com/gazebosim/gz-sim
http://classic.gazebosim.org/
Other
1.2k stars 484 forks source link

RGB Images for DepthCameras #560

Open osrf-migration opened 11 years ago

osrf-migration commented 11 years ago

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/

osrf-migration commented 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?

osrf-migration commented 11 years ago

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


Until after June, 2013.

osrf-migration commented 11 years ago

Original comment by Ian Chen (Bitbucket: Ian Chen, GitHub: iche033).


osrf-migration commented 8 years ago

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


osrf-migration commented 8 years ago

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


osrf-migration commented 7 years ago

Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).