Revision b39258f1 client/python/hlrc_client/MiddlewareROS.py

View differences:

client/python/hlrc_client/MiddlewareROS.py
44 44
        #init base settings
45 45
        Middleware.__init__(self,scope,loglevel)
46 46
        #ros-specific initialization
47
        if timeout is None: timeout = rospy.Duration()
47
        if timeout is None:
48
            timeout = rospy.Duration()
49
        if not isinstance(timeout, rospy.Duration):
50
            timeout = rospy.Duration.from_sec(timeout)
48 51
        self.init_middleware(timeout)
49 52

  
50 53
    def __del__(self):

Also available in: Unified diff