Skip to content

Advanced Configuration

MoffKalast edited this page May 29, 2024 · 5 revisions

Changing the port numbers

By default Vizanti serves static content on port 5000 and sets up Rosbridge/RWS on 5001. This can be changed in the launch files:

For ROS 1:

<arg name="port" default="5000" />
<arg name="port_rosbridge" default="5001" />

And ROS 2:

port = launch.substitutions.LaunchConfiguration('port', default=5000)
port_rosbridge = launch.substitutions.LaunchConfiguration('port_rosbridge', default=5001)

Adding a default config

Since the widget config is kept in localStorage, it means it's specific for both the browser and the host IP. If either of those changes, the setup needs to be redone. But there are some shortcuts.

image

Exporting the config yields a .json file that can be imported in other browsers. Or it can also replace the default globally for all newly connected browser clients by specifying its path in the launch file:

For ROS 1:

<arg name="default_widget_config" default="~/your_custom_config.json" />

And ROS 2:

default_widget_config = launch.substitutions.LaunchConfiguration('default_widget_config', default='~/your_custom_config.json')

Multiple Concurrent Configs

Here is a short discussion on how to duplicate the static serve flask node in order to have two concurrent save files on separate ports.

Clone this wiki locally