test_setup.h
Go to the documentation of this file.
1 
10 /*
11  * Copyright 2015 Nuno Marques.
12  *
13  * This file is part of the mavros package and subject to the license terms
14  * in the top-level LICENSE file of the mavros repository.
15  * https://github.com/mavlink/mavros/tree/master/LICENSE.md
16  */
17 
18 #pragma once
19 
21 
22 namespace testsetup {
23 class TestSetup {
24 public:
26  nh("~")
27  { };
28  ~TestSetup() {};
29 
31 
32  bool use_pid;
33  double rate;
35 
36  void setup(const ros::NodeHandle &nh){
37  nh.param("use_pid", use_pid, true);
38  nh.param("rate", rate, 10.0);
39  nh.param("num_of_tests", num_of_tests, 10);
40  }
41 };
42 }; // namespace testsetup
void setup(const ros::NodeHandle &nh)
Definition: test_setup.h:36
PID controller header.
bool param(const std::string &param_name, T &param_val, const T &default_val) const
ros::NodeHandle nh
Definition: test_setup.h:28


test_mavros
Author(s): Nuno Marques , Vladimir Ermakov
autogenerated on Tue Jun 1 2021 02:36:42