Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple instances of Flexbe #17

Open
RhysMcK opened this issue Jun 18, 2018 · 6 comments
Open

Multiple instances of Flexbe #17

RhysMcK opened this issue Jun 18, 2018 · 6 comments
Assignees

Comments

@RhysMcK
Copy link

RhysMcK commented Jun 18, 2018

Hey @pschillinger ,

I am trying to control two difference robots by launching flexbe_app (roslaunch flexbe_app flexbe_full.launch) in two different namespaces, however the Flexbe_app seems to become unresponsive when i launch the 2nd instance. Is flexbe_app currently not support to run multiple instances, if so, is there a way to get this to work?

Thanks Phil!

@pschillinger
Copy link
Member

Unfortunately, this results from a limitation of the nwjs framework. In general, only one instance of an app can be running (i.e., one process). It is possible to open multiple additional windows in the same process and thus, pretend multi-instance apps, but this does not work well with ROS.

The main problem is that environment variables like the ROS master URI and also the namespace in which the flexbe_app should be running is given by the respective process and naturally, running a second app in the same namespace does not make much sense.

There might be a way around it, but it is non-trivial and I did not yet look too much into it. If you have any ideas how to address this, I am happy to discuss and will also look again myself if I find a good approach.

@pschillinger pschillinger self-assigned this Jun 30, 2018
@manox
Copy link

manox commented Mar 7, 2019

Hi, as I ran into the same issue (want to control 2 robots with different ROS-Masters from one PC with 2 FlexBE apps), I wanted to ask if there is already a solution for that. Thanks!

@hectorherrero
Copy link

Hi, are there any updates on this? Our scenario is a bit different, we have one robot running onboard behaviors and want to control/supervise from different PCs. The FlexBE Apps are excluding between them, when a new FlexBE App is lauched blocks the previous one.
Thanks!

@tropappar
Copy link

Is it possible to specify the namespace in which the flexbe controller should be running? I am not so much interested in the GUI app but rather the onboard behavior engine.

@tropappar
Copy link

This pull request allows to run the behavior engine in a sub-namespace, hence allowing multiple instances to run simultaneously.
team-vigir/flexbe_behavior_engine#155

@dcconner
Copy link
Member

See team-vigir/flexbe_behavior_engine#160

Noting this discussion for ROS 2 changes

fmessmer added a commit to fmessmer/flexbe_app that referenced this issue Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants