ROS Service Call as a bool switch

asked 2019-02-26 23:43:17 -0600

shloksobti gravatar image

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?

edit retag flag offensive close merge delete



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...

mgruhler gravatar image mgruhler  ( 2019-02-27 01:00:21 -0600 )edit

Surely in these many years @mgruhler you have developed clairvoyance and can see what is not working, no?

gvdhoorn gravatar image gvdhoorn  ( 2019-02-27 03:48:45 -0600 )edit

@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

mgruhler gravatar image mgruhler  ( 2019-02-28 00:32:42 -0600 )edit


But really @shloksobti: please update your post with more details, as right now we cannot help you.

gvdhoorn gravatar image gvdhoorn  ( 2019-02-28 03:55:35 -0600 )edit