forked from sikang/mpl_ros
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
using latest mpl, add multi-robot-node
- Loading branch information
Showing
16 changed files
with
254 additions
and
257 deletions.
There are no files selected for viewing
Submodule DecompROS
updated
8 files
Submodule motion_primitive_library
updated
138 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include <ros/console.h> | ||
#include <rosbag/bag.h> | ||
#include <rosbag/view.h> | ||
|
||
#include <boost/foreach.hpp> | ||
|
||
template<typename T> | ||
void write_bag(std::string file_name, std::string topic_name, const std::vector<T>& msgs) { | ||
rosbag::Bag bag; | ||
bag.open(file_name, rosbag::bagmode::Write); | ||
|
||
for(const auto& it: msgs) | ||
bag.write(topic_name, it.header.stamp, it); | ||
ROS_INFO("Write %zu messages as %s in file %s", | ||
msgs.size(), topic_name.c_str(), file_name.c_str()); | ||
bag.close(); | ||
} |
Oops, something went wrong.