How do you save ROS tutorial subscriber data?
In the "Writing a Simple Publisher and Subscriber (C++)" tutorial it states that in:
void chatterCallback(const std_msgs::String::ConstPtr& msg)
{
ROS_INFO("I heard: [%s]", msg->data.c_str());
}
The message is passed in a boost shared_ptr, which means you can store it off if you want.
How exactly can I use this to store my data in a text file. I have no clue where to begin with this. I went through the boost shared_ptr documentation, but I do not understand it.