3 #include <boost/shared_ptr.hpp> 6 #include <nav_msgs/OccupancyGrid.h> 7 #include <tf/tfMessage.h> 30 for (
auto &t : msg->transforms) {
31 if (t.header.frame_id != map_frame_id ||
32 t.child_frame_id != odom_frame_id) {
48 int main(
int argc,
char **argv) {
49 ros::init(argc, argv,
"WG-PR2-bag-adapter");
nav_msgs::OccupancyGrid OccGridMsg
geometry_msgs::TransformStamped gt2map_transform
void on_tf_msg(boost::shared_ptr< tf::tfMessage > msg)
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
std::string tf_odom_frame_id(const PropertiesProvider &props)
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
int main(int argc, char **argv)
bool gt2map_is_initialized
void on_gt_grid(boost::shared_ptr< nav_msgs::OccupancyGrid > msg)
std::string tf_map_frame_id()
ROSCPP_DECL void spinOnce()