Have been declared publisher but Assertion Failed
I got some error in my program they say
[FATAL] [1588435393.297022382]: ASSERTION FAILED
file = /opt/ros/kinetic/include/ros/publisher.h
line = 102
cond = false
message =
[FATAL] [1588435393.297278842]: Call to publish() on an invalid Publisher
[FATAL] [1588435393.297402626]:
i have check my code but my publisher have been declared i'm stuck for this, can you give me some solution for my problem?
this is my source cpp and this my header file header
hope you can help me guys.