Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
sitl_test
lib
sitl_test.cpp
Go to the documentation of this file.
1
6
/*
7
* Copyright 2015 Nuno Marques.
8
*
9
* This file is part of the mavros package and subject to the license terms
10
* in the top-level LICENSE file of the mavros repository.
11
* https://github.com/mavlink/mavros/tree/master/LICENSE.md
12
*/
13
14
#include <
test_mavros/sitl_test/sitl_test.h
>
15
#include <
ros/console.h
>
16
17
using namespace
sitltest
;
18
using namespace
testsetup
;
19
20
SitlTest::SitlTest
()
21
{}
22
23
void
SitlTest::spin
(
int
argc,
char
*argv[])
24
{
25
if
(strcmp(argv[1],
"offboard_control"
) == 0)
26
{
27
ros::init
(argc, argv,
"offboard_control"
);
28
testsetup::OffboardControl
offboard_control;
29
offboard_control.
spin
(argc, argv);
30
}
31
33
}
sitl_test.h
SitlTest node implementation class.
sitltest::SitlTest::spin
static void spin(int argc, char *argv[])
Definition:
sitl_test.cpp:23
ros::init
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
testsetup::OffboardControl
Definition:
offboard_control.h:49
testsetup
Definition:
test_setup.h:22
testsetup::OffboardControl::spin
void spin(int argc, char *argv[])
Definition:
offboard_control.h:143
console.h
sitltest
Definition:
sitl_test.h:24
sitltest::SitlTest::SitlTest
SitlTest()
Definition:
sitl_test.cpp:20
test_mavros
Author(s): Nuno Marques
, Vladimir Ermakov
autogenerated on Tue Jun 1 2021 02:36:42