3 #include <boost/date_time.hpp>
22 ros::Time time = ros::Time::now();
25 const std::string filename =
"~/robowflex_tapedeck/" + to_iso_string(time.toBoost()) +
".yml";
28 RBX_INFO(
"Wrote YAML for Request ID `%s` to file `%s`", action.
id, filename);
31 int main(
int argc,
char **argv)
RAII-pattern for starting up ROS.
void wait() const
Waits for the process to be killed via some means (normally Ctrl-C)
A helper class that allows for pulling and pushing of scenes, robots, and trajectories to move group.
void setResultCallback(const ResultCallback &callback)
Sets a callback function that is called whenever a motion plan request is serviced by move group.
#define RBX_INFO(fmt,...)
Output a info logging message.
Main namespace. Contains all library classes and functions.
A container struct for all relevant information about a motion planning request to move group.
bool toYAMLFile(const std::string &filename)
Save a recorded action to a YAML file.
int main(int argc, char **argv)
void callback(movegroup::MoveGroupHelper::Action &action)