コード例 #1
0
ファイル: Seeker.py プロジェクト: Yonder-Dynamics/rover-ctl
 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
コード例 #2
0
 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
コード例 #3
0
 def detach(self):
     ControlState.detach(self)
     SearchState.detach(self)
     self.odom_sub.unregister()
コード例 #4
0
 def attach(self):
     ControlState.attach(self)
     SearchState.attach(self)
     self.startAngle = None
     self.odom_sub = rospy.Subscriber("/fusion/local_fusion/filtered",
                                      Odometry, self.update)
コード例 #5
0
ファイル: Seeker.py プロジェクト: Yonder-Dynamics/rover-ctl
 def attach(self):
     ControlState.attach(self)
     SearchState.attach(self)
     self.odom_sub = rospy.Subscriber("/fusion/local_fusion/filtered",
                                      Odometry, self.odomCallback)
コード例 #6
0
 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
コード例 #7
0
 def detach(self):
     SearchState.detach(self)
     self.odom_sub.unregister()