ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Seems to be more of a C++ problem than a cmake/ROS problem. The reason why I can't see output is because the variable has to be casted to (int). I've never seen that before, though. I'm not what I changed to make behave that way.

Most of my variables are of type "int8_t," and so forth. So if I wanna see output, I gotta do:

std::cout << "My Constant: " << (int) gr::CONSTANT << "\n\n";

I checked, and the rest of the functions in my packages work well, so I don't have to cast before passing into functions or to publish my variables in a topic.

Dang...glorious C++.