Is it possible to use one Xbox Controller to control several cooperative robots, one at a time? #2302
Replies: 3 comments 1 reply
-
|
I inittiated this discussion with my wrong account!... 😒 |
Beta Was this translation helpful? Give feedback.
-
Yes! That's essentially what is happening here. The controller connects to one hub, which broadcasts to any number of others.
That works too. We use that technique here so we can control two hubs with just a few buttons. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you Laurens! The most simple is always more beatifull. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
If I interpreted correctly the Xbox Controller documentation, this shouldn't be possible…
Although it doesn’t hurt to ask!
Let’s imagine the scenario where I have several robots, let’s say several autonomous cars running simultaneously.
I’d like to connect with different cars or switch between cars (one at a time) by pressing a different button in the remote (e.g. X, Y, A, B), to manually overtake a car and control it with the remote.
If it would be possible to connect to several hubs simultaneously (one to many, sort of a broadcast), I’d be able to implement the control logic layer programmatically so that I can choose a car and release the others, to control that specific one only.
Is it possible to do something like this in Python code, i.e. can a Xbox controller be connected to several hubs, or switch between hubs on the fly?
PS: My use case is for the Technic hub.
Beta Was this translation helpful? Give feedback.
All reactions