ROS Service Call as a bool switch
In this node I instantiate a tf broadcaster and it also a service provider. In main function, inside a while ros is okay loop, I have an if condition which is dependent on a global variable switched to true by a service call. For some reason, this doesn't work. Any ideas?
Sure. There is something wrong with your code... ;-)
Please provide more details, i.e. in this case: source code, as well as a more detailed description on what "does not work" (expected behavior, observed behavior, any errors...)! Otherwise we cannot help...
Surely in these many years @mgruhler you have developed clairvoyance and can see what is not working, no?
@gvdhoorn sure. With the context provided this guess is as good as any. This is also why I added the winky-smiley at the end... So sorry if you don't share my sense of humor here. If you insist, I'll make sure to just neglect the first line for the future... :-D
:)
But really @shloksobti: please update your post with more details, as right now we cannot help you.