ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Thanks lorenz,
I tried it like:
BOOST_FOREACH(rosbag::MessageInstance const m, view_all){
bag_write.write(m.getTopic(),m);
But it doesn't work as this kind of write is just possible with a ros::MessageEvent and not rosbag::MessageInstance
void write (std::string const &topic, ros::Time const &time, boost::shared_ptr< T > const &msg, boost::shared_ptr< ros::M_string > connection_header=boost::shared_ptr< ros::M_string >())
void write (std::string const &topic, ros::Time const &time, boost::shared_ptr< T const > const &msg, boost::shared_ptr< ros::M_string > connection_header=boost::shared_ptr< ros::M_string >())
void write (std::string const &topic, ros::Time const &time, T const &msg, boost::shared_ptr< ros::M_string > connection_header=boost::shared_ptr< ros::M_string >())
void write (std::string const &topic, ros::MessageEvent< T > const &event)