Thumbnail

The Navigator

by Synthiam

A navigation skill for path planning based on receiving external location and obstacle data

Requires ARC v31 (Updated 3/6/2025)

How to add the The Navigator robot skill

  1. Load the most recent release of ARC (Get ARC).
  2. Press the Project tab from the top menu bar in ARC.
  3. Press Add Robot Skill from the button ribbon bar in ARC.
  4. Choose the Navigation category tab.
  5. Press the The Navigator icon to add the robot skill to your project.

Don't have a robot yet?

Follow the Getting Started Guide to build a robot and use the The Navigator robot skill.


How to use the The Navigator robot skill

A navigation skill for path planning based on receiving NMS location/positioning and obstacle data. This skill is combined with other skills that contribute navigation data to ARC's Navigation Messaging System (NMS).

Updated Skill

This robot skill has been superseded by a newer version called The Better Navigator.

Example

This screenshot uses an Intel RealSense T265 with three low-cost HC-SR04 ultrasonic distance sensors. The robot was instructed to drive around the waypoints at various speeds. Ideally, you want to use this robot skill with a 360-degree lidar or other high-resolution obstacle detection.

User-inserted image

Here is a video of The Navigator working in conjunction with the Intel RealSense T265 tracking camera skill, which operates at NMS Level #3 Group #2 by providing position/location data into the NMS

ARC Navigation Messaging System

This skill is part of the ARC navigation messaging system. Reading more about the Navigation Messaging System and learning compatible skills is encouraged. This particular skill (The Navigator) operates on Level #1 of the NMS overview. This skill (The Navigator) requires a Level #3 Group #2 location/position sensor for operation. The location/positioning system will feed position data into the NMS, which this skill will use for navigation. See the NMS for compatible skills that provide location/position data.

User-inserted image

Mapping

This skill logs the trajectory while your robot is driving around and navigating. You define the waypoints and path points by manually moving your robot to various locations (waypoints). Once multiple path points are defined for a waypoint, you can instruct your robot to autonomously navigate to that exact waypoint (or back again) at any time.

Map Size

The map is currently hardcoded for 20x20 meters.

Main Screen

User-inserted image

  1. Map control buttons are used to clear the trajectory and clear the map.

  2. The robot's current cartesian coordinates as reported by an NMS Level #3 Group #2 sensor (i.e., Intel T265, wheel encoders).

  3. Saved waypoints. Here, you can add, remove, and select waypoints.

  4. The path points within a waypoint. A waypoint will consist of many path points for navigating throughout the environment. You may right-click on path points to edit the coordinate for fine-tuning. You may re-order the path points by right-clicking and selecting Move Up or Down.

  5. The robot's Current heading relative to the cartesian starting position as reported by an NMS Level #3 Group #2 sensor.

  6. The yellow dot marks the robot's current cartesian position as reported by an NMS Level #3 Group #2 position/location sensor.

  7. Path points are connected with a straight line demonstrating where the robot would drive. Right-click on the map view and select Add Path Point to add path points. It is best to drive the robot, which creates a trajectory. Then, right-click on some points on the tractor to add new path points to the selected waypoint.

  8. Log messages about navigation and sensor activity are displayed.

Main Screen - Navigation Controls

User-inserted image

There are three buttons for manually starting to navigate. You may also begin to navigate by using ControlCommands from other skills. The three buttons each have different behavior.

Start (Forward Order) - This will instruct the robot to start following the specified paths within the waypoint from the first to last in that order. If your robot is close to the starting (first path point), it will be convenient to head there. However, if your robot is far away from the first path point, you may wish to use the Reverse or Auto button.

Start (Reverse Order)-This will instruct the robot to start following the specified paths within the waypoint in reverse order from last to first. If your robot is closest to the last path point, it will be convenient to get it back to the first path point in the waypoint.

Start (Auto)-This will automatically calculate which order to execute the path direction based on the robot's distance from the first or last path point. This is the most convenient operation because it allows a waypoint to be navigated to and from. For example, if your robot drives to a location, use this button to get your robot back to the starting location. This will happen automatically.

Config - Scripts

User-inserted image

  1. Script that will execute when the navigation to a waypoint is started. Navigation can begin by manually pressing the Start button or using a ControlCommand().

  2. Script will execute when the navigation is canceled or successfully ended.

  3. If the navigation is paused by a JavaScript/Python command from the Navigation namespace or if it is triggered by the NMS Level #3 Group #1 distance sensor returning a value less than the specified range, this is configured in the Settings tab.

Config - Variables

User-inserted image

Many global variables are set for The Navigator. A question mark next to each variable explains in greater detail. The variable contents in the Scripts category can be viewed using the Variable Watcher skill.

Config - Settings

User-inserted image

Here are the options in the Config Settings tab...

  1. Disregard distance values lower than Ignore distance values less than this specified distance in CM. The distance values are provided by any NMS Level #3 Group #1 sensor.

