Robotics StackExchange | Archived questions

turtlebot3 ROS line follower

i have a turtlebot3 and i want to make it follow the black line on a white line map. I have the raspberry Pi camera interface, but i do not know where to set up the programming or how to set the camera to track it. essentially i need a how to guide on how to make it follow the line. is there any tutorial on how to acheive this?

it has a raspberry Pi 3, Raspberry Pi camera interface Ubuntu 16.04 and UBUNTU Mate ROS Kinetic

i know i need the camera to differentiate between the line and the white space, and translate those measurements relative to the bot. any tutorials or code would be appreciated.

Asked by AM1777 on 2019-03-21 16:23:07 UTC

Comments

Answers

Start with ROS tutorials: https://wiki.ros.org/ROS/Tutorials

Then take a look at OpenCV tutorials:

General guidelines:

  • Get the image from the camera and display it in RViz
  • Set up a package that uses OpenCV to process the image
  • Find the right processing for OpenCV that will allow you to detect the line
  • Find a way to transform the output of your OpenCV algorithm into robot movements
  • Make the robot move given the output of the OpenCV processing

Asked by VictorLamoine on 2019-03-22 06:25:48 UTC

Comments

Check out the following code: https://github.com/ROBOTIS-GIT/turtlebot3_autorace Haven't tested it yet but seems like a good start ..

Asked by Ocean-11 on 2019-04-22 23:30:25 UTC

Comments