def __init__(self, confidence_thres, maxSpeedAtDist, maxSpeedAtAngle, minDriveSpeed, minTurningSpeed): ControlState.__init__(self, maxSpeedAtDist, maxSpeedAtAngle, minDriveSpeed, minTurningSpeed) SearchState.__init__(confidence_thres) self.goalTracker = goalTracker self.ball_pose = None
def __init__(self, confidence_thres, maxSpeedAtDist, maxSpeedAtAngle, minDriveSpeed, minTurningSpeed): ControlState.__init__(self, maxSpeedAtDist, maxSpeedAtAngle, minDriveSpeed, minTurningSpeed) SearchState.__init__(self, confidence_thres) self.odom_sub = None
def detach(self): ControlState.detach(self) SearchState.detach(self) self.odom_sub.unregister()
def attach(self): ControlState.attach(self) SearchState.attach(self) self.startAngle = None self.odom_sub = rospy.Subscriber("/fusion/local_fusion/filtered", Odometry, self.update)
def attach(self): ControlState.attach(self) SearchState.attach(self) self.odom_sub = rospy.Subscriber("/fusion/local_fusion/filtered", Odometry, self.odomCallback)
def __init__(self, confidence_thres, dist_thres, goalTracker): SearchState.__init__(confidence_thres) self.goalTracker = goalTracker self.dist_thres = dist_thres self.pose = None self.parent = None
def detach(self): SearchState.detach(self) self.odom_sub.unregister()