2) Disregard distance values higher than Ignore distance values further than this specified distance in CM. Any NMS Level #3 Group #1 sensor provides the distance values.

  1. Filter false positive obstacles Filter false positives by removing detected obstacles and then later not detected within the same area.

  2. Pause navigation if the distance is less than Any navigation will be paused if the NMS distance sensor provides a value greater than the "lower than" but lower than this. This will also execute the PAUSE script from the Scripts tab. Your program may use this opportunity to navigate the obstacle and continue navigating again. Use the Javascript or Python command in the Navigation namespace to continue navigating. That command is Navigation.setNavigationStatusToNavigating();

  3. Pause navigation degree range This value complements the pause navigation distance value. This value will determine the degree range of when to pause navigation. If you wish to pause the entire range, enter 360 degrees. If you only want objects in front of the robot paused, enter 90. The degree number entered is divided by two and used from the left and right of the center of the robot. If 90 degrees is entered, then 45 degrees to the left of the robot's center and 45 degrees to the right of the center of the robot are detected. If 180 degrees is entered, then 90 degrees to the left of the robot's center and 90 degrees to the right of the center of the robot are detected.

  • If 360 degrees are entered, the full range will be detected.
  1. Trajectory history Count The number of history lines to keep on the map. This prevents the history map from becoming messy with too many historical lines.

7) Persistence increment This increases the brightness of a detected object based on its persistence. This means if an object is detected once, but it moves or is a false positive, it will slowly disappear. This is how Slam works by letting the map change dynamically.

Starting Position

This navigation skill uses cartesian coordinates in CM from the starting position (0, 0). Any saved maps will be referenced from the same starting position and heading angle. When you re-load a project to have the robot navigate the same course, the robot must be positioned in the same starting position and heading angle. We recommend using painter/masking tape as the starting reference point for the robot. If your robot has an auto dock for charging, secure the charger to a fixed position on the floor, which can be used as a reference point.

User-inserted image

In the photo above, we're using an iRobot Roomba as the robot with an Intel T265 positioning sensor. The painter's tape on the floor marks the robot's starting position. The outline allows us to position the robot into the square, and the marking on the front of the robot aligns with the specified heading.

Cartesian Coordinate System

This robot skill uses cartesian coordinates to reference the robot's starting position, which is always 0,0 and defined at startup. As the robot navigates, the skill measures the distance from the starting position. The unit of measurement is CM (centimeters). Read more about the Cartesian coordinate system on Wikipedia.

User-inserted image

How Do You Use This

This skill is a navigation renderer and movement planner. It can build a map from participating sensor data and control the robot by navigating it to specified locations. To get sensor data, other compatible skills must be loaded. In this quick example, we'll use the Intel Realsense T265 in combination with this skill.

  1. Connect your Intel RealSense T265 to the computer's USB port

  2. Load ARC (version must be >= 2020.12.25.00)

  3. Add the Intel RealSense skill to your workspace

  4. Now, add this skill (The Navigator) to your workspace

  5. Press START on the Intel RealSense skill

  6. You should now begin to see localization path data from the Intel RealSense sensor displayed in The Navigator window. This robot skill will display and render the data.

*Optionally, you may add a supporting NMS Level #3 Group #1 sensor to detect the distance of obstacles and the environment.


Control Commands for the The Navigator robot skill

There are Control Commands available for this robot skill which allows the skill to be controlled programmatically from scripts or other robot skills. These commands enable you to automate actions, respond to sensor inputs, and integrate the robot skill with other systems or custom interfaces. If you're new to the concept of Control Commands, we have a comprehensive manual available here that explains how to use them, provides examples to get you started and make the most of this powerful feature.

Control Command Manual

// Go to the waypoint by choosing the closest path.



  • controlCommand("The Navigator", "GoToWayPointAuto", "waypoint name")


// Go to the waypoint by starting at the first path and finishing at the last



  • controlCommand("The Navigator", "GoToWayPointForwardOrder", "waypoint name")


// Go to the waypoint by starting at the last path and finishing at the first



  • controlCommand("The Navigator", "GoToWayPointReverseOrder", "waypoint name")


// Select the waypoint in the list



  • controlCommand("The Navigator", "SelectWayPoint", "waypoint name")


// Navigate the robot to the cordinate



  • controlCommand("The Navigator", "GoToLocation", "x", "y")


// Stop navigating the robot



  • controlCommand("The Navigator", "StopNavigating")


// Create a new waypoint by the waypointname



  • controlCommand("The Navigator", "CreateNewWayPoint", "WayPointName")


// Set the current position as a path point in the current waypoint



  • controlCommand("The Navigator", "AddCurrentPositionAsPathPoint")


ARC Pro

Upgrade to ARC Pro

ARC Pro will give you immediate updates and new features needed to unleash your robot's potential!

PRO
Synthiam
#33   — Edited

Added the ability to add path points and waypoints with ControlCommand(). Check the Cheat Sheet or right-click when editing script to see available control commands for this skill.

PRO
Portugal
#34  

Thank you DJ, will give it a go tomorrow.

PRO
Synthiam
#35  

Added ability to adjust the speed for navigating in the config menu. Please read the question marks next to the options to learn more.

PRO
Portugal
#36  

Bug> When i change the Forward Speed in The Navigator the path points seem to move down relative to the saved path points.

PRO
Synthiam
#37  

Question> what does that mean?

PRO
Synthiam
#39  

Haha I still don’t understand. Can you write more words that explains some detail?

PRO
Portugal
#40  

Sure DJ,  If i have various path points and then change the Forward speed in The Navigator, the path points that should be in the green area, move down as seen in the pic.