void stop ()
  {
    if (!running)
      return;

    cam_->stop ();              // Must stop camera before streaming_pub_.
    poll_srv_.shutdown ();
    streaming_pub_.shutdown ();

    running = false;
  }
Esempio n. 2
0
	~CobColorCameraNode()
	{
		image_poll_server_.shutdown();
		color_camera_->Close();
	}