4 #include <catch_ros/catch.hpp> 6 #include "../../src/launch/launch_config.h" 49 <rosparam command="load" file="$(find rosmon_core)/test/empty.yaml" /> 59 hello: {{ invalid }} test 70 <rosparam param="a_list">[1, 2, 3, 4]</rosparam> 72 <arg name="whitelist" default="[3, 2]"/> 73 <rosparam param="whitelist" subst_value="True">$(arg whitelist)</rosparam> 75 <rosparam ns="namespace"> 86 INFO("looking for: a_list");
91 auto value = it->second;
94 REQUIRE(value.size() == 4);
98 INFO(
"looking for: whitelist");
100 auto it = config.
parameters().find(
"/whitelist");
103 auto value = it->second;
106 REQUIRE(value.size() == 2);
121 param3: !!binary "aGVsbG8K" 136 CHECK(binParam == expected);
148 param3: !degrees 181.0 149 param4: !radians 3.14169 161 CHECK(param1 == Approx(2.0 * M_PI));
164 CHECK(param2 == Approx(180.0 * M_PI / 180.0));
167 CHECK(param3 == Approx(181.0 * M_PI / 180.0));
170 CHECK(param4 == Approx(3.14169));
const std::map< std::string, XmlRpc::XmlRpcValue > & parameters() const
void evaluateParameters()
static void requireParsingException(const std::string &input)
void parseString(const std::string &input, bool onlyArguments=false)
std::vector< char > BinaryData
TEST_CASE("rosparam basic","[rosparam]")