intera_interface/src/intera_interface/camera.py
def start_streaming(self, camera_name):
        """
        Start camera streaming for the given camera name, This only allows
        one camera open at one time and forces closed any other open cameras
        before open the wanted one.

        @type camera_name: str
        @param camera_name: camera name

        @rtype: bool
        @return: False if camera not exists in camera_name_list or the
                 interface is not able to stop streaming other camera.
                 Additionally, returns False if the interface is not able
                 to start streaming the desired camera. Returns True if the
                 camera already streaming or the camera successfully start
                 streaming.
        """
        if not self.verify_camera_exists(camera_name):
            return False
        elif not self._camera_streaming_status(camera_name):
            other_cameras_list = list(set(self.list_cameras())-set([
                camera_name]))
            for other_camera in other_cameras_list:
                if self._camera_streaming_status(other_camera):
                    self.cameras_io[other_camera]['interface'].set_signal_value(
                        "camera_streaming", False)
                    if self._camera_streaming_status(other_camera):
                        rospy.logerr(' '.join(["Failed to stop",
                            other_camera, "from streaming on this robot. "
                            "Unable to start streaming from", camera_name]))
                        return False
            self.cameras_io[camera_name]['interface'].set_signal_value(
                "camera_streaming", True)
            if not self._camera_streaming_status(camera_name):
                rospy.logerr(' '.join(["Failed to start", camera_name, "Unable"
                    " to start streaming from", camera_name]))
                return False
            else:
                return True
        else: # Camera is already streaming
            return True

        Start camera streaming for the given camera name, This only allows
        one camera open at one time and forces closed any other open cameras
        before open the wanted one.

        @type camera_name: str
        @param camera_name: camera name

        @rtype: bool
        @return: False if camera not exists in camera_name_list or the
                 interface is not able to stop streaming other camera.
                 Additionally, returns False if the interface is not able
                 to start streaming the desired camera. Returns True if the
                 camera already streaming or the camera successfully start
                 streaming.
        
Start camera streaming for the given camera name, This only allows
one camera open at one time and forces closed any other open cameras
before open the wanted one.
Start camera streaming for the given camera name This only allows one camera open at one time and forces closed any other open cameras before open the wanted one .
def start_streaming(self, camera_name):
        if not self.verify_camera_exists(camera_name):
            return False
        elif not self._camera_streaming_status(camera_name):
            other_cameras_list = list(set(self.list_cameras())-set([
                camera_name]))
            for other_camera in other_cameras_list:
                if self._camera_streaming_status(other_camera):
                    self.cameras_io[other_camera]['interface'].set_signal_value(
                        "camera_streaming", False)
                    if self._camera_streaming_status(other_camera):
                        rospy.logerr(' '.join(["Failed to stop",
                            other_camera, "from streaming on this robot. "
                            "Unable to start streaming from", camera_name]))
                        return False
            self.cameras_io[camera_name]['interface'].set_signal_value(
                "camera_streaming", True)
            if not self._camera_streaming_status(camera_name):
                rospy.logerr(' '.join(["Failed to start", camera_name, "Unable"
                    " to start streaming from", camera_name]))
                return False
            else:
                return True
        else: 
            return True
def start_streaming ( self , camera_name ) : if not self . verify_camera_exists ( camera_name ) : return False elif not self . _camera_streaming_status ( camera_name ) : other_cameras_list = list ( set ( self . list_cameras ( ) ) - set ( [ camera_name ] ) ) for other_camera in other_cameras_list : if self . _camera_streaming_status ( other_camera ) : self . cameras_io [ other_camera ] [ 'interface' ] . set_signal_value ( "camera_streaming" , False ) if self . _camera_streaming_status ( other_camera ) : rospy . logerr ( ' ' . join ( [ "Failed to stop" , other_camera , "from streaming on this robot. " "Unable to start streaming from" , camera_name ] ) ) return False self . cameras_io [ camera_name ] [ 'interface' ] . set_signal_value ( "camera_streaming" , True ) if not self . _camera_streaming_status ( camera_name ) : rospy . logerr ( ' ' . join ( [ "Failed to start" , camera_name , "Unable" " to start streaming from" , camera_name ] ) ) return False else : return True else : return True
Start camera streaming for the given camera name, This only allows
one camera open at one time and forces closed any other open cameras
before open the wanted one.
Start camera streaming for the given camera name This only allows one camera open at one time and forces closed any other open cameras before open the wanted one .
"""
        Start camera streaming for the given camera name, This only allows
        one camera open at one time and forces closed any other open cameras
        before open the wanted one.

        @type camera_name: str
        @param camera_name: camera name

        @rtype: bool
        @return: False if camera not exists in camera_name_list or the
                 interface is not able to stop streaming other camera.
                 Additionally, returns False if the interface is not able
                 to start streaming the desired camera. Returns True if the
                 camera already streaming or the camera successfully start
                 streaming.
        """ # Camera is already streaming
False if camera not exists in camera_name_list or the
interface is not able to stop streaming other camera.
Additionally, returns False if the interface is not able
to start streaming the desired camera. Returns True if the
camera already streaming or the camera successfully start
streaming.
False if camera not exists in camera_name_list or the interface is not able to stop streaming other camera . Additionally returns False if the interface is not able to start streaming the desired camera . Returns True if the camera already streaming or the camera successfully start streaming .
bool
self
camera_name
None