mirror of
https://github.com/AtsushiSakai/PythonRobotics.git
synced 2026-01-14 01:28:23 -05:00
* 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
23 lines
452 B
Python
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__)
|