def cbSrvSetLimit(self, req): self.limit = self.setLimit(req.value) rospy.set_param("/" + self.veh_name + "/limit", self.limit) self.printValues() return SetValueResponse()
def cbSrvSetMotorAlpha(self, req): self.motor_alpha = req.value rospy.set_param("/" + self.veh_name + "/motor_alpha", self.motor_alpha) self.printValues() return SetValueResponse()
def cbSrvSetK(self, req): self.k = req.value rospy.set_param("/" + self.veh_name + "/k", self.k) self.printValues() return SetValueResponse()
def cbSrvSetRadius(self, req): self.radius = req.value rospy.set_param("/" + self.veh_name + "/radius", self.radius) self.printValues() return SetValueResponse()
def cbSrvSetBaseline(self, req): self.baseline = req.value rospy.set_param("/" + self.veh_name + "/baseline", self.baseline) self.printValues() return SetValueResponse()
def cbSrvSetTrim(self, req): self.trim = req.value rospy.set_param("/" + self.veh_name + "/trim", self.trim) self.printValues() return SetValueResponse()
def cbSrvSetGain(self, req): self.gain = req.value rospy.set_param("/" + self.veh_name + "/gain", self.gain) self.printValues() return SetValueResponse()