It is possible to send dynamic request to a service?
Hi, I have a robot written in Python, and I use the different components of that robot using imports.
The problem is that I'm trying to make ros services for this components, but some of the objects that I need to send are created without atributes and added later using the setattr method. So at first I don't know the composition of the object until the execution of the component finish.
It is posible to make a SRV file that accepts something like that?
For example here I declare the class State
class State():
"""A state is just a collection of variable bindings."""
def __init__(self,name):
self.__name__ = name
And then in execution time I bind new variables to the objects of type State.
Can you give an example? I do not really get it.