def get_servo_temperature(self):
        """ Gets the current temperature of Herkulex

        Args:
            none

        Returns:
            int: the current temperature register of Herkulex

        Raises:
            SerialException: Error occured while opening serial port

       """
        data = []
        data.append(0x09)
        data.append(self.servoid)
        data.append(RAM_READ_REQ)
        data.append(TEMPERATURE_RAM)
        data.append(BYTE2)
        send_data(data)
        rxdata = []
        try:
            rxdata = SERPORT.read(13)
            return ord(rxdata[9])
        except HerkulexError:
            raise HerkulexError("Could not communicate with motors")
def get_servo_temperature ( self ) : data = [ ] data . append ( 0x09 ) data . append ( self . servoid ) data . append ( RAM_READ_REQ ) data . append ( TEMPERATURE_RAM ) data . append ( BYTE2 ) send_data ( data ) rxdata = [ ] try : rxdata = SERPORT . read ( 13 ) return ord ( rxdata [ 9 ] ) except HerkulexError : raise HerkulexError ( "Could not communicate with motors" )
Gets the current temperature of Herkulex

        Args:
            none

        Returns:
            int: the current temperature register of Herkulex

        Raises:
            SerialException: Error occured while opening serial port