Issue #560 new
Nate Koenig
created an issue

Comments (6)

  1. 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->image_pub_ = this->itnode_->advertise(
    this->image_topic_name_,1,
    boost::bind( &GazeboRosCameraUtils::ImageConnect,this),
    boost::bind( &GazeboRosCameraUtils::ImageDisconnect,this),
    ros::VoidPtr(), &this->camera_queue_);

    However, the ImageConnect and ImageDisconnect methods are never called. So the variable image_connect_count_ 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?

  2. Log in to comment