#pragma once #include <test_mavros/utils/pid_controller.h> namespace testsetup { class TestSetup { public: TestSetup() : nh("~") { }; ~TestSetup() {}; ros::NodeHandle nh; bool use_pid; double rate; int num_of_tests; void setup(const ros::NodeHandle &nh){ nh.param("use_pid", use_pid, true); nh.param("rate", rate, 10.0); nh.param("num_of_tests", num_of_tests, 10); } }; }; // namespace testsetup
|
近期评论