I have seen some online guides on how to link between QT GUI and ros with ‘publisher’.
all the guides are using ros::init
int main(int argc, char **argv)
but I need to send some data to ros, when I am clicking a button.
and in the functions of the button i cant use argc, argv.
in the mainWindow.cpp:
//When I’m clicking here, i need to send some data with publisher.
Someone can help me please ?