Exemplo n.º 1
0
    def test_is_not_finished(self):
        """Checks if MoveAction correctly detects that it's not finished."""
        action = MoveAction(5)
        self.robot.odometry.pose.pose.position.x = 3
        self.robot.odometry.pose.pose.position.y = 2

        self.assertFalse(action.is_finished(self.robot))
Exemplo n.º 2
0
    def test_is_not_finished(self):
        """Checks if MoveAction correctly detects that it's not finished."""
        action = MoveAction(5)
        self.robot.odometry.pose.pose.position.x = 3
        self.robot.odometry.pose.pose.position.y = 2

        self.assertFalse(action.is_finished(self.robot))
Exemplo n.º 3
0
    def test_is_finished(self):
        """Checks if MoveAction correctly detects that it's finished."""
        action = MoveAction(5)
        self.robot.odometry.pose.pose.position.x = 5
        self.robot.odometry.pose.pose.position.y = 5

        self.assertTrue(action.is_finished(self.robot))
Exemplo n.º 4
0
    def test_is_finished(self):
        """Checks if MoveAction correctly detects that it's finished."""
        action = MoveAction(5)
        self.robot.odometry.pose.pose.position.x = 5
        self.robot.odometry.pose.pose.position.y = 5

        self.assertTrue(action.is_finished(self.robot))