# This file is part of the P3IV Simulator (https://github.com/fzi-forschungszentrum-informatik/P3IV),
# copyright by FZI Forschungszentrum Informatik, licensed under the BSD-3 license (see LICENSE file in main directory)

import unittest
import numpy as np
from p3iv_types.motion import MotionState, MotionStateArray


class MotionStateTest(unittest.TestCase):
    def test_empty(self):
        MotionState()


class MotionStateArrayTest(unittest.TestCase):
    def test_empty(self):
        MotionStateArray()

    def test_mp(self):
        pos = np.array([[1, 0], [2, 2], [3, 3], [4, 4]])
        m = MotionStateArray()
        m(pos, dt=0.1)
        print(m)
        print((m.position))
        print((m[1]))
        print((m[:2]))
        m1 = m
        m2 = m
        m.append(m1)
        # print(m1 + m2)
        # print(m1 - m2)


if __name__ == "__main__":
    unittest.main()

64bd61578c40dfab00dbc19da1eb4478c608fac1
<mask token>


class MotionStateArrayTest(unittest.TestCase):

    def test_empty(self):
        MotionStateArray()

    def test_mp(self):
        pos = np.array([[1, 0], [2, 2], [3, 3], [4, 4]])
        m = MotionStateArray()
        m(pos, dt=0.1)
        print(m)
        print(m.position)
        print(m[1])
        print(m[:2])
        m1 = m
        m2 = m
        m.append(m1)


<mask token>

<mask token>


class MotionStateTest(unittest.TestCase):
    <mask token>


class MotionStateArrayTest(unittest.TestCase):

    def test_empty(self):
        MotionStateArray()

    def test_mp(self):
        pos = np.array([[1, 0], [2, 2], [3, 3], [4, 4]])
        m = MotionStateArray()
        m(pos, dt=0.1)
        print(m)
        print(m.position)
        print(m[1])
        print(m[:2])
        m1 = m
        m2 = m
        m.append(m1)


<mask token>

<mask token>


class MotionStateTest(unittest.TestCase):

    def test_empty(self):
        MotionState()


class MotionStateArrayTest(unittest.TestCase):

    def test_empty(self):
        MotionStateArray()

    def test_mp(self):
        pos = np.array([[1, 0], [2, 2], [3, 3], [4, 4]])
        m = MotionStateArray()
        m(pos, dt=0.1)
        print(m)
        print(m.position)
        print(m[1])
        print(m[:2])
        m1 = m
        m2 = m
        m.append(m1)


<mask token>

<mask token>


class MotionStateTest(unittest.TestCase):

    def test_empty(self):
        MotionState()


class MotionStateArrayTest(unittest.TestCase):

    def test_empty(self):
        MotionStateArray()

    def test_mp(self):
        pos = np.array([[1, 0], [2, 2], [3, 3], [4, 4]])
        m = MotionStateArray()
        m(pos, dt=0.1)
        print(m)
        print(m.position)
        print(m[1])
        print(m[:2])
        m1 = m
        m2 = m
        m.append(m1)


if __name__ == '__main__':
    unittest.main()

# This file is part of the P3IV Simulator (https://github.com/fzi-forschungszentrum-informatik/P3IV),
# copyright by FZI Forschungszentrum Informatik, licensed under the BSD-3 license (see LICENSE file in main directory)

import unittest
import numpy as np
from p3iv_types.motion import MotionState, MotionStateArray


class MotionStateTest(unittest.TestCase):
    def test_empty(self):
        MotionState()


class MotionStateArrayTest(unittest.TestCase):
    def test_empty(self):
        MotionStateArray()

    def test_mp(self):
        pos = np.array([[1, 0], [2, 2], [3, 3], [4, 4]])
        m = MotionStateArray()
        m(pos, dt=0.1)
        print(m)
        print((m.position))
        print((m[1]))
        print((m[:2]))
        m1 = m
        m2 = m
        m.append(m1)
        # print(m1 + m2)
        # print(m1 - m2)


if __name__ == "__main__":
    unittest.main()
