<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rsewiki.electro.dtu.dk/index.php?action=history&amp;feed=atom&amp;title=Camera_based_line_follower</id>
	<title>Camera based line follower - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://rsewiki.electro.dtu.dk/index.php?action=history&amp;feed=atom&amp;title=Camera_based_line_follower"/>
	<link rel="alternate" type="text/html" href="https://rsewiki.electro.dtu.dk/index.php?title=Camera_based_line_follower&amp;action=history"/>
	<updated>2026-05-14T08:49:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://rsewiki.electro.dtu.dk/index.php?title=Camera_based_line_follower&amp;diff=2283&amp;oldid=prev</id>
		<title>Jca: Created page with &quot;===Video of Line Following RegBot===  In this first GIF a video is captured of the RegBot during it&#039;s run on line. The RegBot is set to take right turns.   [[File:Line_video.g...&quot;</title>
		<link rel="alternate" type="text/html" href="https://rsewiki.electro.dtu.dk/index.php?title=Camera_based_line_follower&amp;diff=2283&amp;oldid=prev"/>
		<updated>2016-04-15T07:48:42Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;===Video of Line Following RegBot===  In this first GIF a video is captured of the RegBot during it&amp;#039;s run on line. The RegBot is set to take right turns.   [[File:Line_video.g...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===Video of Line Following RegBot===&lt;br /&gt;
&lt;br /&gt;
In this first GIF a video is captured of the RegBot during it&amp;#039;s run on line. The RegBot is set to take right turns.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Line_video.gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This second GIF shows the run as seen on the RegBot. A rectangle bounding box is drawn around the boundaries of the tape-line contours. The red dot is the middle of the box/line and the blue dot functions as a navigation offset as the camera is mounted left to the center on RegBot and the RegBot should be driving on the center of the line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Line.gif]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===How to use the application===&lt;br /&gt;
&lt;br /&gt;
When turning on the RegBot the Raspberry Pi and the Line Follower application will automatically start.&lt;br /&gt;
&lt;br /&gt;
To wirelessly control and communicate with the RegBot and the Line Follower application open up a SSH session by using &amp;#039;&amp;#039;&amp;#039;Putty&amp;#039;&amp;#039;&amp;#039; on Windows and &amp;#039;&amp;#039;&amp;#039;Terminal&amp;#039;&amp;#039;&amp;#039; on Linux and Mac.&lt;br /&gt;
&lt;br /&gt;
To access the RegBot type in:&lt;br /&gt;
&lt;br /&gt;
 ssh pi@hostname.local&lt;br /&gt;
&lt;br /&gt;
where hostname should have been changed to &amp;#039;&amp;#039;&amp;#039;regbotxx&amp;#039;&amp;#039;&amp;#039; corresponding to the robots number.&lt;br /&gt;
&lt;br /&gt;
The default password to a Raspberry Pi is &amp;#039;&amp;#039;&amp;#039;raspberry&amp;#039;&amp;#039;&amp;#039;, but this should have been changed to e.g. &amp;#039;&amp;#039;&amp;#039;filippa&amp;#039;&amp;#039;&amp;#039; corresponding to the robots name.&lt;br /&gt;
&lt;br /&gt;
When the SSH session is open attach to the running Line Follower instance:&lt;br /&gt;
&lt;br /&gt;
 tmux attach&lt;br /&gt;
&lt;br /&gt;
This will present a window like this:&lt;br /&gt;
&lt;br /&gt;
[[File:Tmux_attach.png|500px]]&lt;br /&gt;
&lt;br /&gt;
In the bottom window 1 should be presented as &amp;#039;&amp;#039;&amp;#039;1:linefollow&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
To attach to window 1 press &amp;#039;&amp;#039;&amp;#039;Ctrl+B&amp;#039;&amp;#039;&amp;#039; then &amp;#039;&amp;#039;&amp;#039;1&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
As usual typing &amp;#039;&amp;#039;&amp;#039;help&amp;#039;&amp;#039;&amp;#039; will list the available commands for the RegBot.&lt;br /&gt;
&lt;br /&gt;
Typing &amp;#039;&amp;#039;&amp;#039;pihelp&amp;#039;&amp;#039;&amp;#039; will give a list of commands to the Line Follower application:&lt;br /&gt;
&lt;br /&gt;
          ### COMMANDS ### &lt;br /&gt;
 &lt;br /&gt;
 pihelp:               this text&lt;br /&gt;
 left:                 regbot will make left turns [default]&lt;br /&gt;
 right:                regbot will make right turns&lt;br /&gt;
 linemode=0:           regbot will run till end of line [default]&lt;br /&gt;
 linemode=xxxx:        regbot will run till xxxx frames have been captured&lt;br /&gt;
 black:                regbot will run on black lines [default]&lt;br /&gt;
 white:                regbot will run on white lines&lt;br /&gt;
 err=xx:               sets a threshold on how many errors the robot&lt;br /&gt;
                       can make before stopping - if it fails during turns,&lt;br /&gt;
                       this variable probably needs to go up! [default = 4]&lt;br /&gt;
 &lt;br /&gt;
         ### ######## ###&lt;br /&gt;
&lt;br /&gt;
To run the Line Follower mission on the RegBot change the mission to &amp;#039;&amp;#039;&amp;#039;M=8&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
To detach (exit) the session &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; type &amp;#039;&amp;#039;&amp;#039;exit&amp;#039;&amp;#039;&amp;#039; as this will shut down the running instance. Instead press &amp;#039;&amp;#039;&amp;#039;Ctrl+B&amp;#039;&amp;#039;&amp;#039; then &amp;#039;&amp;#039;&amp;#039;D&amp;#039;&amp;#039;&amp;#039; to detach and then close down the SSH session by either closing the window or typing &amp;#039;&amp;#039;&amp;#039;exit&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
===Details on how to set up Line Following RegBot===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Go to [[Vision based Line Follower]] for detailed information on the project and instructions on how to setup a new Line Following RegBot.&lt;/div&gt;</summary>
		<author><name>Jca</name></author>
	</entry>
</feed>