Revision history [back]

Looking at the cturtle code path. I don't see any constructor for std_msgs::String for instance which should have allowed for the conversion. Nor can I see any code path for for publisher::publish that would allow it separately.

I would expect that the code you posted would not work in CTurtle either. I would go back and double check that it worked in the first place.

If you're using eclipse for example, follow the publish function back to its declaration.

Looking at the cturtle code path. I don't see any constructor for std_msgs::String for instance which should have allowed for the conversion. Nor can I see any code path for for publisher::publish that would allow it separately.

I would expect that the code you posted would not work in CTurtle either. I would go back and double check that it worked in the first place.

If it really does work, if you're using eclipse for example, eclipse, follow the publish function function, back to its declaration.declaration, and see which invocation it's calling. Or, follow std_msgs::String's constructor back and see what constructor could possibly create a string message directly from a std::string.