Replies: 1 comment 4 replies
-
Hey, well what I usually do for that sort of setup is have the Vizanti backend running on the robots themselves, so the browser connects to different IPs and will save widgets for them separately (also handy when going somewhere and switching them to AP mode). Of course with rosbridge that does add a fair bit of overhead on ROS 2 which may not be best on low power ARM machines. I suppose it somewhat depends if the robots are on the same ROS network (i.e. same roscore/domain_id). If yes, then you could run one Vizanti backend locally and open two web app instances in the browser and load up different widget configs (global settings -> import/export). There's generally nothing wrong with running multiple at the same time, but it will put more load on rosbridge/rws. There's generally three parts you have to consider (usually they're rolled together into one centralized stack):
Now theoretically you could also put just the flask server on the robot, and run the websocket bridge locally which would have zero impact on robot performance, but the IP is currently a bit hardcoded to the address that's serving the web app, so you'd have to change that. As for the service nodes, they could run anywhere but that will affect what they do (e.g. you can only kill nodes on the system they're running). Another option that might work is by using a different baseurl config to launch two different namespaced instances of the flask server locally, which might be enough to convince the browser that these are different URLs with separate localstorage. I haven't really ever tried that out though, so I'm not sure how it behaves. |
Beta Was this translation helpful? Give feedback.
-
Hello there! @MoffKalast
So let's say I have robot A and robot B. What should I do if i want to have 2 separate vizantis for each robot?
Like I wanna launch a vizanti for robot A, and another vizanti for robot B, so I can have different widgets for each robot, different configuration etc.
Is this possible? What conflicts could occur from having 2 vizantis running in one system?
Beta Was this translation helpful? Give feedback.
All reactions