示例#1
0
 def feedback_cb(self,feed):
      
     ##publish this error data to the sensor and move the vehicle
     
     e=ipControllererror()
     e.dy=-feed.errorx
     e.dz=feed.errory
     
     self.resources.ipControllerPublisher.publish(e)
示例#2
0
	def feedback_cb(self,feed):
		##publish this error data to the sensor and move the vehicle
		msg=ipControllererror()
		msg.dy=feed.errorx
		msg.dx=msg.dy/tan(feed.errorangle)
		self.resources.ipControllerPublisher.publish(msg)
示例#3
0
 def feedback_cb(self, feed):
     ##publish this error data to the sensor and move the vehicle
     msg = ipControllererror()
     msg.dy = feed.errorx
     msg.dx = msg.dy / tan(feed.errorangle)
     self.resources.ipControllerPublisher.publish(msg)