For example, I have a markerdisplay.cpp file. The markerdisplay member function will look like the below code.
void MarkerDisplay::setMarkerStatus(MarkerID id, StatusLevel level, const std::string& text)
{
.....
}
Can I have a non-member function in the markerdisplay.cpp?
For example,
bool validateFloats(const visualization_msgs::Marker& msg)
{
...
}
The function validateFloats is not a member function, and I also don't declare it in the header file. I only use this function inside of the validateFloats.cpp file.
Someone told me this may cause some problems. Is that true?