Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

How to tell ignore a message sent by yourself

I'm using ignition transport in a specialized simulator I'm writing, and one issue I've run into happens when I have gui elements that are supposed to update when receiving messages, but that the user can also change directly. If you edit the text box, it publishes a message to the server but the gui is also listening to that message in order to listen for updates from outside the simulator, so you get an update setting the textbox to what you just typed and it is annoying and prevents you from typing naturally.

The easiest way to fix this would be to check if the message I've received was sent by the GUI and ignore it? Is this possible in ignition transport/protobuf? Something is wrong with my design but I can't figure out how best to fix it.

How to tell ignore a message sent by yourself

I'm using ignition transport in a specialized simulator I'm writing, and one issue I've run into happens when I have gui elements that are supposed to update when receiving messages, but that the user can also change directly. If you edit the text box, it publishes a message to the server but the gui is also listening to that message in order to listen for updates from outside the simulator, so you get an update setting the textbox to what you just typed and it is annoying and prevents you from typing naturally.

The easiest way to fix this would be to check if the message I've received was sent by the GUI and ignore it? Is this possible in ignition transport/protobuf? Something is wrong with my design but I can't figure out how best to fix it.