Skip to content

RaulTrombin/node-red-contrib-br_navigator-webassistant

Repository files navigation

node-red-contrib-br_navigator-webassistant

A collection of Node-RED nodes for interfacing with the Blue Robotics's Navigator via its web assistant.

Installation / Initial Setup

In BlueOS (Recommended)

  1. Open the Autopilot Firmware page, enable Pirate Mode, and "change board" to SITL
    • This stops the autopilot firmware from trying to operate while the WebAssistant is in use
  2. Reboot the vehicle computer, and wait for the interface to re-connect
  3. Install the "Node-RED" and "Navigator WebAssistant" BlueOS Extensions from the Extensions manager
  4. Open the Node-RED interface once it becomes available in the BlueOS sidebar

Through NPM

Run the following command in your Node-RED user directory - typically ~/.node-red

    npm install node-red-contrib-br_navigator-webassistant

Usage

  1. Click the burger menu (in the top right corner), then select "Manage Palette", and Install the node-red-contrib-br_navigator-webassistant and node-red-dashboard extensions, then Close the palette manager
  2. In the Node-RED burger menu (top right), select "Import", then navigate to the "Examples" tab, and import the Navigator WebAssistant "dashboard" example flow
  3. Select the Navigator WebAssistant tab at the top, and double-click the green "WebSocket Route" node to configure it
  4. Click the pencil icon to edit the URL, and set it to use your vehicle computer's IP address, and the port number of the Navigator Assistant service from BlueOS's Available Services page
    • e.g. ws://192.168.2.2:32768/ws, for a common ROV setup with an IP address of 192.168.2.2, and a port designation of 32768
    • An explicit IP address is necessary - mDNS addresses like blueos.local are not currently accepted
    • The port designation is currently temporary, and may need to be checked and re-configured each time the web assistant extension starts
  5. Click the deep red "Update", "Done", and "Deploy" buttons in the top right corner
    • A green circle and the word "connected" should appear under the WebSocket Route nodes if it is configured correctly
    • If it's not connected, make sure
      1. the autopilot is set to SITL (or turned off / disabled)
      2. the WebSocket URL has the correct values, and no extra spaces or other characters
        • confirm that the port is set to that of the Navigator Assistant service (e.g. not the Node-RED one)
  6. Go to the /ui endpoint of your Node-RED interface to view the dashboard
    • e.g. blueos.local/extension/nodered?full_page=true -> blueos.local/extension/nodered/ui?full_page=true
    • the burger menu in the top left can be used to change from data views to output controls
  7. Modify the example flow as desired, and/or make your own flow using the appropriate blocks, making sure to deploy again so the dashboard updates

Example

You can create a dashboard and plot sensors data or control navigator hardware.

example.gif

How install the dashboard example.

install_example.gif

About

Node-RED nodes for BlueRobotics's navigator

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages