def setXYValues(self,newX,newY): vel = CMDVel() myW=-newX*(self.sensors.motors.getMaxW())*2 myV=-newY*(self.sensors.motors.getMaxV()) vel.vx = myV vel.az = myW self.sensors.motors.sendVelocities(vel)
def setXYValues(self,newX,newY): vel = CMDVel() myW=-newX*(self.motors.getMaxW())*2 myV=-newY*(self.motors.getMaxV()) vel.vx = myV vel.az = myW self.motors.sendVelocities(vel)
def setXYValues(self, newX, newY): self.XValue.setText(str(newX)) self.YValue.setText(str(newY)) if (self.motors): vel = CMDVel() myW = -newX * self.motors.getMaxW() myV = -newY * self.motors.getMaxV() vel.vx = myV vel.az = myW self.motors.sendVelocities(vel)
def setXYValues(self, newX, newY): self.XValue.setText(str(newX)) self.YValue.setText(str(newY)) if (self.motors): vel = CMDVel() myW=-newX*self.motors.getMaxW() myV=-newY*self.motors.getMaxV() vel.vx = myV vel.az = myW self.motors.sendVelocities(vel)
#!/usr/bin/env python3 import config import comm import sys import time import signal from jderobotTypes import CMDVel if __name__ == '__main__': cfg = config.load(sys.argv[1]) jdrc= comm.init(cfg, "Test") vel = CMDVel() vel.vx = 1 vel.az = 0.1 client = jdrc.getMotorsClient("Test.Motors") for i in range (10): client.sendVelocities(vel) time.sleep(1) jdrc.destroy()
#!/usr/bin/env python3 import easyiceconfig as EasyIce import jderobotComm as comm import sys import time import signal from jderobotTypes import CMDVel if __name__ == '__main__': ic = EasyIce.initialize(sys.argv) ic, node = comm.init(ic) vel = CMDVel() vel.vx = 1 vel.az = 0.1 client = comm.getMotorsClient(ic, "kobukiViewer.Motors") #client2 = comm.getLaserClient(ic, "kobukiViewer.Laser") for i in range (10): client.sendVelocities(vel) time.sleep(1) comm.destroy(ic, node)