Conclusion of Basic ROS
- roscpp / rospy
- topic / service / action
- launch (all-in-one)
- ros with opencv (monocular camera)
- youbot control (both arm and moobile base)
- Environment: Ubuntu 18.04 + ROS Melodic
- Platform: KUKA youBot
- Visual Device: Pointgrey Flea3 camera
-
Clone the repository to workspace and compile by
$ catkin_make -
Prepare the dependencies:
-
Adjust the filepathes in
.../script/follow_line.pyand.../script/follow_record.py -
Launch files:
roslaunch youbot_driver_ros_interface youbot_driver.launch roslaunch find_line youbot_findline.launch -
Follow the hints on the screen
/image_pub: the result image will be published to topic/camera/find_red_line(true) or directly show with cv::imshow (false)/print_red_info: (for debugging) print the information about line detection/do_arm_ini、/do_follow_line、/do_back_line、/do_arm_home: enable each task
M: SlopeWhite px: area of the above part of the path in pixel

