Ask Your Question

Revision history [back]

Issue with message_filter.h dashing/crystal release

The add method in dashing release use 3 parameters for MEvent , which has header as an argument. Where as message_event class do not have any constructor which has header as an argument. Can some one look into it and fix it or clarify me on this if i missed something.

void add(const MConstPtr & message) { using builtin_interfaces::msg::Time; std::shared_ptr<std::map<std::string, std::string="">> header(new std::map<std::string, std::string="">);

(*header)["callerid"] = "unknown";
Time t = rclcpp::Clock::now();
add(MEvent(message, header, t));

}

click to hide/show revision 2
None

Issue with message_filter.h dashing/crystal release

The add method in dashing release use 3 parameters for MEvent , which has header as an argument. Where as message_event class do not have any constructor which has header as an argument. Can some one look into it and fix it or clarify me on this if i missed something.

void add(const MConstPtr & message)
  {
    using builtin_interfaces::msg::Time;
    std::shared_ptr<std::map<std::string, std::string="">> std::string>> header(new std::map<std::string, std::string="">);

std::map<std::string, std::string>);
 (*header)["callerid"] = "unknown";
 Time t = rclcpp::Clock::now();
 add(MEvent(message, header, t));
  }

}