-
Notifications
You must be signed in to change notification settings - Fork 37
Advanced Configuration
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)
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.
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')
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.
Except where otherwise noted, the Vizanti wiki is licensed under the BSD 3-Clause License