enable freedrive mode
This commit is contained in:
		
							
								
								
									
										12
									
								
								urx/urx.py
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								urx/urx.py
									
									
									
									
									
								
							| @@ -515,6 +515,18 @@ class Robot(object): | |||||||
|     def get_analog_in(self, nb): |     def get_analog_in(self, nb): | ||||||
|         return self.robot.getAnalogInput(nb) |         return self.robot.getAnalogInput(nb) | ||||||
|  |  | ||||||
|  |     def set_freedrive(self, val): | ||||||
|  |         if val: | ||||||
|  |             self.robot.sendProgram("set robotmode freedrive") | ||||||
|  |         else: | ||||||
|  |             self.robot.sendProgram("set robotmode run") | ||||||
|  |  | ||||||
|  |     def set_simulation(self, val): | ||||||
|  |         if val: | ||||||
|  |             self.robot.sendProgram("set sim") | ||||||
|  |         else: | ||||||
|  |             self.robot.sendProgram("set real") | ||||||
|  |  | ||||||
|     def movej(self, joints, acc=0.1, vel=0.05, wait=True, relative=False): |     def movej(self, joints, acc=0.1, vel=0.05, wait=True, relative=False): | ||||||
|         """ |         """ | ||||||
|         wrapper around the movej command in URRobot |         wrapper around the movej command in URRobot | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user