[Documentation] [TitleIndex] [WordIndex

2D Navigation Widget


nav2djs is a tool that allows for an easy way to display and interact with a robots autonomous navigation capabilities. The main widget renders an image of the robot's internal map (streamed as a nav_msgs/OccupancyGrid message) on an HTML5 canvas element, as well as a icon displaying the robot's current position on the map. Furthermore, users can send navigation goals to the robot by double clicking a location on the map. This widget requires the robot_pose_publisher node to be running. nav2djs is developed as part of the Robot Web Tools effort.


API Documentation

JSDoc for the project is available on the Robot Web Tools website.

CDN Releases

This project is released on a CDN as part of the Robot Web Tools effort. The following is a list of the available revisions:

Source Code

Source code is available at https://github.com/wpi-rail/nav2djs. Pull requests should be made to the develop branch. This project follows the ROS JavaScript Style Guide.


  1. Creating a Basic Nav2D Widget

    This tutorial shows you how to create a simple 2D navigation widget.

Example Video


Please send bug reports to the GitHub Issue Tracker. Feel free to contact me at any point with questions and comments.



2024-06-15 12:58