16 for (TrajectoryMap::const_iterator it =
map_.begin(); it !=
map_.end(); ++it)
18 bag.
write(it->first, now, it->second);
30 choreo_msgs::UnitProcessPlanPtr ptr = it->instantiate<choreo_msgs::UnitProcessPlan>();
34 throw std::runtime_error(
"Could not load joint trajectory from ROS bag");
38 std::string
const& key = it->getTopic();
41 throw std::runtime_error(
"Bagfile had name matching key already in data structure");
void open(std::string const &filename, uint32_t mode=bagmode::Read)
void load(const std::string &filename)
void write(std::string const &topic, ros::MessageEvent< T > const &event)
void save(const std::string &filename)