Date: 2024-09-04
Document version: 2.0
Valid for: All MiR robots
Valid for software version: 2.x and 3.x
In some cases, you may want your robot to follow its path without it attempting to maneuver around any dynamic obstacles, approximating the way an AGV drives. Setting your robot to deviate from its path within a set distance or not to deviate at all is known as Line-following mode.
There are differences in the Line-following process for software 2.x and 3.x. This guide describes the differences and provides instructions for both versions. Make sure to check during the guide which instructions apply for your software version.
This guide mainly uses screenshots from software 3.x. There are small variations in the interface for software 2.x.
There are three different methods of setting a robot to Line-following mode:
in Planner settings
in missions
in Planner zones
In the following images, the dotted blue line shows the path of the robot. The section of the path where it drives in Line-following mode is highlighted in blue.
![]() In Planner settings When Line-following is enabled in Planner settings, the robot always drives in Line-following mode, unless it drives in a zone or in a mission with other settings. This is useful if the robot must use Line-following in a continuous loop where it is important to drive an exact route. | ![]() In missions When Line-following is enabled in missions, the robot only drives in Line-following mode from when the mode is enabled to when it is disabled in a mission. This is useful if the robot must use Line-following when driving between two or more positions. |
![]() In Planner zones When Line-following is enabled in Planner zones, the robot only drives in Line-following mode when it is within that zone. This is useful if the robot must drive accurately within a certain area, such as a work cell or tightly confined space. |
|
You can set the robot to Line-following mode by modifying three parameters under Planner settings.
These settings can be modified in the system settings, in a Planner settings action, or in a Planner zone.
Software 3.x | Software 2.x | Definition | Strict Line-following value |
---|---|---|---|
Maximum path deviation | Path deviation | The maximum distance in meters you want the robot to be allowed to deviate from the path before it generates a new path. Any value below 0.1 meters is considered Line-following mode. | 0 |
Waiting for obstacle | Path timeout | The number of seconds that the robot waits if its path is blocked before it generates a new global path. A negative value makes the robot wait indefinitely for obstacles to move out of its way instead of generating a new path. | -1 |
Obstacle history clearing | Obstacle history clearing | Clearing all obstacle history ensures that the robot only avoids the obstacles it detects while driving and does not take into account any previously detected obstacles. If you do not enable this feature, the robot may get stuck in a situation where it cannot drive further since it has remembered that an obstacle is in the way even though it is not. | Clear all |
Maximum distance from path | Not available on 2.x | Should not be changed. | -1 |
You can set how strictly you want the robot to follow its path, using the parameter Maximum path deviation. Modifying Maximum path deviation to 0 results in strict Line-following where the robot cannot deviate from the path at all. Setting it to any other positive value results in semi-strict Line-following where the entered value defines how many meters from the path the robot can deviate.
![]() Semi-strict Line-following The robot can deviate from the path by the user-set distance in meters to avoid obstacles. | ![]() Strict Line-following The robot does not deviate from its path and will wait for the obstacle to move. |
Sign in to the robot interface, and go to System > Settings > Planner. This is where you can change the settings for how the robot generates and follows its planned paths.
Change the parameter Waiting for obstacle to -1.
Change the parameter Maximum path deviation to the value the robot may deviate from its path.
For strict Line-following, set the value to 0.
For semi-strict Line-following, set the value to the distance in meters the robot may deviate.
We recommend to change the parameter Obstacle history clearing to Clear all.
Select Save at the bottom of the page. The robot is now set to drive in Line-following mode always.
Sign in to the robot interface, go to Setup > Missions, and either create a new mission or edit an existing mission. To edit an existing mission, select Edit for the mission you want to modify. To create a new mission, select Create.
Add two Planner settings actions from the Move menu, and drag them to the point in your mission where you want the robot to begin Line-following. These will be used to modify Maximum path deviation and Waiting for obstacle.
Edit the first action by selecting Edit , and set the parameters as follows:
Planner settings: Select Waiting for obstacle.
Value: Set to -1.
Edit the second action by selecting Edit , and set the parameters as follows:
Planner settings: Select Maximum path deviation.
Value: For strict Line-following, set the value to 0. For semi-strict Line-following, set the value to the distance in meters the robot may deviate.
We recommend adding a third Planner settings action for Obstacle history clearing where the parameters are set as follows:
Planner settings: Select Obstacle history clearing.
Value: Set to Clear all.
The robot will now execute all subsequent actions in Line-following mode.
To set the robot back to its standard operating mode within a mission, insert the same number of Planner settings actions that revert Waiting for obstacle, Maximum path deviation, Maximum distance from path (software 3.x only) and Obstacle history clearing to their standard settings.
Planner setting | Standard setting value |
---|---|
Waiting for obstacle | 0 |
Maximum path deviation | 5 |
Maximum distance from path | -1 |
Obstacle clearing history | No clearing |
Starting a new mission does not revert the values back to their standard settings. You must change the values in a mission using Planner settings actions.
Sign in to the robot interface, go to Setup > Maps, and either create a new map or edit an existing map. To edit an existing map, select Edit for the map you want to modify. To create a new map, select Create.
In the map, create a Planner zone covering the area where the robot must drive in Line-following mode.
Add a Waiting for obstacle action to the zone, and set it to -1.
Add a Maximum path deviation action to the zone, and set it to the distance the robot may deviate from its path.
For strict Line-following, set the value to 0.
For semi-strict Line-following, set the value to the distance in meters the robot may deviate.
It is recommended to add an Obstacle history action to the zone, and set it to Clear all. To do this, select Obstacle history in the list, select Add, and under Obstacle history clearing, set the value to Clear all.
Select OK when you have finished. The robot will now drive in Line-following mode whenever it enters the Planner zone.
Version | Date | Description |
---|---|---|
2.0 | 2024-09-04 | Updated for software 3.x. General improvements throughout the guide. |
1.1 | 2021-06-01 | Updated for new Support site. |
1.0 | 2020-03-05 | First edition. |