Пример #1
0
    def setHamperAngle(self, angle):
        fractionOpen = angle/(math.pi/2.0)
        
        msg = HamperMsg()
        msg.fractionOpen = fractionOpen
        self.hamperPub.publish(msg)

        pass
 def setHamperAngle(self, fractionOpen):
     msg = HamperMsg()
     msg.fractionOpen = fractionOpen
     self.hamperPub.publish(msg)
     return