Skip to content
Snippets Groups Projects
Commit 551de4ad authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Add test parser: follow real YAML file

parent c149db65
No related branches found
No related tags found
1 merge request!313WIP: Resolve "Processor constructors and creators requiring a sensor pointer?"
......@@ -40,6 +40,13 @@ TEST(ParserYAML, FollowFile)
EXPECT_EQ(params["my_proc_test/max_buff_length"], "100");
EXPECT_EQ(params["my_proc_test/voting_active"], "false");
}
TEST(ParserYAML, FollowOdom3D)
{
auto parser = parse("test/yaml/params1.yaml", wolf_root);
auto params = parser.getParams();
EXPECT_EQ(params["my_proc_odom3d/max_buff_length"], "10");
EXPECT_EQ(params["my_proc_odom3d/max_time_span"], "0.2");
}
TEST(ParserYAML, JumpFile)
{
auto parser = parse("test/yaml/params3.yaml", wolf_root);
......
......@@ -28,6 +28,11 @@ config:
name: "my_proc_test"
sensor_name: "odom"
follow: "test/yaml/params3.1.yaml"
-
type: "ODOM 3D"
name: "my_proc_odom3d"
sensor_name: "odom"
follow: "test/yaml/processor_odom_3D.yaml"
files:
- "/home/jcasals/workspace/wip/wolf/lib/libsensor_odo.so"
- "/home/jcasals/workspace/wip/wolf/lib/librange_bearing.so"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment