Пример #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)