Closed VAM7686 closed 2 years ago
Swerve drive motor controller.
This PR does the following:
Fixes #816
Note: All movements should be in accordance with REP 103.
roslaunch igvc_gazebo ramp_lane.launch model:=1
roslaunch igvc_navigation swerve_drive.launch
rostopic pub /cmd_vel geometry_msgs/Twist "linear: x: 1.0 y: 0.0 z: 0.0 angular: x: 0.0 y: 0.0 z: 0.0"
Expectation: Swervi should go directly forward.
rostopic pub /cmd_vel geometry_msgs/Twist "linear: x: 0.0 y: 1.0 z: 0.0 angular: x: 0.0 y: 0.0 z: 0.0"
Expectation: Swervi should go to the left.
rostopic pub /cmd_vel geometry_msgs/Twist "linear: x: 0.0 y: 0.0 z: 0.0 angular: x: 0.0 y: 0.0 z: 1.0"
Expectation: Swervi should rotate counter clockwise.
catkin_make run_tests_igvc_platform_rostest_src_tests_test_test_swerve_control.test
Expectation: All tests pass.
make format
Description
Swerve drive motor controller.
This PR does the following:
Fixes #816
Testing steps
Note: All movements should be in accordance with REP 103.
Test Case 1
roslaunch igvc_gazebo ramp_lane.launch model:=1
roslaunch igvc_navigation swerve_drive.launch
Expectation: Swervi should go directly forward.
Test Case 2
roslaunch igvc_gazebo ramp_lane.launch model:=1
roslaunch igvc_navigation swerve_drive.launch
Expectation: Swervi should go to the left.
Test Case 3
roslaunch igvc_gazebo ramp_lane.launch model:=1
roslaunch igvc_navigation swerve_drive.launch
Expectation: Swervi should rotate counter clockwise.
Test Case 4
catkin_make run_tests_igvc_platform_rostest_src_tests_test_test_swerve_control.test
Expectation: All tests pass.
Self Checklist
make format