<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.wiegert.link/index.php?action=history&amp;feed=atom&amp;title=OpenMower_Simulation</id>
	<title>OpenMower Simulation - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.wiegert.link/index.php?action=history&amp;feed=atom&amp;title=OpenMower_Simulation"/>
	<link rel="alternate" type="text/html" href="https://wiki.wiegert.link/index.php?title=OpenMower_Simulation&amp;action=history"/>
	<updated>2026-06-22T21:04:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>https://wiki.wiegert.link/index.php?title=OpenMower_Simulation&amp;diff=489&amp;oldid=prev</id>
		<title>Damme at 21:16, 20 June 2026</title>
		<link rel="alternate" type="text/html" href="https://wiki.wiegert.link/index.php?title=OpenMower_Simulation&amp;diff=489&amp;oldid=prev"/>
		<updated>2026-06-20T21:16:35Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:16, 20 June 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  Only use &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;these is &lt;/del&gt;you are running bare metal custom build! Otherwise go to the official wiki, this is just a backup for personal reference!&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  Only use &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;this wiki if &lt;/ins&gt;you are running bare metal custom build! Otherwise go to the official wiki, this is just a backup for personal reference!&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki:diff::1.12:old-485:rev-489 --&gt;
&lt;/table&gt;</summary>
		<author><name>Damme</name></author>
	</entry>
	<entry>
		<id>https://wiki.wiegert.link/index.php?title=OpenMower_Simulation&amp;diff=485&amp;oldid=prev</id>
		<title>Damme at 21:15, 20 June 2026</title>
		<link rel="alternate" type="text/html" href="https://wiki.wiegert.link/index.php?title=OpenMower_Simulation&amp;diff=485&amp;oldid=prev"/>
		<updated>2026-06-20T21:15:49Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:15, 20 June 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; Only use these is you are running bare metal custom build! Otherwise go to the official wiki, this is just a backup for personal reference!&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Introduction ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Introduction ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You can test the OpenMower software stack yourself by running a simulation where you can record a map and then have it mowed in a simulation on-screen.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You can test the OpenMower software stack yourself by running a simulation where you can record a map and then have it mowed in a simulation on-screen.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki:diff::1.12:old-477:rev-485 --&gt;
