4 #include <catch_ros/catch.hpp> 6 #include "../../src/launch/launch_config.h" 16 <launch rosmon-name="rosmon_uut"> 17 <remap from="topic_a" to="topic_b" /> 19 <node name="test" pkg="rosmon_core" type="abort"> 20 <remap from="~local_a" to="/global_a" /> 21 <remap from="local_b" to="/global_b" /> 24 <remap from="topic_c" to="topic_d" /> 32 auto maps = node->remappings();
34 CHECK(maps.at(
"topic_a") ==
"topic_b");
35 CHECK(maps.at(
"~local_a") ==
"/global_a");
36 CHECK(maps.at(
"local_b") ==
"/global_b");
38 CHECK(maps.find(
"topic_c") == maps.end());
45 <launch rosmon-name="rosmon_uut"> 46 <group ns="namespace"> 47 <remap from="topic_a" to="topic_b" /> 50 <node name="test" pkg="rosmon_core" type="abort"> 59 auto maps = node->remappings();
61 CHECK(maps.find(
"topic_a") == maps.end());
const std::vector< Node::Ptr > & nodes() const
rosmon::launch::Node::Ptr getNode(const std::vector< rosmon::launch::Node::Ptr > &nodes, const std::string &name, const std::string &namespaceString)
void parseString(const std::string &input, bool onlyArguments=false)
TEST_CASE("remap","[remap]")
std::string printMapping(const std::map< std::string, std::string > &mapping)