wiki:Plugins/ros-webview

ROS Webview Plugin

This plugin allows ROS nodes to extend the Fawkes webview web interface. Similar to Fawkes plugins registering with webview using the WebviewAspect, with this plugin ROS nodes can register with webview using ROS service calls for specific base-URLs. If a request for an URL beginning with the given prefix is received, a specific service of the registered ROS node is called to process the request and provide the response.

To use this from ROS the  webview_msgs package must be available. It contains the messages to register with ros-webview as well as for processing requests.

Requires

The ros plugin must be functional.

Provides

ROS Services

/webview/register
Register a service name of type webview_msgs/UrlRegistration that is called to register a new handler for a specific base-URL.
/webview/unregister
Unregister a specific base-URL.
/webview/add_nav_entry
Add a navigation entry to the webview navigation.
/webview/remove_nav_entry
Remove a navigation entry from the webview navigation.

Compilation and Runtime Requirements

  • webview_msgs (ROS package)
  • Working ROS system
  • Webview Fawkes plugin and library

Usage Instructions

Once the plugin is loaded nodes can register with webview and start processing requests. An example is provided in the  webview_example package.