&lt;/table&gt;</summary>
		<author><name>Damme</name></author>
	</entry>
	<entry>
		<id>https://wiki.wiegert.link/index.php?title=OpenMower_Simulation&amp;diff=477&amp;oldid=prev</id>
		<title>Damme: Created page with &quot;== Introduction == You can test the OpenMower software stack yourself by running a simulation where you can record a map and then have it mowed in a simulation on-screen.   It's a bit rough around the edges, but it's a good way to see the software in action without hardware.  This mini-HOWTO is meant to save you a bit of detective work and get you started, not to be a comprehensive guide to the simulation.  == Prerequisites == You need the OpenMower software '''on a plat...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.wiegert.link/index.php?title=OpenMower_Simulation&amp;diff=477&amp;oldid=prev"/>
		<updated>2026-06-20T21:01:39Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Introduction == You can test the OpenMower software stack yourself by running a simulation where you can record a map and then have it mowed in a simulation on-screen.   It&amp;#039;s a bit rough around the edges, but it&amp;#039;s a good way to see the software in action without hardware.  This mini-HOWTO is meant to save you a bit of detective work and get you started, not to be a comprehensive guide to the simulation.  == Prerequisites == You need the OpenMower software &amp;#039;&amp;#039;&amp;#039;on a plat...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Introduction ==&lt;br /&gt;
You can test the OpenMower software stack yourself by running a simulation where you can record a map and then have it mowed in a simulation on-screen. &lt;br /&gt;
&lt;br /&gt;
It's a bit rough around the edges, but it's a good way to see the software in action without hardware.&lt;br /&gt;
&lt;br /&gt;
This mini-HOWTO is meant to save you a bit of detective work and get you started, not to be a comprehensive guide to the simulation.&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
You need the OpenMower software '''on a platform that has ROS and a graphical interface''' for rviz to be able to run and show the map. Ubuntu 20 on a desktop is a good choice, possibly on VM, VirtualBox is an excellent choice, if you do not already have a running Ubuntu 20 desktop environment.&lt;br /&gt;
&lt;br /&gt;
* '''Install ROS on Ubuntu''': http://wiki.ros.org/noetic/Installation/Ubuntu - use the full install&lt;br /&gt;
** Note: make sure that you have the ROS environment set up in your terminal by &amp;lt;code&amp;gt;echo &amp;quot;source /opt/ros/noetic/setup.bash&amp;quot; &amp;gt;&amp;gt; ~/.bashrc&amp;lt;/code&amp;gt;  and log out and back in.&lt;br /&gt;
* '''Install the OpenMower software:''' Use the instructions here: [[Setting up ROS on a Raspberry Pi (intended to be the Rover -- OpenMower)]]&lt;br /&gt;
** Make sure that you have had &amp;lt;code&amp;gt;catkin_make&amp;lt;/code&amp;gt; succeed (may take a few tries, often 4 or more)&lt;br /&gt;
&lt;br /&gt;
You need to have a game controller for controlling the simulated bot.&lt;br /&gt;
&lt;br /&gt;
== Making sure the OpenMower environment is sourced ==&lt;br /&gt;
''Whenever you are doing anything in a terminal with OpenMower'', you need to make sure that ROS knows your OpenMower workspace.&lt;br /&gt;
&lt;br /&gt;
In every terminal that you use: &amp;lt;code&amp;gt;source ~/OpenMower/ROS/devel/setup.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Running the simulation ==&lt;br /&gt;
&lt;br /&gt;
=== Recording a map ===&lt;br /&gt;
[[File:VirtualBox enable USB.png|thumb|Enable USB ports on VirtualBox]]&lt;br /&gt;
Attach your joystick to a USB port. If you are on a VirtualBox, make sure that the USB port of your joystick / gamepad is mapped into your Ubuntu environment (see illustration).&lt;br /&gt;
&lt;br /&gt;
Open a terminal and execute&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;roslaunch ~/OpenMower/ROS/src/open_mower_ros/open_mower/launch/sim_mower_logic.launch&amp;lt;/code&amp;gt;&lt;br /&gt;
[[File:Simulation running.png|thumb|OpenMower simulation running]]&lt;br /&gt;
This will launch rviz where you can see the Rover and the map.&lt;br /&gt;
&lt;br /&gt;
Use your joystick to record a map and a base. On my gamepad, the buttons are&lt;br /&gt;
&lt;br /&gt;
* 1 - enable movement&lt;br /&gt;
* 2 - start path recording&lt;br /&gt;
* 4 + ↓ - end path recording&lt;br /&gt;
* 3 - register base&lt;br /&gt;
&lt;br /&gt;
Then exit rviz and the map will be recorded in &amp;lt;code&amp;gt;~/.ros/map.bag&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to record a new map, delete the old one, &amp;lt;code&amp;gt;rm ~/.ros/map.bag&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Running the simulation ===&lt;br /&gt;
&amp;lt;code&amp;gt;roslaunch ~/OpenMower/ROS/src/open_mower_ros/open_mower/launch/sim_mower_logic.launch&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will launch rviz with the map and rqt_reconfigure where you can control various parameters of the simulation.&lt;br /&gt;
&lt;br /&gt;
You will need to press &amp;lt;code&amp;gt;manual_start_mowing&amp;lt;/code&amp;gt; in rqt_reconfigure to start the simulation. You will probably need to zoom out, find your area and then zoom in again on that in rviz.&lt;br /&gt;
&lt;br /&gt;
== Diagnostics / debugging / issues ==&lt;br /&gt;
&lt;br /&gt;
=== Joystick ===&lt;br /&gt;
[[File:Which joystick to use.png|thumb|Which joystick to use]]&lt;br /&gt;
Your joystick needs to be transmitting messages on the topic /joy. To test that it does:&lt;br /&gt;
&lt;br /&gt;
* Run &amp;lt;code&amp;gt;roslaunch ~/OpenMower/ROS/src/open_mower_ros/open_mower/launch/sim_record_area.launch&amp;lt;/code&amp;gt;&lt;br /&gt;
* In a new terminal run &amp;lt;code&amp;gt;rostopic echo /joy&amp;lt;/code&amp;gt;&lt;br /&gt;
You should see messages from the joystick streaming on screen. Test that pressing buttons etc. is reflected in the messages.&lt;br /&gt;
&lt;br /&gt;
If not:&lt;br /&gt;
&lt;br /&gt;
* Check which joysticks your Ubuntu installation knows: &amp;lt;code&amp;gt;ls -l /dev/input/js*&amp;lt;/code&amp;gt;&lt;br /&gt;
* Try to add/adjust which joystick the recorder uses in sim_record_area.launch to use the correct joystick, see illustration here.&lt;br /&gt;
&lt;br /&gt;
===Buttons===&lt;br /&gt;
The control buttons can be edited here:&lt;br /&gt;
*movement activation button&lt;br /&gt;
**File: &amp;lt;code&amp;gt;~/OpenMower/ROS/src/open_mower_ros/open_mower/launch/sim_record_area.launch&amp;lt;/code&amp;gt;&lt;br /&gt;
**Line 17: &amp;lt;code&amp;gt;&amp;lt;param name=&amp;quot;~enable_turbo_button&amp;quot; value=&amp;quot;4&amp;quot;/&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
*area and base recording buttons&lt;br /&gt;
**File: &amp;lt;code&amp;gt;~/OpenMower/ROS/src/open_mower_ros/mower_area_recorder/src/area_recorder.cpp&amp;lt;/code&amp;gt;&lt;br /&gt;
**Lines 61 ff.&lt;br /&gt;
&lt;br /&gt;
==Additional notes / info==&lt;br /&gt;
&lt;br /&gt;
===rviz and OpenMower on different machines ===&lt;br /&gt;
This is all running on one platform - the OpenMower simulation AND the graphical interface, hence the choice of desktop to have a graphical environment. In the real situation, the Rover with the OpenMower software is running on a headless Pi. If you still want to have the ability to see paths and maps (which is possible) in rviz, you need to do that on a separate desktop environment. That is possible. You can use the environment that you set up here, but the Rover and on the Desktop must be on the same network and need a little setup in your &amp;lt;code&amp;gt;~/.bashrc&amp;lt;/code&amp;gt; to see each other as being part of the same ROS installation.&lt;br /&gt;
&lt;br /&gt;
'''On Rover, in &amp;lt;code&amp;gt;~/.bashrc&amp;lt;/code&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;export ROS_HOSTNAME=192.168.1.126 # replace with your ip for your Rover&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;export ROS_MASTER_URI=&amp;lt;nowiki&amp;gt;http://192.168.1.126:11311&amp;lt;/nowiki&amp;gt; # same as above&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''On Desktop, in &amp;lt;code&amp;gt;~/.bashrc&amp;lt;/code&amp;gt;'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;export ROS_HOSTNAME=192.168.1.123 # replace with your ip for your Desktop environment&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;export ROS_MASTER_URI=&amp;lt;nowiki&amp;gt;http://192.168.1.126:11311&amp;lt;/nowiki&amp;gt; # eplace with your ip for your Rover&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Note on network visibility and guests on VirtualBox====&lt;br /&gt;
To make your Ubuntu installation running as guest in VirtualBox be able to have an externally accessible ip number and be able to talk to the Rover, you must&lt;br /&gt;
&lt;br /&gt;
#use a cabled network (not Wifi!!) to your computer that acts as host for VirtualBox and your Ubuntu guest OS&lt;br /&gt;
#use a &amp;lt;code&amp;gt;Bridged Adaptor&amp;lt;/code&amp;gt; to the cabled interface for the network setup in VirtualBox for your Ubuntu host.&lt;/div&gt;</summary>
		<author><name>Damme</name></author>
	</entry>
</feed>