def setMode(self, mode):
        assert 0 <= 4 <= int(mode)

        msg = lcmrobotiq.command_t()
        msg.utime = getUtime()
        msg.activate = 1
        msg.emergency_release = 0
        msg.do_move = 0
        msg.position = 0
        msg.force = 0
        msg.velocity = 0
        msg.mode = int(mode)
        channel = 'ROBOTIQ_%s_COMMAND' % self.side.upper()
        lcmUtils.publish(channel, msg)

    # NB: added by Wolfgang 2015-07-27
    #     Not used on the Robotiq, but more for using the 
    #     RobotiqHandDriver as a more generic hand driver
dataset/ETHPy150Open RobotLocomotion/director/src/python/director/handdriver.py/RobotiqHandDriver.setMode/swapped operands of `<=`