Files
PythonRobotics/tests/test_move_to_pose.py
Muhammad-Yazdian bf4e68245f Add speed limitation of the robot (#595)
* Added speed limitation of the robot

* Removed leading underscores for global vars

* Added unit test for robot speed limitation

* Modified x/abs(x) to np.sign(x); fixed code style

* Removed 'random' from test func header comment
2021-12-12 21:32:59 +09:00

23 lines
452 B
Python

import conftest # Add root path to sys.path
from Control.move_to_pose import move_to_pose as m
def test_1():
m.show_animation = False
m.main()
def test_2():
"""
This unit test tests the move_to_pose.py program for a MAX_LINEAR_SPEED and
MAX_ANGULAR_SPEED
"""
m.show_animation = False
m.MAX_LINEAR_SPEED = 11
m.MAX_ANGULAR_SPEED = 5
m.main()
if __name__ == '__main__':
conftest.run_this_test(__file__)