How to distinguish inputs from multiple joysticks on joy topic?
Hi, I'm currently working on a project that requires the use of multiple xbox 360 controllers to control a single robot (multi-master single-slave system). I can currently create two joy_nodes that receive inputs from the separate controllers distinguishing themselves from each other by changing their names to js0 and js1.
The issue is that both nodes publish to the joy topic so when subscribing to the topic (or using rostopic echo) it receives the inputs from both joysticks simultaneously. The question being how do I distinguish/separate the two joysticks from each other in the joy topic (I thought one solution would be to make each joy_node publish to a different topic namespace but couldn't find any solutions or tutorials for this).
Any help would be appreciated, thank you.