Ask Your Question

turtlebot3 ROS line follower

asked 2019-03-21 16:23:07 -0500

AM1777 gravatar image

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.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2019-03-22 06:25:48 -0500

VictorLamoine gravatar image

Start with 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
edit flag offensive delete link more

answered 2019-04-22 23:30:25 -0500

Ocean-11 gravatar image

Check out the following code: Haven't tested it yet but seems like a good start ..

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2019-03-21 16:23:07 -0500

Seen: 975 times

Last updated: Apr 22 '19