Can ROS service have union as data type
Hi I want to define ROS service taking two arguments.First argument is type and second argument type depends on type. For example if type = 1 then argument2 is CustomMsg1, if type = 2 then argument2 is CustomMsg2. How can we achieve it in ROS service? Thanks in advance.
a plain answer to this would be: no, that's not supported (on purpose I believe).
Other community members will probably suggest a few alternatives / work-arounds.
What is purpose behind not supporting this? Can someone else suggest workarounds for this.