Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
include
test_mavros
sitl_test
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
20
#include <
test_mavros/utils/pid_controller.h
>
21
22
namespace
testsetup
{
23
class
TestSetup
{
24
public
:
25
TestSetup
() :
26
nh
(
"~"
)
27
{ };
28
~TestSetup
() {};
29
30
ros::NodeHandle
nh
;
31
32
bool
use_pid
;
33
double
rate
;
34
int
num_of_tests
;
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
testsetup::TestSetup::~TestSetup
~TestSetup()
Definition:
test_setup.h:28
testsetup::TestSetup::setup
void setup(const ros::NodeHandle &nh)
Definition:
test_setup.h:36
pid_controller.h
PID controller header.
ros::NodeHandle
testsetup::TestSetup::num_of_tests
int num_of_tests
Definition:
test_setup.h:34
testsetup::TestSetup::use_pid
bool use_pid
Definition:
test_setup.h:32
testsetup::TestSetup::rate
double rate
Definition:
test_setup.h:33
ros::NodeHandle::param
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val) const
testsetup
Definition:
test_setup.h:22
testsetup::TestSetup::TestSetup
TestSetup()
Definition:
test_setup.h:25
testsetup::TestSetup::nh
ros::NodeHandle nh
Definition:
test_setup.h:28
testsetup::TestSetup
Definition:
test_setup.h:23
test_mavros
Author(s): Nuno Marques
, Vladimir Ermakov
autogenerated on Tue Jun 1 2021 02:36:42